From c287f09ac0f090a65299ac7c15e3c9b4947d4b67 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 9 Jul 2018 11:17:27 +0200 Subject: [PATCH] tests: Add --with-secret to run-keylist.c * run-keylist.c (show_usage, main): Add --with-secret. --- tests/run-keylist.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run-keylist.c b/tests/run-keylist.c index 9725fa3f..9206b50a 100644 --- a/tests/run-keylist.c +++ b/tests/run-keylist.c @@ -47,6 +47,7 @@ show_usage (int ex) " --openpgp use the OpenPGP protocol (default)\n" " --cms use the CMS protocol\n" " --secret list only secret keys\n" + " --with-secret list pubkeys with secret info filled\n" " --local use GPGME_KEYLIST_MODE_LOCAL\n" " --extern use GPGME_KEYLIST_MODE_EXTERN\n" " --sigs use GPGME_KEYLIST_MODE_SIGS\n" @@ -173,6 +174,11 @@ main (int argc, char **argv) mode |= GPGME_KEYLIST_MODE_VALIDATE; argc--; argv++; } + else if (!strcmp (*argv, "--with-secret")) + { + mode |= GPGME_KEYLIST_MODE_WITH_SECRET; + argc--; argv++; + } else if (!strcmp (*argv, "--import")) { import = 1;