diff options
author | stoffu <stoffu@protonmail.ch> | 2018-07-03 11:33:11 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-07-03 18:07:20 +0900 |
commit | a4272de79746c2349a0da8371f45390989cc6b90 (patch) | |
tree | 6778bc6bcc9fe3447bd9d34a9768d891e248e291 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #4067 (diff) | |
download | monero-a4272de79746c2349a0da8371f45390989cc6b90.tar.xz |
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.
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r-- | src/wallet/api/wallet.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 3f6bfec9e..680da26ce 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -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; |