dirmngr: Allow use of http.c if USE_NPTH is not defined.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Oct 2015 20:38:21 +0000 (22:38 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Oct 2015 20:38:37 +0000 (22:38 +0200)
commitb6af3377e14fad35b9c6041b11888cabce6e8a56
treebbd5e7ef14574b44bd8ed4a8d23bdb9028763aba
parent6fafda979df8e7e117f8e6929bcce89513a6e746
dirmngr: Allow use of http.c if USE_NPTH is not defined.

* dirmngr/http.c (send_request): Always set the gnutls pull/push
functions.
(my_npth_read): Rename to ...
(my_gnutls_read) .. this.  Use system read if !USE_NPTH.
(my_npth_write): Rename to ...
(my_gnutls_write) .. this.  Use system write if !USE_NPTH.
--

This is necessary to run t-http because we once switched to a ref
counted object with the socket descriptor.

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