diff options
author | Ingo Klöcker <[email protected]> | 2024-10-21 12:47:10 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-10-21 12:47:10 +0000 |
commit | 2a0595906970505debf64e166b9a35cccbf1b424 (patch) | |
tree | 9253f314d839a7e1d06a7c7db3ff7db224e2425c /lang/cpp/src/decryptionresult.cpp | |
parent | doc: Fix, update, add API documentation (diff) | |
download | gpgme-2a0595906970505debf64e166b9a35cccbf1b424.tar.gz gpgme-2a0595906970505debf64e166b9a35cccbf1b424.zip |
cpp: Add support for new flag fields beta_compliance
* lang/cpp/src/decryptionresult.cpp, lang/cpp/src/decryptionresult.h
(class DecryptionResult): Add method isBetaCompliance.
* lang/cpp/src/decryptionresult.cpp (operator<<): Add new flag.
* lang/cpp/src/key.cpp, lang/cpp/src/key.h (class Key): Add method
isBetaCompliance.
(class Subkey): Add method isBetaCompliance.
* lang/cpp/src/key.cpp:
(Key::isDeVs): Remove duplicate check of is_de_vs of first subkey.
(operator<<): Add new flag.
* lang/cpp/src/verificationresult.cpp, lang/cpp/src/verificationresult.h
(class Signature): Add method isBetaCompliance.
* lang/cpp/src/verificationresult.cpp (operator<<): Add new flag.
--
GnuPG-bug-id: 7346
Diffstat (limited to 'lang/cpp/src/decryptionresult.cpp')
-rw-r--r-- | lang/cpp/src/decryptionresult.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/cpp/src/decryptionresult.cpp b/lang/cpp/src/decryptionresult.cpp index ad1d1cb6..dd515015 100644 --- a/lang/cpp/src/decryptionresult.cpp +++ b/lang/cpp/src/decryptionresult.cpp @@ -122,6 +122,11 @@ bool GpgME::DecryptionResult::isDeVs() const return d && d->res.is_de_vs; } +bool GpgME::DecryptionResult::isBetaCompliance() const +{ + return d && d->res.beta_compliance; +} + bool GpgME::DecryptionResult::isMime() const { return d && d->res.is_mime; @@ -257,8 +262,9 @@ std::ostream &GpgME::operator<<(std::ostream &os, const DecryptionResult &result << "\n fileName: " << protect(result.fileName()) << "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm()) << "\n isWrongKeyUsage: " << result.isWrongKeyUsage() - << "\n isDeVs " << result.isDeVs() - << "\n legacyCipherNoMDC " << result.isLegacyCipherNoMDC() + << "\n isDeVs: " << result.isDeVs() + << "\n isBetaCompliance: " << result.isBetaCompliance() + << "\n legacyCipherNoMDC: " << result.isLegacyCipherNoMDC() << "\n symkeyAlgo: " << protect(result.symkeyAlgo()) << "\n recipients:\n"; const std::vector<DecryptionResult::Recipient> recipients = result.recipients(); |