diff options
author | Matt Caswell <matt@openssl.org> | 2020-11-12 11:58:12 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-12-08 10:18:44 +0000 |
commit | 1ecc76f6746cefd502c7e9000bdfa4e5d7911386 (patch) | |
tree | bfef1dffa927150f5b35c0ddc6ac3362c8b398cd /include | |
parent | f960d81215ebf3f65e03d4d5d857fb9b666d6920 (diff) |
Check that multi-strings/CHOICE types don't use implicit tagging
It never makes sense for multi-string or CHOICE types to use implicit
tagging since the content would be ambiguous. It is an error in the
template if this ever happens. If we detect it we should stop parsing.
Thanks to David Benjamin from Google for reporting this issue.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/asn1err.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/asn1err.h b/include/openssl/asn1err.h index faed5a5518..9070e26df4 100644 --- a/include/openssl/asn1err.h +++ b/include/openssl/asn1err.h @@ -145,6 +145,7 @@ int ERR_load_ASN1_strings(void); # define ASN1_R_ASN1_SIG_PARSE_ERROR 204 # define ASN1_R_AUX_ERROR 100 # define ASN1_R_BAD_OBJECT_HEADER 102 +# define ASN1_R_BAD_TEMPLATE 230 # define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 214 # define ASN1_R_BN_LIB 105 # define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106 |