diff options
author | Ingo Klöcker <[email protected]> | 2021-01-05 16:17:35 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-01-05 16:44:16 +0000 |
commit | 5137d7fc214d0d9dcb947ccdc32fa87979f9a6d0 (patch) | |
tree | 78674f838014f618738bbab258273ac54405bdc4 /src/engine-gpg.c | |
parent | cpp: Add const-overload of UserID::Signature::operator< (diff) | |
download | gpgme-5137d7fc214d0d9dcb947ccdc32fa87979f9a6d0.tar.gz gpgme-5137d7fc214d0d9dcb947ccdc32fa87979f9a6d0.zip |
core: Make listing of signatures work if only secret keys are listed
* src/engine-gpg.c (gpg_keylist_build_options): Add "--with-sig-check"
argument if signatures shall be listed.
* tests/gpg/t-keylist-secret-sig.c: New.
* tests/gpg/Makefile.am (c_tests): Add new test.
--
GnuPG-bug-id: 3580
Diffstat (limited to 'src/engine-gpg.c')
-rw-r--r-- | src/engine-gpg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 02a10ecb..9a9a26ef 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -3017,6 +3017,12 @@ gpg_keylist_build_options (engine_gpg_t gpg, int secret_only, err = add_arg (gpg, "--with-keygrip"); } + if (!err && (mode & GPGME_KEYLIST_MODE_SIGS) + && have_gpg_version (gpg, "2.0.10")) + { + err = add_arg (gpg, "--with-sig-check"); + } + if (!err && (mode & GPGME_KEYLIST_MODE_SIGS) && (mode & GPGME_KEYLIST_MODE_SIG_NOTATIONS)) |