aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/key.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-04-19 09:56:15 +0000
committerAndre Heinecke <[email protected]>2018-04-19 09:56:15 +0000
commitd65d6329319bff8cc555999fc92a20e151762a10 (patch)
tree6dc804fc6fcbe4b097af62eec084f716bd93fd49 /lang/cpp/src/key.h
parentcpp: Add origin and last_update (diff)
downloadgpgme-d65d6329319bff8cc555999fc92a20e151762a10.tar.gz
gpgme-d65d6329319bff8cc555999fc92a20e151762a10.zip
cpp: Add origin and last_update to UserID
* NEWS: Mention it. * lang/cpp/src/key.cpp, lang/cpp/src/key.h (UserID::lastUpdate), (UserID::origin): New. (gpgme_origin_to_pp_origin): New helper.
Diffstat (limited to 'lang/cpp/src/key.h')
-rw-r--r--lang/cpp/src/key.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h
index 07ddc256..76a0d4f4 100644
--- a/lang/cpp/src/key.h
+++ b/lang/cpp/src/key.h
@@ -392,6 +392,16 @@ public:
*
* @returns an error on error.*/
Error revoke();
+
+ /*! Get the origin of the key.
+ *
+ * @returns the Origin. */
+ Key::Origin origin() const;
+
+ /*! Get the last update time.
+ *
+ * @returns the last update time. */
+ time_t lastUpdate() const;
private:
shared_gpgme_key_t key;
gpgme_user_id_t uid;