Add ASN1_STRING_get0_data(), deprecate ASN1_STRING_data().
authorDr. Stephen Henson <steve@openssl.org>
Tue, 16 Aug 2016 13:06:48 +0000 (14:06 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 16 Aug 2016 15:05:35 +0000 (16:05 +0100)
commit17ebf85abda18c3875b1ba6670fe7b393bc1f297
tree224f98559daf13f77b4526df0a24a3ab1675f685
parent1940aa6e6b51147df10a5bffcaaa2b9904209184
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>
25 files changed:
apps/apps.c
apps/apps.h
apps/ca.c
apps/cms.c
apps/crl.c
apps/ocsp.c
apps/x509.c
crypto/asn1/asn1_lib.c
crypto/asn1/evp_asn1.c
crypto/asn1/p5_pbe.c
crypto/asn1/p8_pkey.c
crypto/ct/ct_prn.c
crypto/dh/dh_ameth.c
crypto/ec/ec_ameth.c
crypto/ec/ec_asn1.c
crypto/ec/ecx_meth.c
crypto/pkcs12/p12_mutl.c
crypto/ts/ts_lib.c
crypto/ts/ts_rsp_verify.c
crypto/ts/ts_verify_ctx.c
crypto/x509/t_x509.c
crypto/x509v3/v3_lib.c
crypto/x509v3/v3_prn.c
doc/crypto/ASN1_STRING_length.pod
include/openssl/asn1.h