aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgAssuanHelper.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-19 00:34:18 +0000
committersaturneric <[email protected]>2025-04-19 00:34:18 +0000
commitd6aa4d2e5058bccccb167087a10cc26fced8f561 (patch)
treee344b0477a9609b7b6820aa603f620b7d0b15d4b /src/core/function/gpg/GpgAssuanHelper.h
parentfix: gpg context will take response of gpg-agent (diff)
downloadGpgFrontend-d6aa4d2e5058bccccb167087a10cc26fced8f561.tar.gz
GpgFrontend-d6aa4d2e5058bccccb167087a10cc26fced8f561.zip
fix: solve found issues by testing
Diffstat (limited to 'src/core/function/gpg/GpgAssuanHelper.h')
-rw-r--r--src/core/function/gpg/GpgAssuanHelper.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgAssuanHelper.h b/src/core/function/gpg/GpgAssuanHelper.h
index adf6d0ff..f357ed93 100644
--- a/src/core/function/gpg/GpgAssuanHelper.h
+++ b/src/core/function/gpg/GpgAssuanHelper.h
@@ -118,10 +118,16 @@ class GPGFRONTEND_CORE_EXPORT GpgAssuanHelper
auto SendDataCommand(GpgComponentType type, const QString& command)
-> std::tuple<GpgError, QStringList>;
+ /**
+ * @brief
+ *
+ */
+ void ResetAllConnections();
+
private:
GpgContext& ctx_ =
GpgContext::GetInstance(SingletonFunctionObject::GetChannel());
- QMap<GpgComponentType, assuan_context_t> assuan_ctx_;
+ QMap<GpgComponentType, QSharedPointer<struct assuan_context_s>> assuan_ctx_;
QByteArray temp_data_;
QString temp_status_;