diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-12-17 14:34:36 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-12-17 14:34:36 +0000 |
commit | f5e4b6b5b566320a8d774f9475540f7d0e6a704d (patch) | |
tree | 8e3db9a43f76a410f0f5196fc38c4eca6bd3168b /crypto/asn1/asn1.h | |
parent | 9ca2cc78a98297091f4e264e2378312ab906a93c (diff) |
Reject invalid constructed encodings.
According to X6.90 null, object identifier, boolean, integer and enumerated
types can only have primitive encodings: return an error if any of
these are received with a constructed encoding.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'crypto/asn1/asn1.h')
-rw-r--r-- | crypto/asn1/asn1.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h index 1e59ee0dd7..b57e2cdc52 100644 --- a/crypto/asn1/asn1.h +++ b/crypto/asn1/asn1.h @@ -1380,6 +1380,7 @@ void ERR_load_ASN1_strings(void); #define ASN1_R_TIME_NOT_ASCII_FORMAT 193 #define ASN1_R_TOO_LONG 155 #define ASN1_R_TYPE_NOT_CONSTRUCTED 156 +#define ASN1_R_TYPE_NOT_PRIMITIVE 218 #define ASN1_R_UNABLE_TO_DECODE_RSA_KEY 157 #define ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY 158 #define ASN1_R_UNEXPECTED_EOC 159 |