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:49:43 +0000 (20:49 +0100)
commitd6079a87db58ad17550b5d00a74512464e6a029e
tree6456ba5c910a4ae9cb9a6d241d08ea3c1bbae7ff
parent51a3b763c31afcf294af73d32f7451c9dee7cd76
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>
crypto/asn1/a_strex.c