diff options
author | Andre Heinecke <[email protected]> | 2016-07-01 14:49:06 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-07-01 14:52:34 +0000 |
commit | 93c5d420fcfe275aeff2b3d5ce99629edbe6625d (patch) | |
tree | 8939cb19cc9a8dce8b9f3e7401962dd55e53131e /lang/cpp/src/verificationresult.h | |
parent | core: Clarify documentation of tofu_stats address (diff) | |
download | gpgme-93c5d420fcfe275aeff2b3d5ce99629edbe6625d.tar.gz gpgme-93c5d420fcfe275aeff2b3d5ce99629edbe6625d.zip |
Cpp: Add TofuInfo to signatures
* lang/cpp/src/tofuinfo.cpp, lang/cpp/src/tofuinfo.h: New class.
* lang/cpp/src/verificationresult.cpp (Signature::tofuInfo): New.
(VerificationResult::Private): Handle tofu info.
(GpgME::operator<<(std::ostream &os, const Signature &sig)): Include
TofuInfo in dump.
* lang/cpp/src/verificationresult.h (Signature::tofuInfo): New.
* lang/cpp/src/Makefile.am (main_sources, gpgmepp_headers): Add
new files.
* configure.ac (LIBGPGMEPP_LT_REVISION): Bump for new API.
Diffstat (limited to 'lang/cpp/src/verificationresult.h')
-rw-r--r-- | lang/cpp/src/verificationresult.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/cpp/src/verificationresult.h b/lang/cpp/src/verificationresult.h index 17f0568b..5a2927f9 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 TofuInfo; class GPGMEPP_EXPORT VerificationResult : public Result { @@ -156,6 +157,18 @@ public: GpgME::Notation notation(unsigned int index) const; std::vector<GpgME::Notation> notations() const; + /** List of TOFU stats for this signature. + * + * For each UserID of the key used to create this + * signature a tofu entry is returned. + * + * Warning: Addresses can be ambigous if there are multiple UserID's + * with the same mailbox in a key. + * + * @returns The list of TOFU stats. + */ + std::vector<GpgME::TofuInfo> tofuInfo() const; + private: std::shared_ptr<VerificationResult::Private> d; unsigned int idx; |