openssl: abstract out OPENSSL_cleanse
commit1630219d906f592c9258bfe2a0e0c4923df35782
authorCory Fields <cory-nospam-@coryfields.com>
Wed, 21 Jan 2015 00:23:25 +0000 (20 19:23 -0500)
committerCory Fields <cory-nospam-@coryfields.com>
Sun, 15 Feb 2015 16:34:02 +0000 (15 11:34 -0500)
tree02b0ed9574290873f88bd0ebc1bd0a224c98e5b1
parenta9565863e09a32729bd6ce33f31889099b3d75cb
openssl: abstract out OPENSSL_cleanse

This makes it easier for us to replace it if desired, since it's now only in
one spot. Also, it avoids the openssl include from allocators.h, which
essentially forced openssl to be included from every compilation unit.
13 files changed:
src/Makefile.am
src/allocators.h
src/base58.cpp
src/crypter.cpp
src/crypter.h
src/db.cpp
src/qt/paymentrequestplus.cpp
src/qt/paymentrequestplus.h
src/qt/paymentserver.cpp
src/random.cpp
src/streams.h
src/support/cleanse.cpp [new file with mode: 0644]
src/support/cleanse.h [new file with mode: 0644]