aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_verify.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-11-30 10:25:36 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-07 17:39:23 +0100
commitab0a14bbc7bc7cdda4cfb2b2a730804b3437429f (patch)
treec191c780074864d54efde3d60a5db49ac585b1e9 /crypto/evp/p_verify.c
parentcddcea8c4b46ea610d928af899e394d9e323c617 (diff)
downloadopenssl-ab0a14bbc7bc7cdda4cfb2b2a730804b3437429f.tar.gz
Add inclusion of internal/evp_int.h to all crypto/ files that need it
These are the files that add new EVP_MDs. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp/p_verify.c')
-rw-r--r--crypto/evp/p_verify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/evp/p_verify.c b/crypto/evp/p_verify.c
index 02c26631f0..c2328f2293 100644
--- a/crypto/evp/p_verify.c
+++ b/crypto/evp/p_verify.c
@@ -61,6 +61,7 @@
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
+#include "internal/evp_int.h"
int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
unsigned int siglen, EVP_PKEY *pkey)
@@ -94,7 +95,7 @@ int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
goto err;
if (EVP_PKEY_verify_init(pkctx) <= 0)
goto err;
- if (EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) <= 0)
+ if (EVP_PKEY_CTX_set_signature_md(pkctx, EVP_MD_CTX_md(ctx)) <= 0)
goto err;
i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len);
err: