aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2009-05-28 04:25:25 +0000
committerDavid Shaw <[email protected]>2009-05-28 04:25:25 +0000
commita7205a080cf1b17d385453c8ec244d3bf67bf537 (patch)
tree4fe96d047f829ab9b026fe9a8aa8d0c9bb0523d5 /keyserver/curl-shim.h
parent* srv.c (getsrv): Raise maximum packet size to 2048, as PACKETSZ is (diff)
downloadgnupg-a7205a080cf1b17d385453c8ec244d3bf67bf537.tar.gz
gnupg-a7205a080cf1b17d385453c8ec244d3bf67bf537.zip
* 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).
Diffstat (limited to 'keyserver/curl-shim.h')
-rw-r--r--keyserver/curl-shim.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyserver/curl-shim.h b/keyserver/curl-shim.h
index 3b254ac03..793d484b9 100644
--- a/keyserver/curl-shim.h
+++ b/keyserver/curl-shim.h
@@ -48,7 +48,8 @@ typedef enum
CURLOPT_CAINFO,
CURLOPT_POST,
CURLOPT_POSTFIELDS,
- CURLOPT_FAILONERROR
+ CURLOPT_FAILONERROR,
+ CURLOPT_SRVTAG_GPG_HACK
} CURLoption;
typedef size_t (*write_func)(char *buffer,size_t size,
@@ -63,6 +64,7 @@ typedef struct
write_func writer;
void *file;
char *postfields;
+ char *srvtag;
unsigned int status;
FILE *errors;
struct