diff options
author | Saturneric <[email protected]> | 2021-09-20 09:35:57 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-20 09:35:57 +0000 |
commit | 8544bb3ed9ccf09f3082c3032381a1b61dc5e122 (patch) | |
tree | e5b12fd9c1331718dd60926ed7b4056361a8b68f /src/gpg/GpgContext.cpp | |
parent | Support multi-channel Context. (diff) | |
download | GpgFrontend-8544bb3ed9ccf09f3082c3032381a1b61dc5e122.tar.gz GpgFrontend-8544bb3ed9ccf09f3082c3032381a1b61dc5e122.zip |
The basic functions of the core pass the test.
Adjust and improve the core part of the interface.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgContext.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp index c1911a17..1372fd73 100644 --- a/src/gpg/GpgContext.cpp +++ b/src/gpg/GpgContext.cpp @@ -64,19 +64,12 @@ GpgContext::GpgContext(bool independent_database, check_gpg_error(gpgme_new(&_p_ctx)); _ctx_ref = CtxRefHandler(_p_ctx); - DLOG(INFO) << "GpgContext _ctx_ref Created"; - auto engineInfo = gpgme_ctx_get_engine_info(*this); - DLOG(INFO) << "GpgContext gpgme_ctx_get_engine_info Called"; - // Check ENV before running bool check_pass = false, find_openpgp = false, find_gpgconf = false, find_assuan = false, find_cms = false; while (engineInfo != nullptr) { - DLOG(INFO) << gpgme_get_protocol_name(engineInfo->protocol) << " " - << engineInfo->file_name << " " << engineInfo->version; - if (engineInfo->protocol == GPGME_PROTOCOL_GPGCONF && strcmp(engineInfo->version, "1.0.0") != 0) find_gpgconf = true; @@ -95,7 +88,6 @@ GpgContext::GpgContext(bool independent_database, if (find_gpgconf && find_openpgp && find_cms && find_assuan) check_pass = true; - DLOG(INFO) << "GpgContext check_pass " << check_pass; if (!check_pass) { good_ = false; return; @@ -107,7 +99,6 @@ GpgContext::GpgContext(bool independent_database, _ctx_ref.get(), GPGME_PROTOCOL_OpenPGP, info.AppPath.c_str(), info.DatabasePath.c_str()); assert(check_gpg_error_2_err_code(err) == GPG_ERR_NO_ERROR); - DLOG(INFO) << "Set independent_database path" << db_path; } /** Setting the output type must be done at the beginning */ @@ -122,7 +113,6 @@ GpgContext::GpgContext(bool independent_database, GPGME_KEYLIST_MODE_WITH_TOFU)); good_ = true; } - DLOG(INFO) << "GpgContext init done "; } bool GpgContext::good() const { |