projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanse memory using the new OPENSSL_cleanse() function.
[oweals/openssl.git]
/
apps
/
dgst.c
diff --git
a/apps/dgst.c
b/apps/dgst.c
index dd65a591f5b3ee41a481f99e99e3a59512543045..c4bb7a106153bd31bcac32f0d044b721c490c4cd 100644
(file)
--- a/
apps/dgst.c
+++ b/
apps/dgst.c
@@
-356,7
+356,7
@@
int MAIN(int argc, char **argv)
end:
if (buf != NULL)
{
-
memset(buf,0
,BUFSIZE);
+
OPENSSL_cleanse(buf
,BUFSIZE);
OPENSSL_free(buf);
}
if (in != NULL) BIO_free(in);