From 8dff414e170e4df8ea661028c4ac1588311ca26e Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 8 Jun 2018 16:19:47 +0200 Subject: cpp: Add proper gpgme_op_createkey * lang/cpp/src/context.cpp, lang/cpp/src/context.h (Context::createKeyEx): New. -- The createKeyEx function follows the usual pattern that the synchronous call returns a result directly while for the async an extra call is neccessary. --- lang/cpp/src/context.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lang/cpp/src/context.h') diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index 8cccff5c..a14625e0 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -234,6 +234,14 @@ public: const Key &certkey, unsigned int flags); + // Same as create key but returning a result + GpgME::KeyGenerationResult createKeyEx (const char *userid, + const char *algo, + unsigned long reserved, + unsigned long expires, + const Key &certkey, + unsigned int flags); + Error addUid(const Key &key, const char *userid); Error startAddUid(const Key &key, const char *userid); -- cgit v1.2.3