wallet2: unlock keys file before calling verify_password (needed for Windows)

Also added notes to WalletManager::verifyWalletPassword (which afaik seems unused
by anyone at the moment) regarding the need to unlock the keys file beforehand.
This commit is contained in:
stoffu
2018-07-03 11:33:11 +09:00
parent a9b83f5a6e
commit a4272de797
5 changed files with 71 additions and 10 deletions
+14
View File
@@ -2205,6 +2205,20 @@ void WalletImpl::keyReuseMitigation2(bool mitigation)
m_wallet->key_reuse_mitigation2(mitigation);
}
bool WalletImpl::lockKeysFile()
{
return m_wallet->lock_keys_file();
}
bool WalletImpl::unlockKeysFile()
{
return m_wallet->unlock_keys_file();
}
bool WalletImpl::isKeysFileLocked()
{
return m_wallet->is_keys_file_locked();
}
} // namespace
namespace Bitmonero = Monero;