diff options
Diffstat (limited to '')
| -rw-r--r-- | NEWS | 4 | ||||
| -rw-r--r-- | lang/cpp/src/decryptionresult.cpp | 11 | ||||
| -rw-r--r-- | lang/cpp/src/decryptionresult.h | 4 | 
3 files changed, 19 insertions, 0 deletions
@@ -4,6 +4,10 @@ Noteworthy changes in version 1.11.2 (unreleased)   * Even for old versions of gpg a missing MDC will now lead to a     decryption failure. + * Interface changes relative to the 1.11.1 release: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + cpp: DecryptionResult::sessionKey    NEW. + cpp: DecryptionResult::symkeyAlgo    NEW.  Noteworthy changes in version 1.11.1 (2018-04-20)  ------------------------------------------------- diff --git a/lang/cpp/src/decryptionresult.cpp b/lang/cpp/src/decryptionresult.cpp index 1e815cbe..17524db9 100644 --- a/lang/cpp/src/decryptionresult.cpp +++ b/lang/cpp/src/decryptionresult.cpp @@ -155,6 +155,16 @@ std::vector<GpgME::DecryptionResult::Recipient> GpgME::DecryptionResult::recipie      return result;  } +const char *GpgME::DecryptionResult::sessionKey() const +{ +  return d ? d->res.session_key : nullptr; +} + +const char *GpgME::DecryptionResult::symkeyAlgo() const +{ +  return d ? d->res.symkey_algo : nullptr; +} +  class GpgME::DecryptionResult::Recipient::Private : public _gpgme_recipient  {  public: @@ -231,6 +241,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 symkeyAlgo:           " << protect(result.symkeyAlgo())             << "\n recipients:\n";          const std::vector<DecryptionResult::Recipient> recipients = result.recipients();          std::copy(recipients.begin(), recipients.end(), diff --git a/lang/cpp/src/decryptionresult.h b/lang/cpp/src/decryptionresult.h index 57705b48..c270223d 100644 --- a/lang/cpp/src/decryptionresult.h +++ b/lang/cpp/src/decryptionresult.h @@ -77,6 +77,10 @@ public:      const char *fileName() const; +    const char *sessionKey() const; + +    const char *symkeyAlgo() const; +      class Recipient;      unsigned int numRecipients() const;  | 
