gpgme/src
Daniel Kahn Gillmor c4cf527ea2 gpg: Send --with-keygrip when listing keys
* src/engine-gpg.c (gpg_keylist_build_options): Always pass
--with-keygrip when listing keys.

--

Some older versions of GnuPG (at least gpg in version
2.2.12-1+deb10u1) appear to unilaterally emit the keygrip, and it's
certainly useful to know that programmatically it will always be
present in the output needed.

However, as of GnuPG 2.2.19-1, the following command does not emit the
keygrip for non-secret keys:

   gpg --with-colons --with-secret --list-keys

This change fixes tests/json/t-json by making the output comply with
tests/json/t-keylist-secret.out.json correctly.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
GnuPG-Bug-Id: 4820
2020-01-23 17:57:54 -05:00
..
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
argparse.c spelling: fix misspellings 2018-11-08 12:34:27 +07:00
argparse.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
assuan-support.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
ath.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
ath.h w32: Remove all support for WindowsCE 2018-10-31 12:35:14 +01:00
b64dec.c core: Silence newer compiler warnings. 2018-12-17 16:47:27 +01:00
ChangeLog-2011 spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.c json: Print "nan", "-inf", "inf" if needed. 2019-06-04 10:56:48 +02:00
cJSON.h spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.readme doc: convert more http:// links to https:// 2018-10-18 00:28:51 -04:00
context.h core: Add cert-notation support and extended-edit 2019-10-29 16:11:54 +01:00
conversion.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
data-compat.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-estream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-fd.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-identify.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
data-mem.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-stream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-user.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data.h spelling: fix misspellings 2018-11-08 12:34:27 +07:00
debug.c core: At debug levels up to 9 print only an ascii dump. 2019-06-13 08:46:16 +02:00
debug.h core: Prettify _gpgme_io_select debug output again and fix TRACE_SYSRES. 2019-06-05 16:48:47 +02:00
decrypt-verify.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
decrypt.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
delete.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
dirinfo.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
edit.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
encrypt-sign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
encrypt.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
engine-assuan.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
engine-backend.h core: Remove cruft from the engine-gpg code. 2018-06-01 00:13:53 +02:00
engine-g13.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
engine-gpg.c gpg: Send --with-keygrip when listing keys 2020-01-23 17:57:54 -05:00
engine-gpgconf.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
engine-gpgsm.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
engine-spawn.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
engine-uiserver.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
engine.c core: Fix error return. 2019-04-19 11:34:12 +09:00
engine.h core: Remove cruft from the engine-gpg code. 2018-06-01 00:13:53 +02:00
error.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
export.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
genkey.c core: Fix ERR_INV_ARG check in genkey_start 2018-12-07 10:43:58 +01:00
get-env.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
getauditlog.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
gpgconf.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
gpgme-config.in build: Provide gpgme.pc, generated by configure. 2018-11-12 09:03:49 +09:00
gpgme-glib.pc.in build: Provide gpgme-glib.pc too. 2018-11-12 09:59:05 +09:00
gpgme-json.c json: Fix cosmetic error in the repl. 2019-02-28 14:05:06 +01:00
gpgme-tool.c gpgme-tool: Fix help text for INCLUDE_CERTS. 2019-12-03 18:42:07 -05:00
gpgme-w32spawn.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
gpgme.c core: Add cert-notation support and extended-edit 2019-10-29 16:11:54 +01:00
gpgme.def estreams revised 2018-09-08 14:45:37 +10:00
gpgme.h.in core: Extend gpgme_user_id_t with uidhash member. 2019-12-13 15:11:00 +01:00
gpgme.m4 build: Make gpgme.m4 use gpgrt-config with *.pc. 2018-11-12 10:01:16 +09:00
gpgme.pc.in build: Provide gpgme-glib.pc too. 2018-11-12 09:59:05 +09:00
import.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
isascii.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
key.c core: Extend gpgme_user_id_t with uidhash member. 2019-12-13 15:11:00 +01:00
keylist.c core: Extend gpgme_user_id_t with uidhash member. 2019-12-13 15:11:00 +01:00
keysign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
libgpgme.vers doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
Makefile.am Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
mbox-util.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
mbox-util.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
op-support.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
opassuan.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
ops.h core: Blank out the plaintext after decryption failure. 2018-07-19 17:39:09 +02:00
parsetlv.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
parsetlv.h Spelling fixes for comments and doc 2017-12-08 05:59:11 +01:00
passphrase.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
passwd.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
posix-io.c core: Add commented debug helper to posix-io.c. 2019-06-06 18:57:28 +02:00
posix-util.c core: Add MacOS fallbacks to look for binaries 2020-01-17 12:42:56 +01:00
priv-io.h w32: Remove all support for WindowsCE 2018-10-31 12:35:14 +01:00
progress.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
putc_unlocked.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
queryswdb.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
sema.h core: Use gpgrt locking for thread safeness 2016-11-10 13:33:13 +01:00
setenv.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sig-notation.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
signers.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
spawn.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
status-table.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
stpcpy.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sys-util.h core,w32: Improve handling of Unicode paths 2019-04-09 13:42:58 +02:00
tofupolicy.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
trust-item.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
trustlist.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
ttyname_r.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
util.h w32: Remove all support for WindowsCE 2018-10-31 12:35:14 +01:00
verify.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
version.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
versioninfo.rc.in doc: Update copyright years and change two URLs. 2018-04-18 19:30:50 +02:00
vfs-create.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
vfs-mount.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
w32-glib-io.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
w32-io.c core,w32: Initialize dbg_help for socket debugging 2019-10-28 16:02:22 +01:00
w32-util.c core,w32: Silence compiler warnings. 2019-11-27 20:40:39 +01:00
wait-global.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-private.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-user.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait.c core: Fix error return value of _gpgme_run_io_cb. 2019-06-06 18:57:28 +02:00
wait.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00