Add ASN1_STRING_get0_data(), deprecate ASN1_STRING_data().
[openssl.git] / crypto / ts / ts_lib.c
index e18f1f3f7e3ff93b9d83dedfd5b5c3d35da3ff98..99c0580f2aef39da1c496f9b6cec67d79ba2f891 100644 (file)
@@ -85,7 +85,7 @@ int TS_MSG_IMPRINT_print_bio(BIO *bio, TS_MSG_IMPRINT *a)
 
     BIO_printf(bio, "Message data:\n");
     msg = a->hashed_msg;
-    BIO_dump_indent(bio, (const char *)ASN1_STRING_data(msg),
+    BIO_dump_indent(bio, (const char *)ASN1_STRING_get0_data(msg),
                     ASN1_STRING_length(msg), 4);
 
     return 1;