diff options
author | saturneric <[email protected]> | 2025-04-15 23:19:53 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-15 23:19:53 +0000 |
commit | 73a0f7ddf8a8db0057201374f1518d2063ad9a06 (patch) | |
tree | 4dfdf140fa639f0ab8799433c4d9cf5079a92bf0 /src/core/function/gpg/GpgAutomatonHandler.cpp | |
parent | refactor: code cleanup (diff) | |
download | GpgFrontend-73a0f7ddf8a8db0057201374f1518d2063ad9a06.tar.gz GpgFrontend-73a0f7ddf8a8db0057201374f1518d2063ad9a06.zip |
feat: support key groups
Diffstat (limited to '')
-rw-r--r-- | src/core/function/gpg/GpgAutomatonHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgAutomatonHandler.cpp b/src/core/function/gpg/GpgAutomatonHandler.cpp index af2f0cba..b2d9d562 100644 --- a/src/core/function/gpg/GpgAutomatonHandler.cpp +++ b/src/core/function/gpg/GpgAutomatonHandler.cpp @@ -97,13 +97,13 @@ auto GpgAutomatonHandler::interator_cb_func(void* handle, const char* status, } auto GpgAutomatonHandler::DoInteract( - const GpgKey& key, AutomatonNextStateHandler next_state_handler, + const GpgKeyPtr& key, AutomatonNextStateHandler next_state_handler, AutomatonActionHandler action_handler, int flags) -> bool { gpgme_key_t p_key = - flags == GPGME_INTERACT_CARD ? nullptr : static_cast<gpgme_key_t>(key); + flags == GPGME_INTERACT_CARD ? nullptr : static_cast<gpgme_key_t>(*key); AutomatonHandelStruct handel_struct( - flags == GPGME_INTERACT_CARD ? "" : key.Fingerprint()); + flags == GPGME_INTERACT_CARD ? "" : key->Fingerprint()); handel_struct.SetHandler(std::move(next_state_handler), std::move(action_handler)); |