aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_crypter.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-05-09 14:33:22 +0200
committerMartin Willi <martin@revosec.ch>2011-05-09 14:36:15 +0200
commitf7812f6492b31413735c009fd2a76c7587346074 (patch)
tree917ace75f7a744ae592e9f5dfaf0cefb94add0d1 /src/libstrongswan/plugins/openssl/openssl_crypter.c
parent7dc48bab1bfc92dcf614ef2c12e0dd5e333844ec (diff)
downloadstrongswan-f7812f6492b31413735c009fd2a76c7587346074.tar.bz2
strongswan-f7812f6492b31413735c009fd2a76c7587346074.tar.xz
Wipe memory after using key material (incomplete, to be continued)
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_crypter.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_crypter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_crypter.c b/src/libstrongswan/plugins/openssl/openssl_crypter.c
index 2ed07ff0c..1d322d43d 100644
--- a/src/libstrongswan/plugins/openssl/openssl_crypter.c
+++ b/src/libstrongswan/plugins/openssl/openssl_crypter.c
@@ -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);
}