Implement an mlock()'d string class for storing passphrases
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 26 Nov 2011 06:02:04 +0000 (06:02 +0000)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 20 Dec 2011 23:42:30 +0000 (18:42 -0500)
commit96f1723bb1f4155357b4e33988a2b99ee674c549
treef21c2b656be1b5b1b95f03ad01856b472c71dab2
parentf503a1486a6cbda8d0e73923fec8de3ced253b28
Implement an mlock()'d string class for storing passphrases

SecureString is identical to std::string except with secure_allocator
substituting for std::allocator. This makes casting between them
impossible, so converting between the two at API boundaries requires
calling ::c_str() for now.
src/bitcoinrpc.cpp
src/crypter.cpp
src/crypter.h
src/qt/askpassphrasedialog.cpp
src/qt/walletmodel.cpp
src/qt/walletmodel.h
src/util.h
src/wallet.cpp
src/wallet.h