aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-10-23 14:02:13 +0000
committerWerner Koch <[email protected]>2006-10-23 14:02:13 +0000
commit7b8ea82ab64aa0c298c48ef3edf680102c2b1788 (patch)
tree3dfca78f29a4bdbd5ae307ca989544b951fe091d /g10/gpg.c
parentAllow importing of web.de generated p12 files (diff)
downloadgnupg-7b8ea82ab64aa0c298c48ef3edf680102c2b1788.tar.gz
gnupg-7b8ea82ab64aa0c298c48ef3edf680102c2b1788.zip
.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 8d2f2bf27..624816cde 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -110,6 +110,7 @@ enum cmd_and_opt_values
aLSignKey,
aListConfig,
aGPGConfList,
+ aGPGConfTest,
aListPackets,
aEditKey,
aDeleteKeys,
@@ -408,6 +409,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, "@"},
@@ -2026,6 +2028,7 @@ main (int argc, char **argv )
case aCheckKeys:
case aListConfig:
case aGPGConfList:
+ case aGPGConfTest:
case aListPackets:
case aImport:
case aFastImport:
@@ -3183,7 +3186,7 @@ main (int argc, char **argv )
SELinux, this is so that the rings are added to the list of
secured files. */
if( ALWAYS_ADD_KEYRINGS
- || (cmd != aDeArmor && cmd != aEnArmor) )
+ || (cmd != aDeArmor && cmd != aEnArmor && cmd != aGPGConfTest) )
{
if (ALWAYS_ADD_KEYRINGS
|| (cmd != aCheckKeys && cmd != aListSigs && cmd != aListKeys
@@ -3202,6 +3205,9 @@ main (int argc, char **argv )
FREE_STRLIST(nrings);
FREE_STRLIST(sec_nrings);
+ if (cmd == aGPGConfTest)
+ g10_exit(0);
+
if( pwfd != -1 ) /* Read the passphrase now. */
read_passphrase_from_fd( pwfd );