mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Disallow ASN.1 enumerated types to be treated as strings.
They are actually integers. Problem reported by: Scott McPeak <scott.g.mcpeak@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14774)
This commit is contained in:
parent
44e82b813f
commit
ccf19c23c0
@ -66,7 +66,7 @@ static const unsigned long tag2bit[32] = {
|
||||
/* tags 4- 7 */
|
||||
B_ASN1_OCTET_STRING, 0, 0, B_ASN1_UNKNOWN,
|
||||
/* tags 8-11 */
|
||||
B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN,
|
||||
B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, 0, B_ASN1_UNKNOWN,
|
||||
/* tags 12-15 */
|
||||
B_ASN1_UTF8STRING, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN, B_ASN1_UNKNOWN,
|
||||
/* tags 16-19 */
|
||||
|
Loading…
Reference in New Issue
Block a user