diff options
author | Werner Koch <[email protected]> | 2020-07-15 12:10:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-07-15 12:11:17 +0000 |
commit | c8048bf8eb988f22b20215197f4739bedafc4264 (patch) | |
tree | 0000825d7b32ca831032a4bf34c105de0d0ac892 /src/engine-gpg.c | |
parent | python: Workaround for a regression in GnuPG 2.2.21 (diff) | |
download | gpgme-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 'src/engine-gpg.c')
-rw-r--r-- | src/engine-gpg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 73e5245a..c343e80e 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -3001,6 +3001,11 @@ gpg_keylist_build_options (engine_gpg_t gpg, int secret_only, err = add_arg (gpg, "--with-secret"); err = add_arg (gpg, "--with-keygrip"); } + else if (!err && (mode & GPGME_KEYLIST_MODE_WITH_KEYGRIP)) + { + /* Explicitly requests the keygrip. */ + err = add_arg (gpg, "--with-keygrip"); + } if (!err && (mode & GPGME_KEYLIST_MODE_SIGS) |