diff options
author | saturneric <[email protected]> | 2025-04-19 00:34:18 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-19 00:34:18 +0000 |
commit | d6aa4d2e5058bccccb167087a10cc26fced8f561 (patch) | |
tree | e344b0477a9609b7b6820aa603f620b7d0b15d4b /src/core/function/gpg/GpgAssuanHelper.h | |
parent | fix: gpg context will take response of gpg-agent (diff) | |
download | GpgFrontend-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.h | 8 |
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_; |