diff options
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_lib.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/v3_prn.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_lib.c b/crypto/x509v3/v3_lib.c index 25d019e684..a3ca720fe1 100644 --- a/crypto/x509v3/v3_lib.c +++ b/crypto/x509v3/v3_lib.c @@ -203,7 +203,7 @@ void *X509V3_EXT_d2i(X509_EXTENSION *ext) if ((method = X509V3_EXT_get(ext)) == NULL) return NULL; extvalue = X509_EXTENSION_get_data(ext); - p = ASN1_STRING_data(extvalue); + p = ASN1_STRING_get0_data(extvalue); extlen = ASN1_STRING_length(extvalue); if (method->it) return ASN1_item_d2i(NULL, &p, extlen, ASN1_ITEM_ptr(method->it)); 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) |