pkcs7: Make sure to wipe decrypted content
This commit is contained in:
@@ -170,7 +170,7 @@ METHOD(container_t, get_encoding, bool,
|
|||||||
METHOD(container_t, destroy, void,
|
METHOD(container_t, destroy, void,
|
||||||
private_pkcs7_encrypted_data_t *this)
|
private_pkcs7_encrypted_data_t *this)
|
||||||
{
|
{
|
||||||
free(this->content.ptr);
|
chunk_clear(&this->content);
|
||||||
free(this->encoding.ptr);
|
free(this->encoding.ptr);
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ METHOD(container_t, get_encoding, bool,
|
|||||||
METHOD(container_t, destroy, void,
|
METHOD(container_t, destroy, void,
|
||||||
private_pkcs7_enveloped_data_t *this)
|
private_pkcs7_enveloped_data_t *this)
|
||||||
{
|
{
|
||||||
free(this->content.ptr);
|
chunk_clear(&this->content);
|
||||||
free(this->encoding.ptr);
|
free(this->encoding.ptr);
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user