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/hmac/hmac.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/hmac/hmac.c')
-rw-r--r-- | src/libstrongswan/plugins/hmac/hmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/hmac/hmac.c b/src/libstrongswan/plugins/hmac/hmac.c index c7b2739df..397a1ea11 100644 --- a/src/libstrongswan/plugins/hmac/hmac.c +++ b/src/libstrongswan/plugins/hmac/hmac.c @@ -147,8 +147,8 @@ METHOD(hmac_t, destroy, void, private_hmac_t *this) { this->h->destroy(this->h); - free(this->opaded_key.ptr); - free(this->ipaded_key.ptr); + chunk_clear(&this->opaded_key); + chunk_clear(&this->ipaded_key); free(this); } |