diff options
| author | tb <> | 2025-11-27 08:27:31 +0000 |
|---|---|---|
| committer | tb <> | 2025-11-27 08:27:31 +0000 |
| commit | a0443a8283b1ea5aa04375cf3487285eb68d97f7 (patch) | |
| tree | 3a03b2806470873c2eb2d15465d1b8d0d8868f9c /src/usr.bin/openssl/cms.c | |
| parent | e301ef23b53cd30d97d07468d49ce25c85bdea3e (diff) | |
| download | openbsd-a0443a8283b1ea5aa04375cf3487285eb68d97f7.tar.gz openbsd-a0443a8283b1ea5aa04375cf3487285eb68d97f7.tar.bz2 openbsd-a0443a8283b1ea5aa04375cf3487285eb68d97f7.zip | |
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
Diffstat (limited to 'src/usr.bin/openssl/cms.c')
| -rw-r--r-- | src/usr.bin/openssl/cms.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 1 | /* $OpenBSD: cms.c,v 1.38 2025/06/07 08:24:15 tb Exp $ */ | 1 | /* $OpenBSD: cms.c,v 1.39 2025/11/27 08:27:31 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -1884,14 +1884,14 @@ receipt_request_print(BIO *out, CMS_ContentInfo *cms) | |||
| 1884 | BIO_puts(bio_err, " Receipt Request Parse Error\n"); | 1884 | BIO_puts(bio_err, " Receipt Request Parse Error\n"); |
| 1885 | ERR_print_errors(bio_err); | 1885 | ERR_print_errors(bio_err); |
| 1886 | } else { | 1886 | } else { |
| 1887 | char *id; | 1887 | const char *id; |
| 1888 | int idlen; | 1888 | int idlen; |
| 1889 | 1889 | ||
| 1890 | CMS_ReceiptRequest_get0_values(rr, &scid, &allorfirst, | 1890 | CMS_ReceiptRequest_get0_values(rr, &scid, &allorfirst, |
| 1891 | &rlist, &rto); | 1891 | &rlist, &rto); |
| 1892 | BIO_puts(out, " Signed Content ID:\n"); | 1892 | BIO_puts(out, " Signed Content ID:\n"); |
| 1893 | idlen = ASN1_STRING_length(scid); | 1893 | idlen = ASN1_STRING_length(scid); |
| 1894 | id = (char *) ASN1_STRING_data(scid); | 1894 | id = (const char *) ASN1_STRING_get0_data(scid); |
| 1895 | BIO_dump_indent(out, id, idlen, 4); | 1895 | BIO_dump_indent(out, id, idlen, 4); |
| 1896 | BIO_puts(out, " Receipts From"); | 1896 | BIO_puts(out, " Receipts From"); |
| 1897 | if (rlist != NULL) { | 1897 | if (rlist != NULL) { |
