projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A few more memset()s converted to OPENSSL_cleanse().
[oweals/openssl.git]
/
crypto
/
md5
/
md5_one.c
diff --git
a/crypto/md5/md5_one.c
b/crypto/md5/md5_one.c
index b89dec850d2d5b20ed511227cac38a986b2380cd..c67eb795ca76398aa8c58ab03575c6960d743c41 100644
(file)
--- a/
crypto/md5/md5_one.c
+++ b/
crypto/md5/md5_one.c
@@
-89,7
+89,7
@@
unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md)
}
#endif
MD5_Final(md,&c);
-
memset(&c,0
,sizeof(c)); /* security consideration */
+
OPENSSL_cleanse(&c
,sizeof(c)); /* security consideration */
return(md);
}