aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgAutomatonHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgAutomatonHandler.h')
-rw-r--r--src/core/function/gpg/GpgAutomatonHandler.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgAutomatonHandler.h b/src/core/function/gpg/GpgAutomatonHandler.h
index 4363cf30..7ab2bf44 100644
--- a/src/core/function/gpg/GpgAutomatonHandler.h
+++ b/src/core/function/gpg/GpgAutomatonHandler.h
@@ -83,7 +83,7 @@ class GpgAutomatonHandler
AutomatonState current_state_ = kAS_START;
AutomatonNextStateHandler next_state_handler_;
AutomatonActionHandler action_handler_;
- bool success_ = false;
+ bool success_ = true;
bool card_edit_;
QString id_;
QString prompt_status_;
@@ -110,7 +110,8 @@ class GpgAutomatonHandler
*/
auto DoInteract(const GpgKeyPtr& key,
AutomatonNextStateHandler next_state_handler,
- AutomatonActionHandler action_handler, int flags = 0) -> bool;
+ AutomatonActionHandler action_handler,
+ int flags = 0) -> std::tuple<GpgError, bool>;
/**
* @brief
@@ -122,7 +123,8 @@ class GpgAutomatonHandler
*/
auto DoCardInteract(const QString& serial_number,
AutomatonNextStateHandler next_state_handler,
- AutomatonActionHandler action_handler) -> bool;
+ AutomatonActionHandler action_handler)
+ -> std::tuple<GpgError, bool>;
private:
GpgContext& ctx_ =