aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/rungpg.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgme/rungpg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c
index 19ca74d3..05d0718e 100644
--- a/gpgme/rungpg.c
+++ b/gpgme/rungpg.c
@@ -1487,6 +1487,8 @@ gpg_keylist (void *engine, const char *pattern, int secret_only,
if (!err)
err = add_arg (gpg, "--with-fingerprint");
if (!err)
+ err = add_arg (gpg, "--with-fingerprint");
+ if (!err)
err = add_arg (gpg, (keylist_mode & GPGME_KEYLIST_MODE_SIGS) ?
"--check-sigs" :
secret_only ? "--list-secret-keys"
@@ -1518,6 +1520,8 @@ gpg_keylist_ext (void *engine, const char *pattern[], int secret_only,
if (!err)
err = add_arg (gpg, "--with-fingerprint");
if (!err)
+ err = add_arg (gpg, "--with-fingerprint");
+ if (!err)
err = add_arg (gpg, secret_only ? "--list-secret-keys" : "--list-keys");
/* Tell the gpg object about the data. */