diff options
author | lan1120 <lanming@huawei.com> | 2023-05-22 14:37:59 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-05-24 02:02:09 +0200 |
commit | b501df3cefebcdaaeb7d6480b7a7b82d68927873 (patch) | |
tree | 0e0a58c8e48e637f2d80e344c603966f76734907 | |
parent | doc/fingerprints.txt: Add the OpenSSL OMC PGP key fingerprint (diff) | |
download | openssl-b501df3cefebcdaaeb7d6480b7a7b82d68927873.tar.xz openssl-b501df3cefebcdaaeb7d6480b7a7b82d68927873.zip |
Fix incorrect parameter verification in EVP_MD_CTX_get_params
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)
-rw-r--r-- | crypto/evp/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index e7590cda55..286f5bdc63 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -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; |