Add isDeVs to ostream operator

* lang/cpp/src/decryptionresult.cpp,
lang/cpp/src/verificationresult.cpp: Extend ostream operator
to include isDeVs.
This commit is contained in:
Andre Heinecke 2017-07-10 17:27:24 +02:00
parent 3b9123b4c6
commit fe79eb8de3
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C
2 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, const DecryptionResult &result
<< "\n fileName: " << protect(result.fileName()) << "\n fileName: " << protect(result.fileName())
<< "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm()) << "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm())
<< "\n isWrongKeyUsage: " << result.isWrongKeyUsage() << "\n isWrongKeyUsage: " << result.isWrongKeyUsage()
<< "\n isDeVs " << result.isDeVs()
<< "\n recipients:\n"; << "\n recipients:\n";
const std::vector<DecryptionResult::Recipient> recipients = result.recipients(); const std::vector<DecryptionResult::Recipient> recipients = result.recipients();
std::copy(recipients.begin(), recipients.end(), std::copy(recipients.begin(), recipients.end(),

View File

@ -590,6 +590,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, const Signature &sig)
<< "\n publicKeyAlgorithm: " << protect(sig.publicKeyAlgorithmAsString()) << "\n publicKeyAlgorithm: " << protect(sig.publicKeyAlgorithmAsString())
<< "\n hashAlgorithm: " << protect(sig.hashAlgorithmAsString()) << "\n hashAlgorithm: " << protect(sig.hashAlgorithmAsString())
<< "\n policyURL: " << protect(sig.policyURL()) << "\n policyURL: " << protect(sig.policyURL())
<< "\n isDeVs " << sig.isDeVs()
<< "\n notations:\n"; << "\n notations:\n";
const std::vector<Notation> nota = sig.notations(); const std::vector<Notation> nota = sig.notations();
std::copy(nota.begin(), nota.end(), std::copy(nota.begin(), nota.end(),