Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-01-12 04:21:22 +0300
committerAdam Langley <agl@google.com>2015-01-15 00:49:23 +0300
commit1716b3d172e6e97f113576fa9bc834288b4b4402 (patch)
tree5c9969c8b7dfdeb3fd288208da4edb0af5ff278e /include/openssl/asn1.h
parente3b2eebd047d26bfe264e28b6e86fbc93288e261 (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. (Imported from upstream's 89f40f369f414b52e00f7230b0e3ce99e430a508.) Change-Id: Ia5d15eef72e379119f50fdbac4e92c4761bf5eaf Reviewed-on: https://boringssl-review.googlesource.com/2835 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/asn1.h')
-rw-r--r--include/openssl/asn1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index fc12a755..038d4e25 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -1258,5 +1258,6 @@ OPENSSL_EXPORT int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, asn1_ps_f
#define ASN1_R_ERROR_PARSING_SET_ELEMENT 220
#define ASN1_R_WRONG_TAG 221
#define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 222
+#define ASN1_R_TYPE_NOT_PRIMITIVE 223
#endif