Wipe memory after using key material (incomplete, to be continued)

This commit is contained in:
Martin Willi
2011-05-09 14:36:15 +02:00
parent 7dc48bab1b
commit f7812f6492
9 changed files with 43 additions and 24 deletions
@@ -152,7 +152,7 @@ METHOD(crypter_t, set_key, void,
METHOD(crypter_t, destroy, void,
private_openssl_crypter_t *this)
{
free(this->key.ptr);
clear_chunk(&this->key);
free(this);
}