]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
remove ossl_prov_digest_load_from_params()
authorPauli <ppzgs1@gmail.com>
Thu, 28 Aug 2025 04:48:59 +0000 (14:48 +1000)
committerPauli <ppzgs1@gmail.com>
Wed, 3 Sep 2025 00:26:24 +0000 (10:26 +1000)
This is no longer used or needed and is internal, so away it goes.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28361)

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

index 8c0e29d17c0e28680de795f49a512b27d9e3465b..4060992b4a09b1ae15e511bb88c0dfe0508bccc9 100644 (file)
@@ -71,13 +71,10 @@ const EVP_MD *ossl_prov_digest_fetch(PROV_DIGEST *pd, OSSL_LIB_CTX *libctx,
 
 /*
  * Load a digest from the specified parameters with the specified context.
- * The params "properties", "engine" and "digest" are used to determine the
+ * The params "propq", "engine" and "digest" are used to determine the
  * implementation used.  If a provider cannot be found, it falls back to trying
  * non-provider based implementations.
  */
-int ossl_prov_digest_load_from_params(PROV_DIGEST *pd,
-                                      const OSSL_PARAM params[],
-                                      OSSL_LIB_CTX *ctx);
 int ossl_prov_digest_load(PROV_DIGEST *pd,const OSSL_PARAM *digest,
                           const OSSL_PARAM *propq, const OSSL_PARAM *engine,
                           OSSL_LIB_CTX *ctx);
index 742f6dab3d15db0f1798d3482c62e60c19081222..40b1aa81bed48b75e031ecaf423b49b1d855e7d8 100644 (file)
@@ -212,17 +212,6 @@ int ossl_prov_digest_load(PROV_DIGEST *pd, const OSSL_PARAM *digest,
     return pd->md != NULL;
 }
 
-int ossl_prov_digest_load_from_params(PROV_DIGEST *pd,
-                                      const OSSL_PARAM params[],
-                                      OSSL_LIB_CTX *ctx)
-{
-    return ossl_prov_digest_load(pd,
-                                 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),
-                                 ctx);
-}
-
 void ossl_prov_digest_set_md(PROV_DIGEST *pd, EVP_MD *md)
 {
     ossl_prov_digest_reset(pd);