From 7f4bb375761323eb55ae20ba8327311b3654f8cb Mon Sep 17 00:00:00 2001 From: Rose Date: Mon, 12 Aug 2024 09:22:47 -0400 Subject: [PATCH] common_name and credentials are swapped in tls-openssl --- cups/tls-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/tls-openssl.c b/cups/tls-openssl.c index e2a8ec30bc..763c5f818b 100644 --- a/cups/tls-openssl.c +++ b/cups/tls-openssl.c @@ -829,7 +829,7 @@ cupsGetCredentialsTrust( trust = HTTP_TRUST_INVALID; } - else if (!cupsAreCredentialsValidForName(credentials, common_name)) + else if (!cupsAreCredentialsValidForName(common_name, credentials)) { // The common name does not match the issued certificate... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1); -- 2.47.2