From fe79eb8de3dc780eafb38a0a0a016748e764ff04 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 10 Jul 2017 17:27:24 +0200 Subject: [PATCH] Add isDeVs to ostream operator * lang/cpp/src/decryptionresult.cpp, lang/cpp/src/verificationresult.cpp: Extend ostream operator to include isDeVs. --- lang/cpp/src/decryptionresult.cpp | 1 + lang/cpp/src/verificationresult.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lang/cpp/src/decryptionresult.cpp b/lang/cpp/src/decryptionresult.cpp index d1c991be..1e815cbe 100644 --- a/lang/cpp/src/decryptionresult.cpp +++ b/lang/cpp/src/decryptionresult.cpp @@ -230,6 +230,7 @@ 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 recipients:\n"; const std::vector recipients = result.recipients(); std::copy(recipients.begin(), recipients.end(), diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 6dacd9fb..2c42d074 100644 --- a/lang/cpp/src/verificationresult.cpp +++ b/lang/cpp/src/verificationresult.cpp @@ -590,6 +590,7 @@ 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 notations:\n"; const std::vector nota = sig.notations(); std::copy(nota.begin(), nota.end(),