diff options
author | Werner Koch <[email protected]> | 2014-05-16 18:58:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-05-16 19:01:08 +0000 |
commit | 8b90d79818355b81ce223e1cb96cd0c939096fe2 (patch) | |
tree | 74d1f37bc8ad5957ad4a77bfd8bbcce2285d336e /common/http.h | |
parent | gpg: Fix uninitialized access to search descindex with gpg keyboxes. (diff) | |
download | gnupg-8b90d79818355b81ce223e1cb96cd0c939096fe2.tar.gz gnupg-8b90d79818355b81ce223e1cb96cd0c939096fe2.zip |
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.
Diffstat (limited to 'common/http.h')
-rw-r--r-- | common/http.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/http.h b/common/http.h index b6471b6b8..acfdc0fe6 100644 --- a/common/http.h +++ b/common/http.h @@ -110,6 +110,7 @@ gpg_error_t http_raw_connect (http_t *r_hd, gpg_error_t http_open (http_t *r_hd, http_req_t reqtype, const char *url, + const char *httphost, const char *auth, unsigned int flags, const char *proxy, |