diff options
author | Werner Koch <wk@gnupg.org> | 2018-07-25 14:35:04 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-07-25 14:35:04 +0200 |
commit | bd4048c533165fd82340354d7229fcc2220db5a5 (patch) | |
tree | b32fdb240cdb717f522b1a5c19745a70a355b38a /dirmngr/ks-engine-finger.c | |
parent | gpg: Use 128 MiB as default AEAD chunk size. (diff) | |
download | gnupg2-bd4048c533165fd82340354d7229fcc2220db5a5.tar.xz gnupg2-bd4048c533165fd82340354d7229fcc2220db5a5.zip |
dirmngr: Print a WARNING status for DNS config problems.
* dirmngr/dirmngr-status.h: New.
* dirmngr/dirmngr.h: Include dirmngr-status.h and move some prototypes
to that file.
* dirmngr/t-support.c: New.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add dirmngr-status.h.
(t_common_src): Add t-support.c.
* dirmngr/server.c (dirmngr_status_printf): Bypass if CTRL is NULL.
* dirmngr/dns-stuff.c: Include dirmngr-status.h.
(libdns_init): Print WARNING status line. Change call callers to take
and pass a CTRL argument.
* g10/call-dirmngr.c (ks_status_cb): Print info for new WARNING
status.
--
To test this you can change RESOLV_CONF_NAME in dns-stuff.c and run
gpg --recv-key -v SOMETHING.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/ks-engine-finger.c')
-rw-r--r-- | dirmngr/ks-engine-finger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ks-engine-finger.c b/dirmngr/ks-engine-finger.c index e53a0ee78..30ede1573 100644 --- a/dirmngr/ks-engine-finger.c +++ b/dirmngr/ks-engine-finger.c @@ -82,7 +82,7 @@ ks_finger_fetch (ctrl_t ctrl, parsed_uri_t uri, estream_t *r_fp) } *server++ = 0; - err = http_raw_connect (&http, server, 79, + err = http_raw_connect (ctrl, &http, server, 79, ((dirmngr_use_tor ()? HTTP_FLAG_FORCE_TOR : 0) | (opt.disable_ipv4? HTTP_FLAG_IGNORE_IPv4 : 0) | (opt.disable_ipv6? HTTP_FLAG_IGNORE_IPv6 : 0)), |