From 79439e76cc5b302222874a1f9e93665cb12801ac Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 5 Sep 2016 12:53:02 +0200 Subject: cpp: Add convenience update function to a key * lang/cpp/src/key.cpp (Key::update): New. * lang/cpp/src/key.h: Update accordingly. -- This function helps if you have an incomplete key or want to make sure all info in a key is complete (e.g. validity / tofuinfo) --- lang/cpp/src/key.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lang/cpp/src/key.h') diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index 85b16dfc..f193093c 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -146,6 +146,12 @@ public: unsigned int keyListMode() const; + /*! Update information about this key. + * Starts a keylisting for this key with validity + * and tofu information gathering. Blocks for + * how long the keylisting takes.*/ + void update(); + private: gpgme_key_t impl() const { -- cgit v1.2.3