diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-05-24 15:14:54 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-09-05 20:36:57 -0400 |
commit | 60adb21c7affb41ec475a62a53fb0a36bea35dfb (patch) | |
tree | ee9e01cc00438824458e125785fd652bd43a7674 /src/qt/askpassphrasedialog.h | |
parent | bc6d8a3662f0fb992073e5e80269a90a722d76e0 (diff) | |
download | bitcoin-60adb21c7affb41ec475a62a53fb0a36bea35dfb.tar.xz |
Optionally allow AskPassphraseDialog to output the passphrase
Diffstat (limited to 'src/qt/askpassphrasedialog.h')
-rw-r--r-- | src/qt/askpassphrasedialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/askpassphrasedialog.h b/src/qt/askpassphrasedialog.h index ac31569f63..bdfd3fb9a0 100644 --- a/src/qt/askpassphrasedialog.h +++ b/src/qt/askpassphrasedialog.h @@ -7,6 +7,8 @@ #include <QDialog> +#include <support/allocators/secure.h> + class WalletModel; namespace Ui { @@ -27,7 +29,7 @@ public: Decrypt /**< Ask passphrase and decrypt wallet */ }; - explicit AskPassphraseDialog(Mode mode, QWidget *parent); + explicit AskPassphraseDialog(Mode mode, QWidget *parent, SecureString* passphrase_out = nullptr); ~AskPassphraseDialog(); void accept(); @@ -39,6 +41,7 @@ private: Mode mode; WalletModel *model; bool fCapsLock; + SecureString* m_passphrase_out; private Q_SLOTS: void textChanged(); |