From 7c5a4974b71c30e824cbfcb3a0a70064e5ed5adb Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 24 Aug 2016 13:59:37 +0200 Subject: Cpp: Add Key to signature * lang/cpp/src/verificationresult.cpp, lang/cpp/src/verificationresult.h (Signature::key): New. --- lang/cpp/src/verificationresult.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lang/cpp/src/verificationresult.h') 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 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 d; unsigned int idx; -- cgit v1.2.3