diff options
author | saturneric <[email protected]> | 2023-12-25 12:51:01 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-25 12:51:01 +0000 |
commit | 5260d7a5634279408b3eb36a5f26fe71fb6f9e69 (patch) | |
tree | 670e0878a41e8c6b1651fedbd224bfbea94e0849 /src/core/model/GpgDecryptResult.cpp | |
parent | fix: use the new async encrypt symmetric api at gui app (diff) | |
download | GpgFrontend-5260d7a5634279408b3eb36a5f26fe71fb6f9e69.tar.gz GpgFrontend-5260d7a5634279408b3eb36a5f26fe71fb6f9e69.zip |
feat: upgrade basical operations fully to async style and update test cases
Diffstat (limited to 'src/core/model/GpgDecryptResult.cpp')
-rw-r--r-- | src/core/model/GpgDecryptResult.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/model/GpgDecryptResult.cpp b/src/core/model/GpgDecryptResult.cpp index 670b8cb7..a0719c0c 100644 --- a/src/core/model/GpgDecryptResult.cpp +++ b/src/core/model/GpgDecryptResult.cpp @@ -44,6 +44,10 @@ GpgDecryptResult::~GpgDecryptResult() = default; auto GpgDecryptResult::IsGood() -> bool { return result_ref_ != nullptr; } +auto GpgDecryptResult::GetRaw() -> gpgme_decrypt_result_t { + return result_ref_.get(); +} + auto GpgDecryptResult::Recipients() -> std::vector<GpgRecipient> { std::vector<GpgRecipient> result; for (auto* reci = result_ref_->recipients; reci != nullptr; |