From 93ab4e00975b9c53776510ccf15bfa592ac47a4c Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 18 Jun 2024 09:35:09 +0000 Subject: [PATCH] Rename 'ext' to 'name' in v3_generic_extension() In this code 'ext' is usually used for an X509_EXTENSION object. --- lib/libcrypto/x509/x509_conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/x509/x509_conf.c b/lib/libcrypto/x509/x509_conf.c index 9f6b392b3c0..3b87035d3a2 100644 --- a/lib/libcrypto/x509/x509_conf.c +++ b/lib/libcrypto/x509/x509_conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_conf.c,v 1.14 2024/06/18 05:56:37 tb Exp $ */ +/* $OpenBSD: x509_conf.c,v 1.15 2024/06/18 09:35:09 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -284,7 +284,7 @@ v3_check_generic(const char **value) /* Create a generic extension: for now just handle DER type */ static X509_EXTENSION * -v3_generic_extension(const char *ext, const char *value, int crit, int gen_type, +v3_generic_extension(const char *name, const char *value, int crit, int gen_type, X509V3_CTX *ctx) { unsigned char *ext_der = NULL; @@ -293,9 +293,9 @@ v3_generic_extension(const char *ext, const char *value, int crit, int gen_type, ASN1_OCTET_STRING *oct = NULL; X509_EXTENSION *extension = NULL; - if (!(obj = OBJ_txt2obj(ext, 0))) { + if ((obj = OBJ_txt2obj(name, 0)) == NULL) { X509V3error(X509V3_R_EXTENSION_NAME_ERROR); - ERR_asprintf_error_data("name=%s", ext); + ERR_asprintf_error_data("name=%s", name); goto err; } -- 2.20.1