diff options
| author | tb <> | 2026-05-16 06:30:53 +0000 |
|---|---|---|
| committer | tb <> | 2026-05-16 06:30:53 +0000 |
| commit | 42213cb36ddbe77614fe5c14359f1b8c405c0647 (patch) | |
| tree | b15822773bac316aeb211f31722ffa6fd9c89a84 /src/lib | |
| parent | dc2bc2fdb63a9fb33bbf79f46442082c460bfbb1 (diff) | |
| download | openbsd-42213cb36ddbe77614fe5c14359f1b8c405c0647.tar.gz openbsd-42213cb36ddbe77614fe5c14359f1b8c405c0647.tar.bz2 openbsd-42213cb36ddbe77614fe5c14359f1b8c405c0647.zip | |
unknown_ext_print: avoid casting away const
The BIO_dump_indent() API masterpiece expects a const char pointer as
input. Don't cast away const when suppressing pointer sign warnings.
Prompted by a report by N. Dossche
ok kenjiro
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_prn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_prn.c b/src/lib/libcrypto/x509/x509_prn.c index 327bc33772..fb502c67ff 100644 --- a/src/lib/libcrypto/x509/x509_prn.c +++ b/src/lib/libcrypto/x509/x509_prn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_prn.c,v 1.8 2026/05/16 06:27:05 tb Exp $ */ | 1 | /* $OpenBSD: x509_prn.c,v 1.9 2026/05/16 06:30:53 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 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -209,7 +209,7 @@ unknown_ext_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, | |||
| 209 | return ASN1_parse_dump(out, | 209 | return ASN1_parse_dump(out, |
| 210 | ext->value->data, ext->value->length, indent, -1) > 0; | 210 | ext->value->data, ext->value->length, indent, -1) > 0; |
| 211 | case X509V3_EXT_DUMP_UNKNOWN: | 211 | case X509V3_EXT_DUMP_UNKNOWN: |
| 212 | return BIO_dump_indent(out, (char *)ext->value->data, | 212 | return BIO_dump_indent(out, (const char *)ext->value->data, |
| 213 | ext->value->length, indent) > 0; | 213 | ext->value->length, indent) > 0; |
| 214 | default: | 214 | default: |
| 215 | return 1; | 215 | return 1; |
