]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Don't use C++ reserved word template for function arguments
authorMscVZoltan <141750063+MscVZoltan@users.noreply.github.com>
Wed, 9 Aug 2023 06:43:40 +0000 (08:43 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 10 Aug 2023 11:26:51 +0000 (13:26 +0200)
CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21692)

crypto/evp/keymgmt_meth.c
include/crypto/evp.h

index 0f767eaddb5d41872af2636701e85e274c329ad6..882c068a71b9b51d7a05ae5e498b9980167755d3 100644 (file)
@@ -346,7 +346,7 @@ void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection,
 }
 
 int evp_keymgmt_gen_set_template(const EVP_KEYMGMT *keymgmt, void *genctx,
-                                 void *template)
+                                 void *templ)
 {
     /*
      * It's arguable if we actually should return success in this case, as
@@ -356,7 +356,7 @@ int evp_keymgmt_gen_set_template(const EVP_KEYMGMT *keymgmt, void *genctx,
      */
     if (keymgmt->gen_set_template == NULL)
         return 1;
-    return keymgmt->gen_set_template(genctx, template);
+    return keymgmt->gen_set_template(genctx, templ);
 }
 
 int evp_keymgmt_gen_set_params(const EVP_KEYMGMT *keymgmt, void *genctx,
index 560a2898e9962be377ca210079a2139b6baee5a6..566b7889dbcfc058371e79fe43faeb23f1b87bb3 100644 (file)
@@ -812,7 +812,7 @@ int evp_keymgmt_set_params(const EVP_KEYMGMT *keymgmt,
 void *evp_keymgmt_gen_init(const EVP_KEYMGMT *keymgmt, int selection,
                            const OSSL_PARAM params[]);
 int evp_keymgmt_gen_set_template(const EVP_KEYMGMT *keymgmt, void *genctx,
-                                 void *template);
+                                 void *templ);
 int evp_keymgmt_gen_set_params(const EVP_KEYMGMT *keymgmt, void *genctx,
                                const OSSL_PARAM params[]);
 void *evp_keymgmt_gen(const EVP_KEYMGMT *keymgmt, void *genctx,