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)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sat, 26 Nov 2011 06:02:04 +0000 (06:02 +0000)
commit94f778bdebe1438fbe0206621ce44b4e25196e59
tree5e8add3e2a97bf32f59bc94a7b250dbae728783f
parentd8b86408636388195596f6c7dded23f777f99a07
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