]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix incorrect parameter verification in EVP_MD_CTX_get_params
authorlan1120 <lanming@huawei.com>
Mon, 22 May 2023 12:37:59 +0000 (20:37 +0800)
committerPauli <pauli@openssl.org>
Wed, 24 May 2023 00:02:09 +0000 (10:02 +1000)
Signed-off-by: lan1120 <lanming@huawei.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21022)

crypto/evp/digest.c

index e7590cda55471d3196ea66f710bfd71da7816ede..286f5bdc63fe047765c4ae1bd370984c9408b021 100644 (file)
@@ -801,7 +801,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;