From 8b90d79818355b81ce223e1cb96cd0c939096fe2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 16 May 2014 20:58:58 +0200 Subject: http: Allow overriding of the Host header. * common/http.c (http_open): Add arg httphost. (http_open_document): Pass NULL for httphost. (send_request): Add arg httphost. If given, use HTTPHOST instead of SERVER. Use https with a proxy if requested. (http_verify_server_credentials): Do not stop at the first error message. * dirmngr/ocsp.c (do_ocsp_request): Adjust call to http_open. * keyserver/curl-shim.c (curl_easy_perform): Ditto. * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto. * dirmngr/ks-engine-hkp.c (ks_hkp_help): Ditto. --- dirmngr/ks-engine-hkp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dirmngr/ks-engine-hkp.c') diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c index 8c3384d49..541c46f55 100644 --- a/dirmngr/ks-engine-hkp.c +++ b/dirmngr/ks-engine-hkp.c @@ -765,6 +765,7 @@ send_request (ctrl_t ctrl, const char *request, const char *hostportstr, err = http_open (&http, post_cb? HTTP_REQ_POST : HTTP_REQ_GET, request, + NULL, /* fixme: AUTH */ NULL, httpflags, /* fixme: proxy*/ NULL, -- cgit v1.2.3