mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* gpgsm.c: Fixed value parsing for --with-validation.
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO. * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
This commit is contained in:
parent
d68674a77a
commit
81edc1e40e
@ -1,5 +1,9 @@
|
||||
2004-02-17 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* gpgsm.c: Fixed value parsing for --with-validation.
|
||||
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
|
||||
* call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
|
||||
|
||||
* gpgsm.c: New option --with-md5-fingerprint.
|
||||
* keylist.c (list_cert_std): Print MD5 fpr.
|
||||
|
||||
|
@ -78,10 +78,10 @@ start_agent (void)
|
||||
if (agent_ctx)
|
||||
return 0; /* fixme: We need a context for each thread or serialize
|
||||
the access to the agent (which is suitable given that
|
||||
the agent is not MT */
|
||||
the agent is not MT. */
|
||||
|
||||
infostr = force_pipe_server? NULL : getenv ("GPG_AGENT_INFO");
|
||||
if (!infostr)
|
||||
if (!infostr || !*infostr)
|
||||
{
|
||||
const char *pgmname;
|
||||
const char *argv[3];
|
||||
|
@ -142,7 +142,7 @@ start_dirmngr (void)
|
||||
the access to the dirmngr */
|
||||
|
||||
infostr = force_pipe_server? NULL : getenv ("DIRMNGR_INFO");
|
||||
if (!infostr)
|
||||
if (!infostr || !*infostr)
|
||||
{
|
||||
const char *pgmname;
|
||||
const char *argv[3];
|
||||
|
@ -172,7 +172,8 @@ option_handler (ASSUAN_CONTEXT ctx, const char *key, const char *value)
|
||||
}
|
||||
else if (!strcmp (key, "with-validation"))
|
||||
{
|
||||
ctrl->with_validation = !!*value;
|
||||
int i = *value? atoi (value) : 0;
|
||||
ctrl->with_validation = i;
|
||||
}
|
||||
else
|
||||
return ASSUAN_Invalid_Option;
|
||||
|
Loading…
x
Reference in New Issue
Block a user