diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2015-01-20 19:23:25 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2015-02-15 11:34:02 -0500 |
commit | 1630219d906f592c9258bfe2a0e0c4923df35782 (patch) | |
tree | 02b0ed9574290873f88bd0ebc1bd0a224c98e5b1 /src/crypter.h | |
parent | a9565863e09a32729bd6ce33f31889099b3d75cb (diff) |
openssl: abstract out OPENSSL_cleanse
This makes it easier for us to replace it if desired, since it's now only in
one spot. Also, it avoids the openssl include from allocators.h, which
essentially forced openssl to be included from every compilation unit.
Diffstat (limited to 'src/crypter.h')
-rw-r--r-- | src/crypter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypter.h b/src/crypter.h index cbaf1562f0..8a91498e2e 100644 --- a/src/crypter.h +++ b/src/crypter.h @@ -82,8 +82,8 @@ public: void CleanKey() { - OPENSSL_cleanse(chKey, sizeof(chKey)); - OPENSSL_cleanse(chIV, sizeof(chIV)); + memory_cleanse(chKey, sizeof(chKey)); + memory_cleanse(chIV, sizeof(chIV)); fKeySet = false; } |