summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_verify.c')
-rw-r--r--src/lib/libcrypto/asn1/a_verify.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/a_verify.c b/src/lib/libcrypto/asn1/a_verify.c
index fdce6e4380..da3efaaf8d 100644
--- a/src/lib/libcrypto/asn1/a_verify.c
+++ b/src/lib/libcrypto/asn1/a_verify.c
@@ -100,7 +100,12 @@ int ASN1_verify(i2d_of_void *i2d, X509_ALGOR *a, ASN1_BIT_STRING *signature,
100 p=buf_in; 100 p=buf_in;
101 101
102 i2d(data,&p); 102 i2d(data,&p);
103 EVP_VerifyInit_ex(&ctx,type, NULL); 103 if (!EVP_VerifyInit_ex(&ctx,type, NULL))
104 {
105 ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_EVP_LIB);
106 ret=0;
107 goto err;
108 }
104 EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl); 109 EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
105 110
106 OPENSSL_cleanse(buf_in,(unsigned int)inl); 111 OPENSSL_cleanse(buf_in,(unsigned int)inl);