diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-28 09:04:36 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-28 09:04:36 +0100 |
commit | 4579924b7e55fccc7013e6de196f2e2ab175ce39 (patch) | |
tree | fa19611a704cc901d3ba338cefbbb98878de7ee5 /crypto/ecdh | |
parent | Unused variable removed. (diff) | |
download | openssl-4579924b7e55fccc7013e6de196f2e2ab175ce39.tar.xz openssl-4579924b7e55fccc7013e6de196f2e2ab175ce39.zip |
Cleanse memory using the new OPENSSL_cleanse() function.
I've covered all the memset()s I felt safe modifying, but may have missed some.
Diffstat (limited to 'crypto/ecdh')
-rw-r--r-- | crypto/ecdh/ech_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh/ech_lib.c b/crypto/ecdh/ech_lib.c index fd8cb19fdd..59526f33bd 100644 --- a/crypto/ecdh/ech_lib.c +++ b/crypto/ecdh/ech_lib.c @@ -176,7 +176,7 @@ void ECDH_DATA_free(ECDH_DATA *r) CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, r, &r->ex_data); - memset((void *)r, 0x0, sizeof(ECDH_DATA)); + OPENSSL_cleanse((void *)r, sizeof(ECDH_DATA)); OPENSSL_free(r); } |