diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 15:06:48 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 17:05:35 +0200 |
commit | 17ebf85abda18c3875b1ba6670fe7b393bc1f297 (patch) | |
tree | 224f98559daf13f77b4526df0a24a3ab1675f685 /include | |
parent | Remove duplicate ordinals (diff) | |
download | openssl-17ebf85abda18c3875b1ba6670fe7b393bc1f297.tar.xz openssl-17ebf85abda18c3875b1ba6670fe7b393bc1f297.zip |
Add ASN1_STRING_get0_data(), deprecate ASN1_STRING_data().
Deprecate the function ASN1_STRING_data() and replace with a new function
ASN1_STRING_get0_data() which returns a constant pointer. Update library
to use new function.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/asn1.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h index fcf6de9967..40526fbaa2 100644 --- a/include/openssl/asn1.h +++ b/include/openssl/asn1.h @@ -550,7 +550,8 @@ void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len); int ASN1_STRING_length(const ASN1_STRING *x); void ASN1_STRING_length_set(ASN1_STRING *x, int n); int ASN1_STRING_type(const ASN1_STRING *x); -unsigned char *ASN1_STRING_data(ASN1_STRING *x); +DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) +const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x); DECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING) int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length); |