From 0b91f3575db5fd191dd137053bd6bd8b6db03405 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 19 Apr 2025 01:23:15 +0200 Subject: fix: operations of subkey --- src/core/function/gpg/GpgAutomatonHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/function/gpg/GpgAutomatonHandler.cpp') diff --git a/src/core/function/gpg/GpgAutomatonHandler.cpp b/src/core/function/gpg/GpgAutomatonHandler.cpp index afa55299..c0ce853d 100644 --- a/src/core/function/gpg/GpgAutomatonHandler.cpp +++ b/src/core/function/gpg/GpgAutomatonHandler.cpp @@ -110,13 +110,13 @@ auto InteratorCbFunc(void* handle, const char* status, const char* args, } auto DoInteractImpl(GpgContext& ctx_, const GpgKeyPtr& key, bool card_edit, - const QString& id, + const QString& fpr, AutomatonNextStateHandler next_state_handler, AutomatonActionHandler action_handler, int flags) -> std::tuple { gpgme_key_t p_key = key == nullptr ? nullptr : static_cast(*key); - AutomatonHandelStruct handel(card_edit, id); + AutomatonHandelStruct handel(card_edit, fpr); handel.SetHandler(std::move(next_state_handler), std::move(action_handler)); GpgData data_out; @@ -133,7 +133,7 @@ auto GpgAutomatonHandler::DoInteract( int flags) -> std::tuple { assert(key != nullptr); if (key == nullptr) return {GPG_ERR_USER_1, false}; - return DoInteractImpl(ctx_, key, false, key->ID(), + return DoInteractImpl(ctx_, key, false, key->Fingerprint(), std::move(next_state_handler), std::move(action_handler), flags); } -- cgit v1.2.3