From 7ebed7711684e343925983d750620f383c010586 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 6 Mar 2025 07:25:01 +0000 Subject: 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. --- src/lib/libcrypto/asn1/asn1_gen.c | 4 ++-- 1 file 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 @@ -/* $OpenBSD: asn1_gen.c,v 1.26 2025/03/06 07:20:01 tb Exp $ */ +/* $OpenBSD: asn1_gen.c,v 1.27 2025/03/06 07:25:01 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2002. */ @@ -448,7 +448,7 @@ asn1_multi(int utype, const char *section, X509V3_CTX *cnf) if (section) { if (!cnf) goto bad; - sect = X509V3_get0_section(cnf, (char *)section); + sect = X509V3_get0_section(cnf, section); if (!sect) goto bad; for (i = 0; i < sk_CONF_VALUE_num(sect); i++) { -- cgit v1.2.3-55-g6feb