aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_errors.h
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2018-11-11 20:07:25 +0100
committerDusan Klinec <dusan.klinec@gmail.com>2018-11-29 04:33:41 +0100
commit318cc78457136ec778d6dff43b36f9447d95a43d (patch)
tree940b10195714d689ac6eb0feebd6b18757f0f57f /src/wallet/wallet_errors.h
parentMerge pull request #4821 (diff)
downloadmonero-318cc78457136ec778d6dff43b36f9447d95a43d.tar.xz
device/trezor: passphrase entry on host
- simple device callback object added. Device can request passphrase/PIN entry via the callback or notify user some action is required - callback is routed to wallet2, which routes the callback to i_wallet_callback so CLI or GUI wallets can support passphrase entry for HW tokens - wallet: device open needs wallet callback first - passphrase protected device needs wallet callback so user can enter passphrase
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_errors.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h
index b3141985d..e2caee5d2 100644
--- a/src/wallet/wallet_errors.h
+++ b/src/wallet/wallet_errors.h
@@ -219,6 +219,14 @@ namespace tools
}
};
//----------------------------------------------------------------------------------------------------
+ struct password_entry_failed : public wallet_runtime_error
+ {
+ explicit password_entry_failed(std::string&& loc, const std::string &msg = "Password entry failed")
+ : wallet_runtime_error(std::move(loc), msg)
+ {
+ }
+ };
+ //----------------------------------------------------------------------------------------------------
const char* const file_error_messages[] = {
"file already exists",
"file not found",