cpp: Expose sessionKey and symkeyAlgo
* lang/cpp/decryptionresult.cpp, lang/cpp/decryptionresult.h (DecryptionResult::symkeyAlgo, DecryptionResult::sessionKey): New.
This commit is contained in:
parent
e04b8142df
commit
28e3778ce2
4
NEWS
4
NEWS
@ -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
|
* Even for old versions of gpg a missing MDC will now lead to a
|
||||||
decryption failure.
|
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)
|
Noteworthy changes in version 1.11.1 (2018-04-20)
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
@ -155,6 +155,16 @@ std::vector<GpgME::DecryptionResult::Recipient> GpgME::DecryptionResult::recipie
|
|||||||
return result;
|
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
|
class GpgME::DecryptionResult::Recipient::Private : public _gpgme_recipient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -231,6 +241,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, const DecryptionResult &result
|
|||||||
<< "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm())
|
<< "\n unsupportedAlgorithm: " << protect(result.unsupportedAlgorithm())
|
||||||
<< "\n isWrongKeyUsage: " << result.isWrongKeyUsage()
|
<< "\n isWrongKeyUsage: " << result.isWrongKeyUsage()
|
||||||
<< "\n isDeVs " << result.isDeVs()
|
<< "\n isDeVs " << result.isDeVs()
|
||||||
|
<< "\n symkeyAlgo: " << protect(result.symkeyAlgo())
|
||||||
<< "\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(),
|
||||||
|
@ -77,6 +77,10 @@ public:
|
|||||||
|
|
||||||
const char *fileName() const;
|
const char *fileName() const;
|
||||||
|
|
||||||
|
const char *sessionKey() const;
|
||||||
|
|
||||||
|
const char *symkeyAlgo() const;
|
||||||
|
|
||||||
class Recipient;
|
class Recipient;
|
||||||
|
|
||||||
unsigned int numRecipients() const;
|
unsigned int numRecipients() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user