diff options
author | saturneric <[email protected]> | 2025-04-18 15:54:54 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-18 15:54:54 +0000 |
commit | 8f14fdc7325cb9635e3d92873baaa58f430fca01 (patch) | |
tree | 323f462c283ac2151a23cfffd08d52a678c06541 /src/core/function/gpg/GpgAutomatonHandler.h | |
parent | fix: add missing libGLESv2.dll on windows platform (diff) | |
download | GpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.tar.gz GpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.zip |
feat: add more info check
Diffstat (limited to 'src/core/function/gpg/GpgAutomatonHandler.h')
-rw-r--r-- | src/core/function/gpg/GpgAutomatonHandler.h | 8 |
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_ = |