diff options
author | Andre Heinecke <[email protected]> | 2018-07-09 09:17:27 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2018-07-09 09:17:27 +0000 |
commit | c287f09ac0f090a65299ac7c15e3c9b4947d4b67 (patch) | |
tree | a5021f70f9df9dad5d422387552a6795c557f13b /tests/run-keylist.c | |
parent | doc: More explicit doc for EXTERN and LOCAL modes. (diff) | |
download | gpgme-c287f09ac0f090a65299ac7c15e3c9b4947d4b67.tar.gz gpgme-c287f09ac0f090a65299ac7c15e3c9b4947d4b67.zip |
tests: Add --with-secret to run-keylist.c
* run-keylist.c (show_usage, main): Add --with-secret.
Diffstat (limited to 'tests/run-keylist.c')
-rw-r--r-- | tests/run-keylist.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |