From 2a0595906970505debf64e166b9a35cccbf1b424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 21 Oct 2024 14:47:10 +0200 Subject: 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 --- lang/cpp/src/verificationresult.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lang/cpp/src/verificationresult.cpp') diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 1c657721..0299fcec 100644 --- a/lang/cpp/src/verificationresult.cpp +++ b/lang/cpp/src/verificationresult.cpp @@ -283,6 +283,11 @@ bool GpgME::Signature::isDeVs() const return !isNull() && d->sigs[idx]->is_de_vs; } +bool GpgME::Signature::isBetaCompliance() const +{ + return !isNull() && d->sigs[idx]->beta_compliance; +} + GpgME::Signature::PKAStatus GpgME::Signature::pkaStatus() const { if (!isNull()) { @@ -600,7 +605,8 @@ std::ostream &GpgME::operator<<(std::ostream &os, const Signature &sig) << "\n publicKeyAlgorithm: " << protect(sig.publicKeyAlgorithmAsString()) << "\n hashAlgorithm: " << protect(sig.hashAlgorithmAsString()) << "\n policyURL: " << protect(sig.policyURL()) - << "\n isDeVs " << sig.isDeVs() + << "\n isDeVs: " << sig.isDeVs() + << "\n isBetaCompliance: " << sig.isBetaCompliance() << "\n notations:\n"; const std::vector nota = sig.notations(); std::copy(nota.begin(), nota.end(), -- cgit v1.2.3