Fix ASN1_STRING_to_UTF8 could not convert NumericString
authorMatt Caswell <matt@openssl.org>
Thu, 23 Jun 2016 18:54:06 +0000 (19:54 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 23 Jun 2016 19:51:28 +0000 (20:51 +0100)
commitbd598cc405e981de259a07558e600b5a9ef64bd6
tree1b7d7aa8bdf7e43b8f6135baef4be4ad33549f45
parentecb044db58b85c2329cfc1c1e196cc1b8302ca53
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

Reviewed-by: Stephen Henson <steve@openssl.org>
(cherry picked from commit d6079a87db58ad17550b5d00a74512464e6a029e)
crypto/asn1/a_strex.c