aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/t-http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-10-21 20:41:12 +0000
committerWerner Koch <[email protected]>2015-10-21 20:41:12 +0000
commit1e34007c972c1d7730cfcacd88f6bbebba7dec1d (patch)
treebcff93b34e4249215452b76bde54710621c02cf0 /dirmngr/t-http.c
parentdirmngr: Allow use of http.c if USE_NPTH is not defined. (diff)
downloadgnupg-1e34007c972c1d7730cfcacd88f6bbebba7dec1d.tar.gz
gnupg-1e34007c972c1d7730cfcacd88f6bbebba7dec1d.zip
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 <[email protected]>
Diffstat (limited to 'dirmngr/t-http.c')
-rw-r--r--dirmngr/t-http.c3
1 files changed, 3 insertions, 0 deletions
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;