diff options
author | David Benjamin <davidben@google.com> | 2016-07-26 19:44:36 +0300 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2016-07-27 01:41:42 +0300 |
commit | 64ac925601fe30464c930f88bf97902ff1f34857 (patch) | |
tree | e7cb8cb9e317b60a0ef6941bc2f01126d7091441 /crypto | |
parent | 1d4f4c0123268eee5d83921adc8503cd1b8d6c93 (diff) |
Fix ASN1_STRING_to_UTF8 could not convert NumericString
tag2nbyte had -1 at 18th position, but underlying ASN1_mbstring_copy
supports NumericString. tag2nbyte is also used in do_print_ex which will
not be broken by setting 1 at 18th position of tag2nbyte
(Imported from upstream's bd598cc405e981de259a07558e600b5a9ef64bd6.)
Change-Id: Ie063afcaac8a7d5046cdb385059b991b92cd6659
Reviewed-on: https://boringssl-review.googlesource.com/8946
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/a_strex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/a_strex.c b/crypto/x509/a_strex.c index aa2501a4..d0d83564 100644 --- a/crypto/x509/a_strex.c +++ b/crypto/x509/a_strex.c @@ -321,7 +321,7 @@ static const signed char tag2nbyte[] = { -1, -1, -1, -1, -1, /* 5-9 */ -1, -1, 0, -1, /* 10-13 */ -1, -1, -1, -1, /* 15-17 */ - -1, 1, 1, /* 18-20 */ + 1, 1, 1, /* 18-20 */ -1, 1, 1, 1, /* 21-24 */ -1, 1, -1, /* 25-27 */ 4, -1, 2 /* 28-30 */ |