tests: Add --with-secret to run-keylist.c
* run-keylist.c (show_usage, main): Add --with-secret.
This commit is contained in:
parent
31bc51e2af
commit
c287f09ac0
@ -47,6 +47,7 @@ show_usage (int ex)
|
|||||||
" --openpgp use the OpenPGP protocol (default)\n"
|
" --openpgp use the OpenPGP protocol (default)\n"
|
||||||
" --cms use the CMS protocol\n"
|
" --cms use the CMS protocol\n"
|
||||||
" --secret list only secret keys\n"
|
" --secret list only secret keys\n"
|
||||||
|
" --with-secret list pubkeys with secret info filled\n"
|
||||||
" --local use GPGME_KEYLIST_MODE_LOCAL\n"
|
" --local use GPGME_KEYLIST_MODE_LOCAL\n"
|
||||||
" --extern use GPGME_KEYLIST_MODE_EXTERN\n"
|
" --extern use GPGME_KEYLIST_MODE_EXTERN\n"
|
||||||
" --sigs use GPGME_KEYLIST_MODE_SIGS\n"
|
" --sigs use GPGME_KEYLIST_MODE_SIGS\n"
|
||||||
@ -173,6 +174,11 @@ main (int argc, char **argv)
|
|||||||
mode |= GPGME_KEYLIST_MODE_VALIDATE;
|
mode |= GPGME_KEYLIST_MODE_VALIDATE;
|
||||||
argc--; argv++;
|
argc--; argv++;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp (*argv, "--with-secret"))
|
||||||
|
{
|
||||||
|
mode |= GPGME_KEYLIST_MODE_WITH_SECRET;
|
||||||
|
argc--; argv++;
|
||||||
|
}
|
||||||
else if (!strcmp (*argv, "--import"))
|
else if (!strcmp (*argv, "--import"))
|
||||||
{
|
{
|
||||||
import = 1;
|
import = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user