dirmngr: Use Assuan socket wrappers for http.c
authorWerner Koch <wk@gnupg.org>
Mon, 19 Oct 2015 10:43:22 +0000 (12:43 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 19 Oct 2015 11:17:58 +0000 (13:17 +0200)
commit8c609eaf35b547f02979ef0b206520dd0853b294
tree7d04063be01b31b438cf4a2f95d1646ecc809607
parent253afa244487dd8129816615ac2865c9fe812aaf
dirmngr: Use Assuan socket wrappers for http.c

* dirmngr/http.c: Include assuan.h.  Changed all code taking a socket
descriptor from int to assuan_fd_t.
(my_unprotect, my_protect): New.
(my_connect): Remove.
(_my_socket_new, _my_socket_unref): use assuan_sock_close.
(connect_server): Use assuan_sock_connect, assuan_sock_new, and
assuan_sock_close.
* dirmngr/Makefile.am (t_common_ldadd): Add LIBASSUAN_LIBS.
--

This change prepares for the use of SOCKS5 with http.

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