diff options
author | Andre Heinecke <[email protected]> | 2016-08-23 14:40:21 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-08-23 14:44:17 +0000 |
commit | 799b168243e6499ac01bf59e0656547f353a2589 (patch) | |
tree | ed18151952d2f48975a51bf03bef4ddc55724e5e /lang/cpp/src/key.h | |
parent | core: Put the protocol into a TOFU created key object. (diff) | |
download | gpgme-799b168243e6499ac01bf59e0656547f353a2589.tar.gz gpgme-799b168243e6499ac01bf59e0656547f353a2589.zip |
Cpp: Move tofuinfo from signature to userid
* lang/cpp/src/key.cpp (UserID::tofuInfo): New.
* lang/cpp/src/key.h: Update accordingly.
* lang/cpp/src/tofuinfo.cpp: Remove dropped fields.
* lang/cpp/src/tofuinfo.h: Update accordingly.
* lang/cpp/src/verificationresult.cpp,
lang/cpp/src/verificationresult.h: Remove tofu info.
* lang/qt/tests/t-tofuinfo.cpp: Disable for now.
--
With be4ff75d7 Tofu info now lives with a UserID
Object. While this breaks API it was not yet released.
Diffstat (limited to 'lang/cpp/src/key.h')
-rw-r--r-- | lang/cpp/src/key.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index bb0487b9..e8d7ee23 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -43,6 +43,7 @@ class Context; class Subkey; class UserID; +class TofuInfo; typedef std::shared_ptr< std::remove_pointer<gpgme_key_t>::type > shared_gpgme_key_t; @@ -309,6 +310,10 @@ public: bool isRevoked() const; bool isInvalid() const; + /** TOFU info for this userid. + * @returns The TOFU stats or a null TofuInfo. + */ + GpgME::TofuInfo tofuInfo() const; private: shared_gpgme_key_t key; gpgme_user_id_t uid; |