diff options
Diffstat (limited to 'src/core/model/GpgSignResult.cpp')
-rw-r--r-- | src/core/model/GpgSignResult.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/model/GpgSignResult.cpp b/src/core/model/GpgSignResult.cpp index 1819c22b..59c402dd 100644 --- a/src/core/model/GpgSignResult.cpp +++ b/src/core/model/GpgSignResult.cpp @@ -27,7 +27,6 @@ */ #include "GpgSignResult.h" - namespace GpgFrontend { GpgSignResult::GpgSignResult(gpgme_sign_result_t r) : result_ref_(std::shared_ptr<struct _gpgme_op_sign_result>( @@ -62,4 +61,9 @@ auto GpgSignResult::InvalidSigners() } return result; } + +auto GpgSignResult::HashAlgo() -> QString { + if (result_ref_->signatures == nullptr) return {}; + return gpgme_hash_algo_name(result_ref_->signatures->hash_algo); +} } // namespace GpgFrontend
\ No newline at end of file |