diff options
author | Werner Koch <[email protected]> | 2002-06-29 14:01:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-06-29 14:01:53 +0000 |
commit | df58e024e71b100a1557b1023d35b2a0092a8748 (patch) | |
tree | 18c586e4583637186779686afef445c71427307f /sm/call-dirmngr.c | |
parent | * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY. (diff) | |
download | gnupg-df58e024e71b100a1557b1023d35b2a0092a8748.tar.gz gnupg-df58e024e71b100a1557b1023d35b2a0092a8748.zip |
* gpgsm.c: New option --auto-issuer-key-retrieve.
* certpath.c (find_up): Try to retrieve an issuer key from an
external source and from the ephemeral key DB.
(find_up_store_certs_cb): New.
* keydb.c (keydb_set_ephemeral): Does now return the old
state. Call the backend only when required.
* call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
(lookup_status_cb): Issue status only when CTRL is not NULL.
(gpgsm_dirmngr_lookup): Document that CTRL is optional.
* call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
Diffstat (limited to 'sm/call-dirmngr.c')
-rw-r--r-- | sm/call-dirmngr.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sm/call-dirmngr.c b/sm/call-dirmngr.c index 017191dbe..30b34762f 100644 --- a/sm/call-dirmngr.c +++ b/sm/call-dirmngr.c @@ -156,7 +156,7 @@ start_dirmngr (void) } if (!opt.dirmngr_program || !*opt.dirmngr_program) - opt.dirmngr_program = "/usr/sbin/dirmngr"; + opt.dirmngr_program = GNUPG_DEFAULT_DIRMNGR; if ( !(pgmname = strrchr (opt.dirmngr_program, '/'))) pgmname = opt.dirmngr_program; else @@ -432,9 +432,12 @@ lookup_status_cb (void *opaque, const char *line) if (!strncmp (line, "TRUNCATED", 9) && (line[9]==' ' || !line[9])) { - for (line +=9; *line == ' '; line++) - ; - gpgsm_status (parm->ctrl, STATUS_TRUNCATED, line); + if (parm->ctrl) + { + for (line +=9; *line == ' '; line++) + ; + gpgsm_status (parm->ctrl, STATUS_TRUNCATED, line); + } } return 0; } @@ -442,7 +445,8 @@ lookup_status_cb (void *opaque, const char *line) /* Run the Directroy Managers lookup command using the apptern compiled from the strings given in NAMES. The caller must provide - the callback CB which will be passed cert by cert. */ + the callback CB which will be passed cert by cert. Note that CTRL + is optional. */ int gpgsm_dirmngr_lookup (CTRL ctrl, STRLIST names, void (*cb)(void*, KsbaCert), void *cb_value) |