summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c
index 9f6b392b3c..3b87035d3a 100644
--- a/src/lib/libcrypto/x509/x509_conf.c
+++ b/src/lib/libcrypto/x509/x509_conf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_conf.c,v 1.14 2024/06/18 05:56:37 tb Exp $ */ 1/* $OpenBSD: x509_conf.c,v 1.15 2024/06/18 09:35:09 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 */
@@ -284,7 +284,7 @@ v3_check_generic(const char **value)
284 284
285/* Create a generic extension: for now just handle DER type */ 285/* Create a generic extension: for now just handle DER type */
286static X509_EXTENSION * 286static X509_EXTENSION *
287v3_generic_extension(const char *ext, const char *value, int crit, int gen_type, 287v3_generic_extension(const char *name, const char *value, int crit, int gen_type,
288 X509V3_CTX *ctx) 288 X509V3_CTX *ctx)
289{ 289{
290 unsigned char *ext_der = NULL; 290 unsigned char *ext_der = NULL;
@@ -293,9 +293,9 @@ v3_generic_extension(const char *ext, const char *value, int crit, int gen_type,
293 ASN1_OCTET_STRING *oct = NULL; 293 ASN1_OCTET_STRING *oct = NULL;
294 X509_EXTENSION *extension = NULL; 294 X509_EXTENSION *extension = NULL;
295 295
296 if (!(obj = OBJ_txt2obj(ext, 0))) { 296 if ((obj = OBJ_txt2obj(name, 0)) == NULL) {
297 X509V3error(X509V3_R_EXTENSION_NAME_ERROR); 297 X509V3error(X509V3_R_EXTENSION_NAME_ERROR);
298 ERR_asprintf_error_data("name=%s", ext); 298 ERR_asprintf_error_data("name=%s", name);
299 goto err; 299 goto err;
300 } 300 }
301 301