summaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_verify.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-07-31 01:57:25 +0200
committerBen Laurie <ben@openssl.org>2001-07-31 01:57:25 +0200
commitdbad169019598981174ff46c7a9bf58373b0e53a (patch)
treece8ca1188d5614648f24b03967785543f1edc8f5 /crypto/evp/p_verify.c
parentMake EVPs allocate context memory, thus making them extensible. Rationalise (diff)
downloadopenssl-dbad169019598981174ff46c7a9bf58373b0e53a.tar.xz
openssl-dbad169019598981174ff46c7a9bf58373b0e53a.zip
Really add the EVP and all of the DES changes.
Diffstat (limited to 'crypto/evp/p_verify.c')
-rw-r--r--crypto/evp/p_verify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/p_verify.c b/crypto/evp/p_verify.c
index dcb54f3abb..af175b84f7 100644
--- a/crypto/evp/p_verify.c
+++ b/crypto/evp/p_verify.c
@@ -85,8 +85,10 @@ int EVP_VerifyFinal(EVP_MD_CTX *ctx, unsigned char *sigbuf,
EVPerr(EVP_F_EVP_VERIFYFINAL,EVP_R_WRONG_PUBLIC_KEY_TYPE);
return(-1);
}
+ EVP_MD_CTX_init(&tmp_ctx);
EVP_MD_CTX_copy(&tmp_ctx,ctx);
EVP_DigestFinal(&tmp_ctx,&(m[0]),&m_len);
+ EVP_MD_CTX_cleanup(&tmp_ctx);
if (ctx->digest->verify == NULL)
{
EVPerr(EVP_F_EVP_VERIFYFINAL,EVP_R_NO_VERIFY_FUNCTION_CONFIGURED);