mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* http.h, http.c (send_request): Pass in srvtag and make its presence
sufficient to turn the feature on. (http_open): From here. (http_document): And here. * gpgkeys_hkp.c (srv_replace): New function to transform a SRV hostname to a real hostname. (main): Call it from here for the HAVE_LIBCURL case (without libcurl is handled via the curl-shim). * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).
This commit is contained in:
parent
fb866ea151
commit
a7205a080c
7 changed files with 125 additions and 35 deletions
|
@ -63,9 +63,8 @@ enum
|
|||
{
|
||||
HTTP_FLAG_TRY_PROXY = 1,
|
||||
HTTP_FLAG_NO_SHUTDOWN = 2,
|
||||
HTTP_FLAG_TRY_SRV = 4,
|
||||
HTTP_FLAG_LOG_RESP = 8,
|
||||
HTTP_FLAG_NEED_HEADER = 16
|
||||
HTTP_FLAG_LOG_RESP = 4,
|
||||
HTTP_FLAG_NEED_HEADER = 8
|
||||
};
|
||||
|
||||
struct http_context_s;
|
||||
|
@ -82,7 +81,8 @@ gpg_error_t http_open (http_t *r_hd, http_req_t reqtype,
|
|||
const char *auth,
|
||||
unsigned int flags,
|
||||
const char *proxy,
|
||||
void *tls_context);
|
||||
void *tls_context,
|
||||
const char *srvtag);
|
||||
|
||||
void http_start_data (http_t hd);
|
||||
|
||||
|
@ -95,7 +95,8 @@ gpg_error_t http_open_document (http_t *r_hd,
|
|||
const char *auth,
|
||||
unsigned int flags,
|
||||
const char *proxy,
|
||||
void *tls_context);
|
||||
void *tls_context,
|
||||
const char *srvtag);
|
||||
|
||||
#ifdef HTTP_USE_ESTREAM
|
||||
estream_t http_get_read_ptr (http_t hd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue