aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-07-15 12:10:32 +0000
committerWerner Koch <[email protected]>2020-07-15 12:11:17 +0000
commitc8048bf8eb988f22b20215197f4739bedafc4264 (patch)
tree0000825d7b32ca831032a4bf34c105de0d0ac892 /lang/cpp/src/util.h
parentpython: Workaround for a regression in GnuPG 2.2.21 (diff)
downloadgpgme-c8048bf8eb988f22b20215197f4739bedafc4264.tar.gz
gpgme-c8048bf8eb988f22b20215197f4739bedafc4264.zip
core: New keylist mode GPGME_KEYLIST_MODE_WITH_KEYGRIP.
* src/gpgme.h.in (GPGME_KEYLIST_MODE_WITH_KEYGRIP): New. * src/gpgme-json.c (op_keylist): New flag "keygrip". * src/engine-gpg.c (gpg_keylist_build_options): Pass the options. * lang/cpp/src/global.h (WithKeygrip): New. * lang/cpp/src/context.cpp: Add check. * lang/cpp/src/key.cpp (Key::update): Handle WithKeygrip. * lang/cpp/src/verificationresult.cpp: Ditto. * lang/cpp/src/util.h (add_to_gpgme_keylist_mode_t): Ditto. -- GnuPG-bug-id: 4939 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/cpp/src/util.h b/lang/cpp/src/util.h
index 4495cc02..1c0477f4 100644
--- a/lang/cpp/src/util.h
+++ b/lang/cpp/src/util.h
@@ -81,6 +81,9 @@ static inline gpgme_keylist_mode_t add_to_gpgme_keylist_mode_t(unsigned int oldm
if (newmodes & GpgME::WithTofu) {
oldmode |= GPGME_KEYLIST_MODE_WITH_TOFU;
}
+ if (newmodes & GpgME::WithKeygrip) {
+ oldmode |= GPGME_KEYLIST_MODE_WITH_KEYGRIP;
+ }
#ifndef NDEBUG
if (newmodes & ~(GpgME::Local | GpgME::Extern | GpgME::Signatures | GpgME::SignatureNotations | GpgME::Ephemeral | GpgME::Validate)) {
//std::cerr << "GpgME::Context: keylist mode must be one of Local, "