summaryrefslogtreecommitdiffstats
path: root/crypto/evp/m_sigver.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-08-10 18:11:39 +0200
committerPauli <paul.dale@oracle.com>2020-08-29 09:40:10 +0200
commitada0670bf6c2f67016a55750b1f6b08c54f4242c (patch)
treec06a6f3e3b7db4145337c04a005d7fe9a215eb07 /crypto/evp/m_sigver.c
parentConvert EVP_PKEY_CTX_set_mac_key() into a function (diff)
downloadopenssl-ada0670bf6c2f67016a55750b1f6b08c54f4242c.tar.xz
openssl-ada0670bf6c2f67016a55750b1f6b08c54f4242c.zip
Fix some EVP_MD_CTX_* functions
Fixes some issues with EVP_MD_CTX_* functions when doing EVP_DigestSign* and EVP_DigestVerify* functions. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12637)
Diffstat (limited to 'crypto/evp/m_sigver.c')
-rw-r--r--crypto/evp/m_sigver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c
index 04ac121e25..8fb9de07fe 100644
--- a/crypto/evp/m_sigver.c
+++ b/crypto/evp/m_sigver.c
@@ -186,7 +186,7 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
* so the EVP_MD should not be used beyound the lifetime of the
* EVP_MD_CTX.
*/
- ctx->reqdigest = ctx->fetched_digest =
+ ctx->digest = ctx->reqdigest = ctx->fetched_digest =
EVP_MD_fetch(locpctx->libctx, mdname, props);
}
}