aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_verify.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-28 08:06:36 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-28 08:06:36 +0000
commit920b700d4ad48557e8cc498ce6754b4323855a83 (patch)
treed8ed766b2d0d11c0c76a42c635534a8d19fc27c2 /crypto/asn1/a_verify.c
parent615ee040987b64f14075ca830de3d70211a97ece (diff)
downloadopenssl-920b700d4ad48557e8cc498ce6754b4323855a83.tar.gz
Cleanse memory using the new OPENSSL_cleanse() function.
I've covered all the memset()s I felt safe modifying, but may have missed some.
Diffstat (limited to 'crypto/asn1/a_verify.c')
-rw-r--r--crypto/asn1/a_verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c
index 2a11927e5c..faa34501b9 100644
--- a/crypto/asn1/a_verify.c
+++ b/crypto/asn1/a_verify.c
@@ -100,7 +100,7 @@ int ASN1_verify(int (*i2d)(), X509_ALGOR *a, ASN1_BIT_STRING *signature,
EVP_VerifyInit(&ctx,type);
EVP_VerifyUpdate(&ctx,(unsigned char *)buf_in,inl);
- memset(buf_in,0,(unsigned int)inl);
+ OPENSSL_cleanse(buf_in,(unsigned int)inl);
OPENSSL_free(buf_in);
if (EVP_VerifyFinal(&ctx,(unsigned char *)signature->data,