aboutsummaryrefslogtreecommitdiff
path: root/src/crypter.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-11-14 21:26:56 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-11-14 21:26:56 +0000
commitf1a9aad7893173b0351ad32e684dad6f31598210 (patch)
tree21373860cc7f22da72e28d97263813f53e450920 /src/crypter.h
parent8b11b682f14f20cf2935c4a5abb4dbd3d508e46e (diff)
parent8045273a015cc72857ca168b0ad224b3acbbaf8a (diff)
downloadbitcoin-f1a9aad7893173b0351ad32e684dad6f31598210.tar.xz
Merge branch '0.6.0.x' into 0.6.x
Conflicts: src/init.cpp src/main.cpp src/serialize.h
Diffstat (limited to 'src/crypter.h')
-rw-r--r--src/crypter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypter.h b/src/crypter.h
index d1bdb92c91..f46c32a227 100644
--- a/src/crypter.h
+++ b/src/crypter.h
@@ -76,8 +76,8 @@ public:
void CleanKey()
{
- memset(&chKey, 0, sizeof chKey);
- memset(&chIV, 0, sizeof chIV);
+ OPENSSL_cleanse(chKey, sizeof(chKey));
+ OPENSSL_cleanse(chIV, sizeof(chIV));
munlock(&chKey, sizeof chKey);
munlock(&chIV, sizeof chIV);
fKeySet = false;