From a0443a8283b1ea5aa04375cf3487285eb68d97f7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 27 Nov 2025 08:27:31 +0000 Subject: openssl cms: switch to ASN1_STRING_get0_data() The deprecated ASN1_STRING_data() will be removed in a future release. This is one small step towards that. ok kenjiro --- src/usr.bin/openssl/cms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr.bin/openssl/cms.c') diff --git a/src/usr.bin/openssl/cms.c b/src/usr.bin/openssl/cms.c index 458ddb0e3b..880ab1449b 100644 --- a/src/usr.bin/openssl/cms.c +++ b/src/usr.bin/openssl/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.38 2025/06/07 08:24:15 tb Exp $ */ +/* $OpenBSD: cms.c,v 1.39 2025/11/27 08:27:31 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -1884,14 +1884,14 @@ receipt_request_print(BIO *out, CMS_ContentInfo *cms) BIO_puts(bio_err, " Receipt Request Parse Error\n"); ERR_print_errors(bio_err); } else { - char *id; + const char *id; int idlen; CMS_ReceiptRequest_get0_values(rr, &scid, &allorfirst, &rlist, &rto); BIO_puts(out, " Signed Content ID:\n"); idlen = ASN1_STRING_length(scid); - id = (char *) ASN1_STRING_data(scid); + id = (const char *) ASN1_STRING_get0_data(scid); BIO_dump_indent(out, id, idlen, 4); BIO_puts(out, " Receipts From"); if (rlist != NULL) { -- cgit v1.2.3-55-g6feb