aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-06-08 14:19:47 +0000
committerAndre Heinecke <[email protected]>2018-06-08 14:19:47 +0000
commit8dff414e170e4df8ea661028c4ac1588311ca26e (patch)
tree31c22ac02ca6ba4bf730f1f2e1d3e4c7f314e2a8 /lang/cpp/src/context.h
parentjson: Return fingerprint as createkey result (diff)
downloadgpgme-8dff414e170e4df8ea661028c4ac1588311ca26e.tar.gz
gpgme-8dff414e170e4df8ea661028c4ac1588311ca26e.zip
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.
Diffstat (limited to 'lang/cpp/src/context.h')
-rw-r--r--lang/cpp/src/context.h8
1 files changed, 8 insertions, 0 deletions
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);