diff options
author | Thomas Egerer <thomas.egerer@secunet.com> | 2011-11-04 09:24:58 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-11-04 11:11:17 +0100 |
commit | 42e2da606c1a90b19a0aaca36b02785306fec2dc (patch) | |
tree | 403d559dc5b26220d8bba9e4739ea870307028e2 /src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | |
parent | dbd2169569d195954e5854147e34bb60520cdffc (diff) | |
download | strongswan-42e2da606c1a90b19a0aaca36b02785306fec2dc.tar.bz2 strongswan-42e2da606c1a90b19a0aaca36b02785306fec2dc.tar.xz |
Use chunk_clear to memwipe shared secret
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 78ed2811a..9e4067589 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c @@ -219,7 +219,7 @@ METHOD(diffie_hellman_t, set_other_public_value, void, return; } - chunk_free(&this->shared_secret); + chunk_clear(&this->shared_secret); if (!compute_shared_key(this, &this->shared_secret)) { DBG1(DBG_LIB, "ECDH shared secret computation failed"); |