diff options
author | David Benjamin <davidben@google.com> | 2016-08-16 09:06:08 +0300 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2016-08-16 22:45:13 +0300 |
commit | 55d9038de59074f3a92c61dbf8a5c35650ace02d (patch) | |
tree | 3ed6c2692e8e04cdd6a6913ca8327aa1c16c62e5 /include/openssl | |
parent | da53b59e7570e49fa08ec3cbca55ca24b281b959 (diff) |
Delete d2i_ASN1_bytes and i2d_ASN1_bytes.
These functions are unused. Upstream recently needed to limit recursion
depth on this function in 81f69e5b69b8e87ca5d7080ab643ebda7808542c. It
looks like deeply nested BER constructed strings could cause unbounded
stack usage. Delete the function rather than import the fix.
Change-Id: I7868080fae52b46fb9f9147543c0f7970d8fff98
Reviewed-on: https://boringssl-review.googlesource.com/10368
Commit-Queue: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Diffstat (limited to 'include/openssl')
-rw-r--r-- | include/openssl/asn1.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h index 3b2a8ec9..98a9db11 100644 --- a/include/openssl/asn1.h +++ b/include/openssl/asn1.h @@ -861,8 +861,6 @@ OPENSSL_EXPORT BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai,BIGNUM *bn); /* given a string, return the correct type, max is the maximum length */ OPENSSL_EXPORT int ASN1_PRINTABLE_type(const unsigned char *s, int max); -OPENSSL_EXPORT int i2d_ASN1_bytes(ASN1_STRING *a, unsigned char **pp, int tag, int xclass); -OPENSSL_EXPORT ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, const unsigned char **pp, long length, int Ptag, int Pclass); OPENSSL_EXPORT unsigned long ASN1_tag2bit(int tag); /* type is one or more of the B_ASN1_ values. */ OPENSSL_EXPORT ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a,const unsigned char **pp, long length,int type); |