summaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.h
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2005-06-23 06:44:20 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2005-06-23 06:44:20 +0200
commitd65763eccdce79eccd61d9dd36273cadffa1e22d (patch)
tree53f610b0517232e4667279876df67a58697dfbd6 /keyserver/curl-shim.h
parent* gpgkeys_http.c (get_key), gpgkeys_oldhkp (send_key, get_key, (diff)
downloadgnupg2-d65763eccdce79eccd61d9dd36273cadffa1e22d.tar.xz
gnupg2-d65763eccdce79eccd61d9dd36273cadffa1e22d.zip
* curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add
CURLOPT_USERPWD option for HTTP auth.
Diffstat (limited to 'keyserver/curl-shim.h')
-rw-r--r--keyserver/curl-shim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyserver/curl-shim.h b/keyserver/curl-shim.h
index 36aa880a9..6c5bc4368 100644
--- a/keyserver/curl-shim.h
+++ b/keyserver/curl-shim.h
@@ -36,6 +36,7 @@ typedef enum
typedef enum
{
CURLOPT_URL,
+ CURLOPT_USERPWD,
CURLOPT_WRITEFUNCTION,
CURLOPT_FILE,
CURLOPT_ERRORBUFFER,
@@ -57,6 +58,7 @@ typedef size_t (*write_func)(char *buffer,size_t size,
typedef struct
{
char *url;
+ char *auth;
char *errorbuffer;
char *proxy;
write_func writer;