summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2025-03-06 07:25:01 +0000
committertb <>2025-03-06 07:25:01 +0000
commit7ebed7711684e343925983d750620f383c010586 (patch)
tree2fa43de103bbc919101b742e556c21ec61c62bee /src/lib
parent338826280562cba94ac633378fc75cc1c3951ae4 (diff)
downloadopenbsd-7ebed7711684e343925983d750620f383c010586.tar.gz
openbsd-7ebed7711684e343925983d750620f383c010586.tar.bz2
openbsd-7ebed7711684e343925983d750620f383c010586.zip
asn1_multi: remove a pointless cast
There's no need to cast away const from a const char * if you're going to pass it to a const char * argument of a function.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/asn1/asn1_gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_gen.c b/src/lib/libcrypto/asn1/asn1_gen.c
index d9da305ef7..edd6743993 100644
--- a/src/lib/libcrypto/asn1/asn1_gen.c
+++ b/src/lib/libcrypto/asn1/asn1_gen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_gen.c,v 1.26 2025/03/06 07:20:01 tb Exp $ */ 1/* $OpenBSD: asn1_gen.c,v 1.27 2025/03/06 07:25:01 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 2002. 3 * project 2002.
4 */ 4 */
@@ -448,7 +448,7 @@ asn1_multi(int utype, const char *section, X509V3_CTX *cnf)
448 if (section) { 448 if (section) {
449 if (!cnf) 449 if (!cnf)
450 goto bad; 450 goto bad;
451 sect = X509V3_get0_section(cnf, (char *)section); 451 sect = X509V3_get0_section(cnf, section);
452 if (!sect) 452 if (!sect)
453 goto bad; 453 goto bad;
454 for (i = 0; i < sk_CONF_VALUE_num(sect); i++) { 454 for (i = 0; i < sk_CONF_VALUE_num(sect); i++) {