aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-07-03 11:33:11 +0900
committerstoffu <stoffu@protonmail.ch>2018-07-03 18:07:20 +0900
commita4272de79746c2349a0da8371f45390989cc6b90 (patch)
tree6778bc6bcc9fe3447bd9d34a9768d891e248e291 /src/wallet/wallet2.h
parentMerge pull request #4067 (diff)
downloadmonero-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 '')
-rw-r--r--src/wallet/wallet2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index d33d8258b..c54587693 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -609,7 +609,7 @@ namespace tools
/*!
* \brief verifies given password is correct for default wallet keys file
*/
- bool verify_password(const epee::wipeable_string& password) const;
+ bool verify_password(const epee::wipeable_string& password);
cryptonote::account_base& get_account(){return m_account;}
const cryptonote::account_base& get_account()const{return m_account;}
@@ -1144,6 +1144,9 @@ namespace tools
bool unblackball_output(const crypto::public_key &output);
bool is_output_blackballed(const crypto::public_key &output) const;
+ bool lock_keys_file();
+ bool unlock_keys_file();
+ bool is_keys_file_locked() const;
private:
/*!
* \brief Stores wallet information to wallet file.