]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
macctx: remove unused function
authorPauli <paul.dale@oracle.com>
Tue, 28 Oct 2025 05:05:59 +0000 (16:05 +1100)
committerNeil Horman <nhorman@openssl.org>
Thu, 30 Oct 2025 12:22:18 +0000 (08:22 -0400)
The `ossl_prov_macctx_load_from_params()` function is no longer used.
Since it isn't public, it can be removed.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29013)

providers/common/include/prov/provider_util.h
providers/common/provider_util.c

index 17f7652cb6c1396983746839704c1ecb33b9693e..f04e811ac3b8904592c64f634f1354526bbcbee8 100644 (file)
@@ -108,30 +108,6 @@ int ossl_prov_set_macctx(EVP_MAC_CTX *macctx,
                          const char *properties,
                          const OSSL_PARAM param[]);
 
-/* MAC functions */
-/*
- * Load an EVP_MAC_CTX* from the specified parameters with the specified
- * library context.
- * The params "mac" and "properties" are used to determine the implementation
- * used, and the parameters "digest", "cipher", "engine" and "properties" are
- * passed to the MAC via the created MAC context if they are given.
- * If there is already a created MAC context, it will be replaced if the "mac"
- * parameter is found, otherwise it will simply be used as is, and passed the
- * parameters to pilfer as it sees fit.
- *
- * As an option, a MAC name may be explicitly given, and if it is, the "mac"
- * parameter will be ignored.
- * Similarly, as an option, a cipher name or a digest name may be explicitly
- * given, and if any of them is, the "digest" and "cipher" parameters are
- * ignored.
- */
-int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
-                                      const OSSL_PARAM params[],
-                                      const char *macname,
-                                      const char *ciphername,
-                                      const char *mdname,
-                                      OSSL_LIB_CTX *ctx);
-
 typedef struct ag_capable_st {
     OSSL_ALGORITHM alg;
     int (*capable)(void);
index 9c1f79ca62dac6a5ca69e2532d911530697ad877..2f123f5f2b063483cdde6aeda84004a5aa787e09 100644 (file)
@@ -323,22 +323,6 @@ int ossl_prov_macctx_load(EVP_MAC_CTX **macctx,
     return 0;
 }
 
-int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
-                                      const OSSL_PARAM params[],
-                                      const char *macname,
-                                      const char *ciphername,
-                                      const char *mdname,
-                                      OSSL_LIB_CTX *libctx)
-{
-    return ossl_prov_macctx_load
-            (macctx, OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_MAC),
-             OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_CIPHER),
-             OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_DIGEST),
-             OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_PROPERTIES),
-             OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_ENGINE),
-             macname, ciphername, mdname, libctx);
-}
-
 void ossl_prov_cache_exported_algorithms(const OSSL_ALGORITHM_CAPABLE *in,
                                          OSSL_ALGORITHM *out)
 {