From 1e34007c972c1d7730cfcacd88f6bbebba7dec1d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 21 Oct 2015 22:41:12 +0200 Subject: dirmngr: Use the new DNS wrapper for the HTTP module. * dirmngr/t-http.c (main): Init assuan sockets. * dirmngr/http.c: Include dns-stuff.h. (connect_server)[!HAVE_GETADDRINFO]: Remove all code. (connect_server): Change to use resolve_dns_name. Signed-off-by: Werner Koch --- dirmngr/t-http.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dirmngr/t-http.c') diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c index 41b2dd118..816b74490 100644 --- a/dirmngr/t-http.c +++ b/dirmngr/t-http.c @@ -243,6 +243,9 @@ main (int argc, char **argv) if (!cafile) cafile = prepend_srcdir ("tls-ca.pem"); + /* http.c makes use of the assuan socket wrapper. */ + assuan_sock_init (); + #if HTTP_USE_NTBTLS (void)err; -- cgit v1.2.3