mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* 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.
This commit is contained in:
parent
edda971a15
commit
d3184ce584
3
NEWS
3
NEWS
@ -1,6 +1,9 @@
|
|||||||
Noteworthy changes in version 1.9.9
|
Noteworthy changes in version 1.9.9
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
|
* [gpg-agent] The new option --allow-mark-trusted is now required to
|
||||||
|
allow gpg-agent to add a key to the trustlist.txt after user
|
||||||
|
confirmation.
|
||||||
|
|
||||||
|
|
||||||
Noteworthy changes in version 1.9.8 (2004-04-29)
|
Noteworthy changes in version 1.9.8 (2004-04-29)
|
||||||
|
5
TODO
5
TODO
@ -70,11 +70,6 @@ might want to have an agent context for each service request
|
|||||||
* scd/sc-investigate
|
* scd/sc-investigate
|
||||||
** Enhance with card compatibility check
|
** Enhance with card compatibility check
|
||||||
|
|
||||||
* scd/app-openpgp
|
|
||||||
Must check that the fingerprint used is not the one of the
|
|
||||||
authentication key. Old GnuPG versions seem to encode the wrong
|
|
||||||
keyID.
|
|
||||||
|
|
||||||
* tests
|
* tests
|
||||||
** Makefile.am
|
** Makefile.am
|
||||||
We use printf(1) to setup the library path, this is not portable.
|
We use printf(1) to setup the library path, this is not portable.
|
||||||
|
@ -34,7 +34,7 @@ NEED_GPG_ERROR_VERSION=0.7
|
|||||||
NEED_LIBGCRYPT_API=1
|
NEED_LIBGCRYPT_API=1
|
||||||
NEED_LIBGCRYPT_VERSION=1.1.94
|
NEED_LIBGCRYPT_VERSION=1.1.94
|
||||||
|
|
||||||
NEED_LIBASSUAN_VERSION=0.6.5
|
NEED_LIBASSUAN_VERSION=0.6.6
|
||||||
|
|
||||||
NEED_KSBA_VERSION=0.9.4
|
NEED_KSBA_VERSION=0.9.4
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2004-05-11 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2004-04-30 Werner Koch <wk@gnupg.org>
|
2004-04-30 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* import.c (check_and_store): Do not update the stats for hidden
|
* import.c (check_and_store): Do not update the stats for hidden
|
||||||
|
12
sm/gpgsm.c
12
sm/gpgsm.c
@ -701,7 +701,6 @@ main ( int argc, char **argv)
|
|||||||
CERTLIST recplist = NULL;
|
CERTLIST recplist = NULL;
|
||||||
CERTLIST signerlist = NULL;
|
CERTLIST signerlist = NULL;
|
||||||
int do_not_setup_keys = 0;
|
int do_not_setup_keys = 0;
|
||||||
char *config_filename = NULL;
|
|
||||||
|
|
||||||
/* trap_unaligned ();*/
|
/* trap_unaligned ();*/
|
||||||
set_strusage (my_strusage);
|
set_strusage (my_strusage);
|
||||||
@ -1136,14 +1135,16 @@ main ( int argc, char **argv)
|
|||||||
fclose (configfp);
|
fclose (configfp);
|
||||||
configfp = NULL;
|
configfp = NULL;
|
||||||
/* Keep a copy of the config filename. */
|
/* Keep a copy of the config filename. */
|
||||||
config_filename = configname;
|
opt.config_filename = configname;
|
||||||
configname = NULL;
|
configname = NULL;
|
||||||
goto next_pass;
|
goto next_pass;
|
||||||
}
|
}
|
||||||
|
|
||||||
xfree (configname);
|
xfree (configname);
|
||||||
configname = NULL;
|
configname = NULL;
|
||||||
|
|
||||||
|
if (!opt.config_filename)
|
||||||
|
opt.config_filename = make_filename (opt.homedir, "gpgsm.conf", NULL);
|
||||||
|
|
||||||
if (log_get_errorcount(0))
|
if (log_get_errorcount(0))
|
||||||
gpgsm_exit(2);
|
gpgsm_exit(2);
|
||||||
|
|
||||||
@ -1297,11 +1298,8 @@ main ( int argc, char **argv)
|
|||||||
a default, which is described by the value of the ARGDEF field. */
|
a default, which is described by the value of the ARGDEF field. */
|
||||||
#define GC_OPT_FLAG_NO_ARG_DESC (1UL << 6)
|
#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",
|
printf ("gpgconf-gpgsm.conf:%lu:\"%s\n",
|
||||||
GC_OPT_FLAG_DEFAULT, config_filename);
|
GC_OPT_FLAG_DEFAULT, opt.config_filename);
|
||||||
|
|
||||||
printf ("verbose:%lu:\n"
|
printf ("verbose:%lu:\n"
|
||||||
"quiet:%lu:\n"
|
"quiet:%lu:\n"
|
||||||
|
@ -45,7 +45,8 @@ struct {
|
|||||||
int answer_no; /* assume no on most questions */
|
int answer_no; /* assume no on most questions */
|
||||||
int dry_run; /* don't change any persistent data */
|
int dry_run; /* don't change any persistent data */
|
||||||
|
|
||||||
const char *homedir; /* configuration directory name */
|
const char *homedir; /* Configuration directory name */
|
||||||
|
const char *config_filename; /* Name of the used config file. */
|
||||||
const char *agent_program;
|
const char *agent_program;
|
||||||
char *display;
|
char *display;
|
||||||
char *ttyname;
|
char *ttyname;
|
||||||
|
22
sm/server.c
22
sm/server.c
@ -1,5 +1,5 @@
|
|||||||
/* server.c - Server mode and main entry point
|
/* server.c - Server mode and main entry point
|
||||||
* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
* Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -786,6 +786,8 @@ gpgsm_server (certlist_t default_recplist)
|
|||||||
int filedes[2];
|
int filedes[2];
|
||||||
ASSUAN_CONTEXT ctx;
|
ASSUAN_CONTEXT ctx;
|
||||||
struct server_control_s ctrl;
|
struct server_control_s ctrl;
|
||||||
|
static const char hello[] = ("GNU Privacy Guard's S/M server "
|
||||||
|
VERSION " ready");
|
||||||
|
|
||||||
memset (&ctrl, 0, sizeof ctrl);
|
memset (&ctrl, 0, sizeof ctrl);
|
||||||
gpgsm_init_default_ctrl (&ctrl);
|
gpgsm_init_default_ctrl (&ctrl);
|
||||||
@ -809,7 +811,23 @@ gpgsm_server (certlist_t default_recplist)
|
|||||||
assuan_strerror(rc));
|
assuan_strerror(rc));
|
||||||
gpgsm_exit (2);
|
gpgsm_exit (2);
|
||||||
}
|
}
|
||||||
assuan_set_hello_line (ctx, "GNU Privacy Guard's S/M server ready");
|
if (opt.verbose)
|
||||||
|
{
|
||||||
|
char *tmp = NULL;
|
||||||
|
if (asprintf (&tmp,
|
||||||
|
"Home: %s\n"
|
||||||
|
"Config: %s\n"
|
||||||
|
"%s",
|
||||||
|
opt.homedir,
|
||||||
|
opt.config_filename,
|
||||||
|
hello) > 0)
|
||||||
|
{
|
||||||
|
assuan_set_hello_line (ctx, tmp);
|
||||||
|
free (tmp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
assuan_set_hello_line (ctx, hello);
|
||||||
|
|
||||||
assuan_register_reset_notify (ctx, reset_notify);
|
assuan_register_reset_notify (ctx, reset_notify);
|
||||||
assuan_register_input_notify (ctx, input_notify);
|
assuan_register_input_notify (ctx, input_notify);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user