dirmngr: Print a WARNING status for DNS config problems.
authorWerner Koch <wk@gnupg.org>
Wed, 25 Jul 2018 12:35:04 +0000 (14:35 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 25 Jul 2018 12:35:04 +0000 (14:35 +0200)
commitbd4048c533165fd82340354d7229fcc2220db5a5
treeb32fdb240cdb717f522b1a5c19745a70a355b38a
parent9aa1b368efd4edf51b6d056339bffb726de5162b
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>
16 files changed:
dirmngr/Makefile.am
dirmngr/dirmngr-status.h [new file with mode: 0644]
dirmngr/dirmngr.h
dirmngr/dns-stuff.c
dirmngr/dns-stuff.h
dirmngr/http.c
dirmngr/http.h
dirmngr/ks-engine-finger.c
dirmngr/ks-engine-hkp.c
dirmngr/ks-engine-http.c
dirmngr/ocsp.c
dirmngr/server.c
dirmngr/t-dns-stuff.c
dirmngr/t-http.c
dirmngr/t-support.c [new file with mode: 0644]
g10/call-dirmngr.c