tests: Add --with-secret to run-keylist.c

* run-keylist.c (show_usage, main): Add --with-secret.
This commit is contained in:
Andre Heinecke 2018-07-09 11:17:27 +02:00
parent 31bc51e2af
commit c287f09ac0
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -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;