From 17ebf85abda18c3875b1ba6670fe7b393bc1f297 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 16 Aug 2016 14:06:48 +0100 Subject: 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 --- crypto/x509v3/v3_prn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/x509v3/v3_prn.c') diff --git a/crypto/x509v3/v3_prn.c b/crypto/x509v3/v3_prn.c index 3048b67588..4b1d0c3b5e 100644 --- a/crypto/x509v3/v3_prn.c +++ b/crypto/x509v3/v3_prn.c @@ -79,7 +79,7 @@ int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, int ok = 1; extoct = X509_EXTENSION_get_data(ext); - p = ASN1_STRING_data(extoct); + p = ASN1_STRING_get0_data(extoct); extlen = ASN1_STRING_length(extoct); if ((method = X509V3_EXT_get(ext)) == NULL) -- cgit v1.2.3