1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

New command --gpgconf-test.

This commit is contained in:
Werner Koch 2006-10-23 14:21:41 +00:00
parent 9e9214b944
commit 31cf39791e
5 changed files with 20 additions and 0 deletions

View file

@ -114,6 +114,7 @@ enum cmd_and_opt_values
aLSignKey,
aListConfig,
aGPGConfList,
aGPGConfTest,
aListPackets,
aEditKey,
aDeleteKeys,
@ -420,6 +421,7 @@ static ARGPARSE_OPTS opts[] = {
#endif
{ aListConfig, "list-config", 256, "@"},
{ aGPGConfList, "gpgconf-list", 256, "@" },
{ aGPGConfTest, "gpgconf-test", 256, "@" },
{ aListPackets, "list-packets",256, "@"},
{ aExportOwnerTrust, "export-ownertrust", 256, "@"},
{ aImportOwnerTrust, "import-ownertrust", 256, "@"},
@ -2011,6 +2013,7 @@ main (int argc, char **argv )
case aCheckKeys:
case aListConfig:
case aGPGConfList:
case aGPGConfTest:
case aListPackets:
case aImport:
case aFastImport:
@ -3185,6 +3188,9 @@ main (int argc, char **argv )
if( opt.verbose > 1 )
set_packet_list_mode(1);
if (cmd == aGPGConfTest)
g10_exit(0);
/* Add the keyrings, but not for some special commands and not in
case of "-kvv userid keyring". Also avoid adding the secret
keyring for a couple of commands to avoid unneeded access in