]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix trace output for provider algorithm names
authorIlie Halip <ilie.halip@nxp.com>
Wed, 14 May 2025 14:40:21 +0000 (17:40 +0300)
committerTomas Mraz <tomas@openssl.org>
Fri, 16 May 2025 08:47:50 +0000 (10:47 +0200)
Use the index variable to print out the provider algorithm details.

CLA: trivial

Signed-off-by: Ilie Halip <ilie.halip@nxp.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27624)

(cherry picked from commit 1094db3c4e57c4d537837912db3736299b50edef)

crypto/provider_core.c

index 9069d4f8dc99411a5a392d2f39fd8751c5cd7fba..0b675946485c5ab4c006da6c39bb46eb5b737ba6 100644 (file)
@@ -1958,12 +1958,12 @@ const OSSL_ALGORITHM *ossl_provider_query_operation(const OSSL_PROVIDER *prov,
                 BIO_printf(trc_out,
                            "(provider %s) names %s, prop_def %s, desc %s\n",
                            prov->name,
-                           res->algorithm_names == NULL ? "none" :
-                           res->algorithm_names,
-                           res->property_definition == NULL ? "none" :
-                           res->property_definition,
-                           res->algorithm_description == NULL ? "none" :
-                           res->algorithm_description);
+                           idx->algorithm_names == NULL ? "none" :
+                           idx->algorithm_names,
+                           idx->property_definition == NULL ? "none" :
+                           idx->property_definition,
+                           idx->algorithm_description == NULL ? "none" :
+                           idx->algorithm_description);
             }
         } else {
             BIO_printf(trc_out, "(provider %s) query_operation failed\n", prov->name);