diff options
author | Ingo Klöcker <[email protected]> | 2022-08-09 07:35:19 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-08-09 12:52:42 +0000 |
commit | 125867f268f2a49ff060a7adc859500500b77025 (patch) | |
tree | 8aff1557ecd70aa55d1858d94f816a32a48e0a30 /lang/cpp/src/context.cpp | |
parent | python: Don't call __del__ from __exit__ method. (diff) | |
download | gpgme-125867f268f2a49ff060a7adc859500500b77025.tar.gz gpgme-125867f268f2a49ff060a7adc859500500b77025.zip |
cpp: Add support for gpgme_op_set_uid_flag
* lang/cpp/src/context.cpp, lang/cpp/src/context.h
(Context::setPrimaryUid, Context::startSetPrimaryUid): New.
--
GnuPG-bug-id: 5938
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r-- | lang/cpp/src/context.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 61b3e0e2..dba958cf 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1641,6 +1641,16 @@ Error Context::startRevUid(const Key &k, const char *userid) k.impl(), userid, 0)); } +Error Context::setPrimaryUid(const Key &k, const char *userid) +{ + return Error(d->lasterr = gpgme_op_set_uid_flag(d->ctx, k.impl(), userid, "primary", nullptr)); +} + +Error Context::startSetPrimaryUid(const Key &k, const char *userid) +{ + return Error(d->lasterr = gpgme_op_set_uid_flag_start(d->ctx, k.impl(), userid, "primary", nullptr)); +} + Error Context::createSubkey(const Key &k, const char *algo, unsigned long reserved, unsigned long expires, |