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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user