Fulcrum/bitcoin/support/cleanse.cpp
Calin Culianu 4249740857
Added CBlock and block deserialization of bitcoin blocks.
Works! Yay!  We are one step closer to our Grande Plan.
2019-11-08 20:06:39 +02:00

16 lines
457 B
C++

// 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 <cstring>
//#include <openssl/crypto.h>
namespace bitcoin {
void memory_cleanse(void *ptr, size_t len) {
//OPENSSL_cleanse(ptr, len);
std::memset(ptr, 0, len);
}
} // end namepsace