diff options
author | Martin Willi <martin@revosec.ch> | 2011-05-09 14:33:22 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-05-09 14:36:15 +0200 |
commit | f7812f6492b31413735c009fd2a76c7587346074 (patch) | |
tree | 917ace75f7a744ae592e9f5dfaf0cefb94add0d1 /src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | |
parent | 7dc48bab1bfc92dcf614ef2c12e0dd5e333844ec (diff) | |
download | strongswan-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_ec_diffie_hellman.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c index 32fc2bccd..78ed2811a 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c @@ -257,7 +257,7 @@ METHOD(diffie_hellman_t, destroy, void, { EC_POINT_clear_free(this->pub_key); EC_KEY_free(this->key); - chunk_free(&this->shared_secret); + chunk_clear(&this->shared_secret); free(this); } |