Wladimir J. van der Laan
10 years ago
13 changed files with 44 additions and 17 deletions
@ -0,0 +1,13 @@
@@ -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); |
||||
} |
@ -0,0 +1,13 @@
@@ -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.
|
||||
|
||||
#ifndef BITCOIN_SUPPORT_CLEANSE_H |
||||
#define BITCOIN_SUPPORT_CLEANSE_H |
||||
|
||||
#include <stdlib.h> |
||||
|
||||
void memory_cleanse(void *ptr, size_t len); |
||||
|
||||
#endif // BITCOIN_SUPPORT_CLEANSE_H
|
Loading…
Reference in new issue