diff options
author | Saturn&Eric <[email protected]> | 2022-05-08 13:14:24 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-08 13:14:24 +0000 |
commit | f722eec9a898c97e233619a50f6f1a94fef6f94c (patch) | |
tree | 26757206ff3e139a10968bd8ae6147ca1a1182a7 /src/core/function/GlobalSettingStation.h | |
parent | Merge pull request #50 from saturneric/develop-2.0.5 (diff) | |
parent | doc: update translate document. (diff) | |
download | GpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.tar.gz GpgFrontend-f722eec9a898c97e233619a50f6f1a94fef6f94c.zip |
Merge pull request #54 from saturneric/develop-2.0.6v2.0.6
Develop 2.0.6
Diffstat (limited to 'src/core/function/GlobalSettingStation.h')
-rw-r--r-- | src/core/function/GlobalSettingStation.h | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/src/core/function/GlobalSettingStation.h b/src/core/function/GlobalSettingStation.h index d6521c8a..0df6bd21 100644 --- a/src/core/function/GlobalSettingStation.h +++ b/src/core/function/GlobalSettingStation.h @@ -38,18 +38,13 @@ #include "core/GpgFrontendCore.h" #include "core/GpgFunctionObject.h" -namespace vmime::security::cert { -class defaultCertificateVerifier; -class X509Certificate; -} // namespace vmime::security::cert - namespace GpgFrontend { /** * @brief * */ -class GlobalSettingStation +class GPGFRONTEND_CORE_EXPORT GlobalSettingStation : public SingletonFunctionObject<GlobalSettingStation> { public: /** @@ -146,36 +141,6 @@ class GlobalSettingStation } /** - * @brief Get the Cert Verifier object - * - * @return std::shared_ptr< - * vmime::security::cert::defaultCertificateVerifier> - */ - [[nodiscard]] std::shared_ptr< - vmime::security::cert::defaultCertificateVerifier> - GetCertVerifier() const; - - /** - * @brief - * - * @param path - */ - void AddRootCert(const std::filesystem::path &path); - - /** - * @brief Get the Root Certs object - * - * @return const std::vector<std::shared_ptr<X509>>& - */ - const std::vector<std::shared_ptr<X509>> &GetRootCerts(); - - /** - * @brief - * - */ - void ResetRootCerts() { root_certs_.clear(); } - - /** * @brief sync the settings to the file * */ @@ -218,8 +183,7 @@ class GlobalSettingStation std::filesystem::path ui_config_path_ = ui_config_dir_path_ / "ui.cfg"; ///< UI Configure File Location - libconfig::Config ui_cfg_; ///< - std::vector<std::shared_ptr<X509>> root_certs_; ///< + libconfig::Config ui_cfg_; ///< UI Configure File /** * @brief |