diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-19 12:00:17 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-19 12:09:26 +0100 |
| commit | 07f4386b387caddd82502d575cc9dba80b81d9f2 (patch) | |
| tree | 65727039c39354977ca8b9007ed9e395cb089586 /src/support/cleanse.cpp | |
| parent | Merge #5803: Update debian changelog and control file (diff) | |
| parent | openssl: abstract out OPENSSL_cleanse (diff) | |
| download | discoin-07f4386b387caddd82502d575cc9dba80b81d9f2.tar.xz discoin-07f4386b387caddd82502d575cc9dba80b81d9f2.zip | |
Merge #5689: openssl: abstract out OPENSSL_cleanse
1630219 openssl: abstract out OPENSSL_cleanse (Cory Fields)
Diffstat (limited to 'src/support/cleanse.cpp')
| -rw-r--r-- | src/support/cleanse.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/support/cleanse.cpp b/src/support/cleanse.cpp new file mode 100644 index 000000000..a2141b244 --- /dev/null +++ b/src/support/cleanse.cpp @@ -0,0 +1,13 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2015 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include "cleanse.h" + +#include <openssl/crypto.h> + +void memory_cleanse(void *ptr, size_t len) +{ + OPENSSL_cleanse(ptr, len); +} |