summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/tasn_enc.c
diff options
context:
space:
mode:
authortedu <>2016-05-04 15:00:24 +0000
committertedu <>2016-05-04 15:00:24 +0000
commitdfa9c905663f3ba7b991d13c769bd68a1a292ee1 (patch)
tree8a46dd4d4fcecf9d831bb2af3ab9a8fd4e7483ce /src/lib/libcrypto/asn1/tasn_enc.c
parenta13a93d0f8c83fad01fac011cfe6cc1e76233021 (diff)
downloadopenbsd-dfa9c905663f3ba7b991d13c769bd68a1a292ee1.tar.gz
openbsd-dfa9c905663f3ba7b991d13c769bd68a1a292ee1.tar.bz2
openbsd-dfa9c905663f3ba7b991d13c769bd68a1a292ee1.zip
internal only negative types should not be handled here.
CVE-2016-2108 from openssl.
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_enc.c')
-rw-r--r--src/lib/libcrypto/asn1/tasn_enc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_enc.c b/src/lib/libcrypto/asn1/tasn_enc.c
index 03db0b0fbd..7d90c68c85 100644
--- a/src/lib/libcrypto/asn1/tasn_enc.c
+++ b/src/lib/libcrypto/asn1/tasn_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_enc.c,v 1.19 2016/05/04 14:53:29 tedu Exp $ */ 1/* $OpenBSD: tasn_enc.c,v 1.20 2016/05/04 15:00:24 tedu Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -603,9 +603,7 @@ asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
603 break; 603 break;
604 604
605 case V_ASN1_INTEGER: 605 case V_ASN1_INTEGER:
606 case V_ASN1_NEG_INTEGER:
607 case V_ASN1_ENUMERATED: 606 case V_ASN1_ENUMERATED:
608 case V_ASN1_NEG_ENUMERATED:
609 /* These are all have the same content format 607 /* These are all have the same content format
610 * as ASN1_INTEGER 608 * as ASN1_INTEGER
611 */ 609 */