dirmngr: Fix for --disable-libdns usage.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 23 Dec 2016 07:05:01 +0000 (16:05 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 23 Dec 2016 07:05:01 +0000 (16:05 +0900)
commitd26c51825e2255fe58305cbc1cd74fa43f80d93e
tree9b4713564b2a996958a71522147f47a1aeb3c9d8
parent1909e994cb87d6c6866a465f0c20a456d4df46cc
dirmngr: Fix for --disable-libdns usage.

* dirmngr/dns-stuff.c (enable_recursive_resolver, set_dns_nameserver)
(reload_dns_stuff): Conditionalize with USE_LIBDNS.
(get_h_errno_as_gpg_error): Map HOST_NOT_FOUND to GPG_ERR_NO_NAME.

--

get_dns_srv assumes error code of GPG_ERR_NO_NAME when no SRV record
available.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
GnuPG-bug-id: 2889
dirmngr/dns-stuff.c