From: Pauli Date: Thu, 28 Aug 2025 04:48:59 +0000 (+1000) Subject: remove ossl_prov_digest_load_from_params() X-Git-Tag: 4.0-PRE-CLANG-FORMAT-WEBKIT~582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a9e0e0b91baba72a18403357bd1325053343be3;p=thirdparty%2Fopenssl.git remove ossl_prov_digest_load_from_params() This is no longer used or needed and is internal, so away it goes. Reviewed-by: Tomas Mraz Reviewed-by: Tim Hudson Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/28361) --- diff --git a/providers/common/include/prov/provider_util.h b/providers/common/include/prov/provider_util.h index 8c0e29d17c0..4060992b4a0 100644 --- a/providers/common/include/prov/provider_util.h +++ b/providers/common/include/prov/provider_util.h @@ -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); diff --git a/providers/common/provider_util.c b/providers/common/provider_util.c index 742f6dab3d1..40b1aa81bed 100644 --- a/providers/common/provider_util.c +++ b/providers/common/provider_util.c @@ -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);