summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-06 18:02:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-06 18:02:31 +0300
commit3454255df72799b6127def97f1445d39dfb3eda5 (patch)
tree1c7c38437930bac54d911576c0c20d81327be0a5 /plugins/CryptoPP/src
parent73aaa5881b6bac6caf6f58d2011e62ee19706292 (diff)
fixes #1049 (memset cannot be used to scrub memory)
Diffstat (limited to 'plugins/CryptoPP/src')
-rw-r--r--plugins/CryptoPP/src/GPGw/gpg_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CryptoPP/src/GPGw/gpg_main.cpp b/plugins/CryptoPP/src/GPGw/gpg_main.cpp
index 5bbbc9f5e3..311d7daa7c 100644
--- a/plugins/CryptoPP/src/GPGw/gpg_main.cpp
+++ b/plugins/CryptoPP/src/GPGw/gpg_main.cpp
@@ -250,7 +250,7 @@ LPSTR __cdecl _gpg_decrypt(LPCSTR message)
if ( gpgresult==gpgSuccess && useridvalid==TRUE)
addPassphrase(keyuserid, passphrase);
- memset(passphrase, 0, sizeof(passphrase));
+ SecureZeroMemory(passphrase, sizeof(passphrase));
size_t decmessagelen = strlen(buffer)+1;
decmessage = (char *) LocalAlloc(LPTR,decmessagelen);