aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_verify.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2010-02-28 14:22:56 +0000
committerBen Laurie <ben@openssl.org>2010-02-28 14:22:56 +0000
commit19ec2f4194cabf30f15ae2b7903d597ef38b024a (patch)
treebbcc573a4f444b64fd26c4f7adfbdde6596d4b97 /crypto/evp/p_verify.c
parent2b13f80360c321ce7cd336a286a057489bac9660 (diff)
downloadopenssl-19ec2f4194cabf30f15ae2b7903d597ef38b024a.tar.gz
Fix warnings (note that gcc 4.2 has a bug that makes one of its
warnings hard to fix without major surgery).
Diffstat (limited to 'crypto/evp/p_verify.c')
-rw-r--r--crypto/evp/p_verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/p_verify.c b/crypto/evp/p_verify.c
index 6e2e70b382..013825e347 100644
--- a/crypto/evp/p_verify.c
+++ b/crypto/evp/p_verify.c
@@ -67,8 +67,9 @@ int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
{
unsigned char m[EVP_MAX_MD_SIZE];
unsigned int m_len;
- int i,ok=0,v;
+ int i = 0,ok = 0,v;
MS_STATIC EVP_MD_CTX tmp_ctx;
+ EVP_PKEY_CTX *pkctx = NULL;
EVP_MD_CTX_init(&tmp_ctx);
if (!EVP_MD_CTX_copy_ex(&tmp_ctx,ctx))
@@ -79,7 +80,6 @@ int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
if (ctx->digest->flags & EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
{
- EVP_PKEY_CTX *pkctx = NULL;
i = -1;
pkctx = EVP_PKEY_CTX_new(pkey, NULL);
if (!pkctx)