diff options
| author | tb <> | 2026-05-16 07:06:35 +0000 |
|---|---|---|
| committer | tb <> | 2026-05-16 07:06:35 +0000 |
| commit | 03066a19b3dcaf9d6e4457c716d7eafbf6c0c2f9 (patch) | |
| tree | 8bace41e9effc68f6c9f51cddc03f97318727afa /src/lib | |
| parent | 42213cb36ddbe77614fe5c14359f1b8c405c0647 (diff) | |
| download | openbsd-03066a19b3dcaf9d6e4457c716d7eafbf6c0c2f9.tar.gz openbsd-03066a19b3dcaf9d6e4457c716d7eafbf6c0c2f9.tar.bz2 openbsd-03066a19b3dcaf9d6e4457c716d7eafbf6c0c2f9.zip | |
asn1_print_obstring_ctx: cast to const char * rather than char *
Another call to BIO_dump_indent() that cast away const for no good reason.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_prn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_prn.c b/src/lib/libcrypto/asn1/tasn_prn.c index 4db6d61111..61b11dd542 100644 --- a/src/lib/libcrypto/asn1/tasn_prn.c +++ b/src/lib/libcrypto/asn1/tasn_prn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_prn.c,v 1.29 2025/06/07 09:28:00 tb Exp $ */ | 1 | /* $OpenBSD: tasn_prn.c,v 1.30 2026/05/16 07:06:35 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -392,7 +392,7 @@ asn1_print_obstring_ctx(BIO *out, ASN1_STRING *str, int indent, | |||
| 392 | } else if (BIO_puts(out, "\n") <= 0) | 392 | } else if (BIO_puts(out, "\n") <= 0) |
| 393 | return 0; | 393 | return 0; |
| 394 | if ((str->length > 0) && | 394 | if ((str->length > 0) && |
| 395 | BIO_dump_indent(out, (char *)str->data, str->length, | 395 | BIO_dump_indent(out, (const char *)str->data, str->length, |
| 396 | indent + 2) <= 0) | 396 | indent + 2) <= 0) |
| 397 | return 0; | 397 | return 0; |
| 398 | return 1; | 398 | return 1; |
