Changeset View
Changeset View
Standalone View
Standalone View
src/support/cleanse.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2015 The Bitcoin Core developers | // Copyright (c) 2009-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "cleanse.h" | #include <support/cleanse.h> | ||||
#include <openssl/crypto.h> | #include <openssl/crypto.h> | ||||
void memory_cleanse(void *ptr, size_t len) { | void memory_cleanse(void *ptr, size_t len) { | ||||
OPENSSL_cleanse(ptr, len); | OPENSSL_cleanse(ptr, len); | ||||
} | } |