dirmngr: Do not block during ADNS calls.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Nov 2015 12:31:59 +0000 (13:31 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Nov 2015 12:31:59 +0000 (13:31 +0100)
commita3b26d6c0839ec18d1dc226bb537d5067c86d574
tree4a689d0ce643053ee28a157f7e7a8fcd45c91d7c
parenta2cc1d57552ccac7b2f9a0c6423b171b2a168b2a
dirmngr: Do not block during ADNS calls.

* dirmngr/dns-stuff.c: Include npth.h
(my_unprotect, my_protect): New wrapper.
(resolve_name_adns): Put unprotect/protect around adns calls.
(get_dns_cert): Ditto.
(getsrv): Ditto.
(get_dns_cname): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/Makefile.am
dirmngr/dns-stuff.c