diff options
| -rw-r--r-- | lang/cpp/src/decryptionresult.cpp | 6 | ||||
| -rw-r--r-- | lang/cpp/src/decryptionresult.h | 2 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/lang/cpp/src/decryptionresult.cpp b/lang/cpp/src/decryptionresult.cpp index 17524db9..de589214 100644 --- a/lang/cpp/src/decryptionresult.cpp +++ b/lang/cpp/src/decryptionresult.cpp @@ -165,6 +165,11 @@ const char *GpgME::DecryptionResult::symkeyAlgo() const    return d ? d->res.symkey_algo : nullptr;  } +bool GpgME::DecryptionResult::isLegacyCipherNoMDC() const +{ +  return d && d->res.legacy_cipher_nomdc; +} +  class GpgME::DecryptionResult::Recipient::Private : public _gpgme_recipient  {  public: @@ -241,6 +246,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, const DecryptionResult &result             << "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm())             << "\n isWrongKeyUsage:      " << result.isWrongKeyUsage()             << "\n isDeVs                " << result.isDeVs() +           << "\n legacyCipherNoMDC     " << result.isLegacyCipherNoMDC()             << "\n symkeyAlgo:           " << protect(result.symkeyAlgo())             << "\n recipients:\n";          const std::vector<DecryptionResult::Recipient> recipients = result.recipients(); diff --git a/lang/cpp/src/decryptionresult.h b/lang/cpp/src/decryptionresult.h index c270223d..e4d542dd 100644 --- a/lang/cpp/src/decryptionresult.h +++ b/lang/cpp/src/decryptionresult.h @@ -87,6 +87,8 @@ public:      Recipient recipient(unsigned int idx) const;      std::vector<Recipient> recipients() const; +    bool isLegacyCipherNoMDC() const; +  private:      class Private;      void init(gpgme_ctx_t ctx);  | 
