Cleanse memory using the new OPENSSL_cleanse() function.

I've covered all the memset()s I felt safe modifying, but may have missed some.
This commit is contained in:
Richard Levitte
2002-11-28 08:04:36 +00:00
parent 2047bda6fb
commit 4579924b7e
61 changed files with 137 additions and 137 deletions

View File

@@ -215,7 +215,7 @@ int RAND_poll(void)
if (n > 0)
{
RAND_add(tmpbuf,sizeof tmpbuf,n);
memset(tmpbuf,0,n);
OPENSSL_cleanse(tmpbuf,n);
}
#endif