From: lan1120 Date: Mon, 22 May 2023 12:37:59 +0000 (+0800) Subject: Fix incorrect parameter verification in EVP_MD_CTX_get_params X-Git-Tag: openssl-3.1.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=321d6cd7f428d1c20b88dec8233eac8afe727577;p=thirdparty%2Fopenssl.git Fix incorrect parameter verification in EVP_MD_CTX_get_params Signed-off-by: lan1120 Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21022) (cherry picked from commit b501df3cefebcdaaeb7d6480b7a7b82d68927873) --- diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index 8c30089f65f..28efbddb473 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -786,7 +786,7 @@ int EVP_MD_CTX_get_params(EVP_MD_CTX *ctx, OSSL_PARAM params[]) return pctx->op.sig.signature->get_ctx_md_params(pctx->op.sig.algctx, params); - if (ctx->digest != NULL && ctx->digest->get_params != NULL) + if (ctx->digest != NULL && ctx->digest->get_ctx_params != NULL) return ctx->digest->get_ctx_params(ctx->algctx, params); return 0;