projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make update
[oweals/openssl.git]
/
crypto
/
asn1
/
a_sign.c
diff --git
a/crypto/asn1/a_sign.c
b/crypto/asn1/a_sign.c
index de53b441448e4f9d44a07004790105b7a8a006c0..52ce7e39740b877e81f9a74f43028b7679d7ab20 100644
(file)
--- a/
crypto/asn1/a_sign.c
+++ b/
crypto/asn1/a_sign.c
@@
-204,9
+204,9
@@
int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
err:
EVP_MD_CTX_cleanup(&ctx);
if (buf_in != NULL)
err:
EVP_MD_CTX_cleanup(&ctx);
if (buf_in != NULL)
- {
memset((char *)buf_in,0
,(unsigned int)inl); OPENSSL_free(buf_in); }
+ {
OPENSSL_cleanse((char *)buf_in
,(unsigned int)inl); OPENSSL_free(buf_in); }
if (buf_out != NULL)
if (buf_out != NULL)
- {
memset((char *)buf_out,0
,outll); OPENSSL_free(buf_out); }
+ {
OPENSSL_cleanse((char *)buf_out
,outll); OPENSSL_free(buf_out); }
return(outl);
}
return(outl);
}
@@
-287,8
+287,8
@@
int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2,
err:
EVP_MD_CTX_cleanup(&ctx);
if (buf_in != NULL)
err:
EVP_MD_CTX_cleanup(&ctx);
if (buf_in != NULL)
- {
memset((char *)buf_in,0
,(unsigned int)inl); OPENSSL_free(buf_in); }
+ {
OPENSSL_cleanse((char *)buf_in
,(unsigned int)inl); OPENSSL_free(buf_in); }
if (buf_out != NULL)
if (buf_out != NULL)
- {
memset((char *)buf_out,0
,outll); OPENSSL_free(buf_out); }
+ {
OPENSSL_cleanse((char *)buf_out
,outll); OPENSSL_free(buf_out); }
return(outl);
}
return(outl);
}