From c8048bf8eb988f22b20215197f4739bedafc4264 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 15 Jul 2020 14:10:32 +0200 Subject: 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 --- lang/cpp/src/verificationresult.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lang/cpp/src/verificationresult.cpp') diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 1e9f81f5..bfe82e30 100644 --- a/lang/cpp/src/verificationresult.cpp +++ b/lang/cpp/src/verificationresult.cpp @@ -413,7 +413,8 @@ GpgME::Key GpgME::Signature::key(bool search, bool update) const KeyListMode::Signatures | KeyListMode::SignatureNotations | KeyListMode::Validate | - KeyListMode::WithTofu); + KeyListMode::WithTofu | + KeyListMode::WithKeygrip); Error e; ret = d->keys[idx] = ctx->key(fingerprint(), e, false); delete ctx; -- cgit v1.2.3