mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-07 17:33:02 +01:00
Also print agent and dirmngr info.
This commit is contained in:
parent
d3184ce584
commit
13b6205066
19
sm/server.c
19
sm/server.c
@ -814,13 +814,20 @@ gpgsm_server (certlist_t default_recplist)
|
|||||||
if (opt.verbose)
|
if (opt.verbose)
|
||||||
{
|
{
|
||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
|
const char *s1 = getenv ("GPG_AGENT_INFO");
|
||||||
|
const char *s2 = getenv ("DIRMNGR_INFO");
|
||||||
|
|
||||||
if (asprintf (&tmp,
|
if (asprintf (&tmp,
|
||||||
"Home: %s\n"
|
"Home: %s\n"
|
||||||
"Config: %s\n"
|
"Config: %s\n"
|
||||||
"%s",
|
"AgentInfo: %s\n"
|
||||||
opt.homedir,
|
"DirmngrInfo: %s\n"
|
||||||
opt.config_filename,
|
"%s",
|
||||||
hello) > 0)
|
opt.homedir,
|
||||||
|
opt.config_filename,
|
||||||
|
s1?s1:"[not set]",
|
||||||
|
s2?s2:"[not set]",
|
||||||
|
hello) > 0)
|
||||||
{
|
{
|
||||||
assuan_set_hello_line (ctx, tmp);
|
assuan_set_hello_line (ctx, tmp);
|
||||||
free (tmp);
|
free (tmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user