f7174fb655
6c914ac [wallet] Securely erase potentially sensitive keys/values (Thomas Snider) Tree-SHA512: 071d88c4093108d4e4eced35a6ffcebe3f499798194f5b1be661ffa5b78b5f55311667f6d2a72758d85290f61f958381ee95d380b9045ca18e9e1875f0e686c8
15 lines
469 B
C
15 lines
469 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.
|
|
|
|
#ifndef BITCOIN_SUPPORT_CLEANSE_H
|
|
#define BITCOIN_SUPPORT_CLEANSE_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
// Attempt to overwrite data in the specified memory span.
|
|
void memory_cleanse(void *ptr, size_t len);
|
|
|
|
#endif // BITCOIN_SUPPORT_CLEANSE_H
|