diff options
author | Saturneric <[email protected]> | 2022-05-20 18:16:30 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-05-20 18:16:30 +0000 |
commit | 5369960a42296b1e281f66284a41badace27c7c0 (patch) | |
tree | 4da64183141f84b11003e49bb0fe77bf95a8e3a9 | |
parent | fix: remove useless log in Channel system (diff) | |
download | GpgFrontend-5369960a42296b1e281f66284a41badace27c7c0.tar.gz GpgFrontend-5369960a42296b1e281f66284a41badace27c7c0.zip |
feat: explain Not Fully Valid reason
-rw-r--r-- | src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp b/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp index 44031e67..79eb5282 100644 --- a/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp +++ b/src/core/function/result_analyse/GpgVerifyResultAnalyse.cpp @@ -34,8 +34,8 @@ #include "core/GpgConstants.h" #include "function/gpg/GpgKeyGetter.h" -GpgFrontend::GpgVerifyResultAnalyse::GpgVerifyResultAnalyse(GpgError error, - GpgVerifyResult result) +GpgFrontend::GpgVerifyResultAnalyse::GpgVerifyResultAnalyse( + GpgError error, GpgVerifyResult result) : error_(error), result_(std::move(result)) {} void GpgFrontend::GpgVerifyResultAnalyse::do_analyse() { @@ -104,6 +104,7 @@ void GpgFrontend::GpgVerifyResultAnalyse::do_analyse() { stream_ << _("Signature Fully Valid.") << std::endl; } else { stream_ << _("Signature Not Fully Valid.") << std::endl; + stream_ << _("(May used a subkey to sign)") << std::endl; } if (!(sign->status & GPGME_SIGSUM_KEY_MISSING)) { @@ -172,8 +173,8 @@ void GpgFrontend::GpgVerifyResultAnalyse::do_analyse() { } } -bool GpgFrontend::GpgVerifyResultAnalyse::print_signer(std::stringstream &stream, - gpgme_signature_t sign) { +bool GpgFrontend::GpgVerifyResultAnalyse::print_signer( + std::stringstream &stream, gpgme_signature_t sign) { bool keyFound = true; auto key = GpgFrontend::GpgKeyGetter::GetInstance().GetKey(sign->fpr); |