]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
v3_ncons: Fix difference args names in nc_match_single function
authorMaks Mishin <maks.mishinFZ@gmail.com>
Wed, 2 Oct 2024 04:29:04 +0000 (07:29 +0300)
committerTomas Mraz <tomas@openssl.org>
Fri, 4 Oct 2024 10:20:19 +0000 (12:20 +0200)
The arguments of the `nc_match_single` function have different names
in the declaration and definition or are mixed up in places.

CLA: trivial

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25592)

crypto/x509/v3_ncons.c

index 481e1e20440ab3c79730bccb168c44d4ae27cf51..c6ebb2f6e1a24094582a031e8651943acb95d3b2 100644 (file)
@@ -34,8 +34,8 @@ static int do_i2r_name_constraints(const X509V3_EXT_METHOD *method,
 static int print_nc_ipadd(BIO *bp, ASN1_OCTET_STRING *ip);
 
 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc);
-static int nc_match_single(int effective_type, GENERAL_NAME *sub,
-                           GENERAL_NAME *gen);
+static int nc_match_single(int effective_type, GENERAL_NAME *gen,
+                           GENERAL_NAME *base);
 static int nc_dn(const X509_NAME *sub, const X509_NAME *nm);
 static int nc_dns(ASN1_IA5STRING *sub, ASN1_IA5STRING *dns);
 static int nc_email(ASN1_IA5STRING *sub, ASN1_IA5STRING *eml);