aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/verificationresult.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-08-24 11:59:37 +0000
committerAndre Heinecke <[email protected]>2016-08-24 11:59:37 +0000
commit7c5a4974b71c30e824cbfcb3a0a70064e5ed5adb (patch)
tree20f542c1c8e11fa50d7d8a1377a9ead9a5bb2b35 /lang/cpp/src/verificationresult.h
parentCpp: Use fpr field for primaryFingerprint (diff)
downloadgpgme-7c5a4974b71c30e824cbfcb3a0a70064e5ed5adb.tar.gz
gpgme-7c5a4974b71c30e824cbfcb3a0a70064e5ed5adb.zip
Cpp: Add Key to signature
* lang/cpp/src/verificationresult.cpp, lang/cpp/src/verificationresult.h (Signature::key): New.
Diffstat (limited to 'lang/cpp/src/verificationresult.h')
-rw-r--r--lang/cpp/src/verificationresult.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/cpp/src/verificationresult.h b/lang/cpp/src/verificationresult.h
index 3394a474..93288af2 100644
--- a/lang/cpp/src/verificationresult.h
+++ b/lang/cpp/src/verificationresult.h
@@ -40,6 +40,7 @@ namespace GpgME
class Error;
class Signature;
class Notation;
+class Key;
class GPGMEPP_EXPORT VerificationResult : public Result
{
@@ -157,6 +158,11 @@ public:
GpgME::Notation notation(unsigned int index) const;
std::vector<GpgME::Notation> notations() const;
+ /** Returns the key object associated with this signature.
+ * May be incomplete but will have at least the fingerprint
+ * set or the associated TOFU Information if applicable. */
+ GpgME::Key key() const;
+
private:
std::shared_ptr<VerificationResult::Private> d;
unsigned int idx;