aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/openssl/ossl_arc4.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-30 13:17:50 +0000
committerlloyd <[email protected]>2012-05-30 13:17:50 +0000
commita78a694779c711f9a9f6569e5de88d14527d6885 (patch)
treecaa290558884ec0dd1f16ecf3f74206ca5487d14 /src/engine/openssl/ossl_arc4.cpp
parentf703961f20af641102db4c57e0f09e4daa7841e4 (diff)
Call clear_mem instead of memset directly
Diffstat (limited to 'src/engine/openssl/ossl_arc4.cpp')
-rw-r--r--src/engine/openssl/ossl_arc4.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/openssl/ossl_arc4.cpp b/src/engine/openssl/ossl_arc4.cpp
index 6469d263a..cad194a59 100644
--- a/src/engine/openssl/ossl_arc4.cpp
+++ b/src/engine/openssl/ossl_arc4.cpp
@@ -19,7 +19,8 @@ namespace {
class ARC4_OpenSSL : public StreamCipher
{
public:
- void clear() { std::memset(&state, 0, sizeof(state)); }
+ void clear() { clear_mem(&state, 1); }
+
std::string name() const;
StreamCipher* clone() const { return new ARC4_OpenSSL(SKIP); }