Browse Source

Update secure allocator

pull/5/head
Duke Leto 4 years ago
parent
commit
fc5c773d66
  1. 9
      src/support/allocators/secure.h

9
src/support/allocators/secure.h

@ -1,10 +1,11 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#ifndef BITCOIN_SUPPORT_ALLOCATORS_SECURE_H
#define BITCOIN_SUPPORT_ALLOCATORS_SECURE_H
#ifndef HUSH_SUPPORT_ALLOCATORS_SECURE_H
#define HUSH_SUPPORT_ALLOCATORS_SECURE_H
#include "support/pagelocker.h"
@ -59,4 +60,4 @@ struct secure_allocator : public std::allocator<T> {
// This is exactly like std::string, but with a custom allocator.
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
#endif // BITCOIN_SUPPORT_ALLOCATORS_SECURE_H
#endif // HUSH_SUPPORT_ALLOCATORS_SECURE_H

Loading…
Cancel
Save