aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-05-11 09:15:56 +0000
committerWerner Koch <[email protected]>2004-05-11 09:15:56 +0000
commitd3184ce584f540d765da72988269e2d2a9f29e0f (patch)
tree3ee06d61d78c33d652a1b6b3f6ce4dc17d5cd369 /sm/gpgsm.c
parent(log_set_file): Oops, don't close if LOGSTREAM is NULL. (diff)
downloadgnupg-d3184ce584f540d765da72988269e2d2a9f29e0f.tar.gz
gnupg-d3184ce584f540d765da72988269e2d2a9f29e0f.zip
* gpgsm.h (opt): Add member CONFIG_FILENAME.
* gpgsm.c (main): Use it here instead of the local var. * server.c (gpgsm_server): Print some additional information with the hello in verbose mode.
Diffstat (limited to '')
-rw-r--r--sm/gpgsm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 61307701a..adc04336e 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -701,7 +701,6 @@ main ( int argc, char **argv)
CERTLIST recplist = NULL;
CERTLIST signerlist = NULL;
int do_not_setup_keys = 0;
- char *config_filename = NULL;
/* trap_unaligned ();*/
set_strusage (my_strusage);
@@ -1136,14 +1135,16 @@ main ( int argc, char **argv)
fclose (configfp);
configfp = NULL;
/* Keep a copy of the config filename. */
- config_filename = configname;
+ opt.config_filename = configname;
configname = NULL;
goto next_pass;
}
-
xfree (configname);
configname = NULL;
+ if (!opt.config_filename)
+ opt.config_filename = make_filename (opt.homedir, "gpgsm.conf", NULL);
+
if (log_get_errorcount(0))
gpgsm_exit(2);
@@ -1297,11 +1298,8 @@ main ( int argc, char **argv)
a default, which is described by the value of the ARGDEF field. */
#define GC_OPT_FLAG_NO_ARG_DESC (1UL << 6)
- if (!config_filename)
- config_filename = make_filename (opt.homedir, "gpgsm.conf", NULL);
-
printf ("gpgconf-gpgsm.conf:%lu:\"%s\n",
- GC_OPT_FLAG_DEFAULT, config_filename);
+ GC_OPT_FLAG_DEFAULT, opt.config_filename);
printf ("verbose:%lu:\n"
"quiet:%lu:\n"