summaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.h
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2005-04-17 03:39:24 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2005-04-17 03:39:24 +0200
commitf50e99ed7b9f55e95daa863e53c1a70da3110c1a (patch)
tree474e27dfa5759b604e81d4f39f2d58847d33c32e /keyserver/curl-shim.h
parent* configure.ac: Remove --disable-old-hkp - use new HKP handler for (diff)
downloadgnupg2-f50e99ed7b9f55e95daa863e53c1a70da3110c1a.tar.xz
gnupg2-f50e99ed7b9f55e95daa863e53c1a70da3110c1a.zip
* curl-shim.h, curl-shim.c (handle_error, curl_easy_setopt,
curl_easy_perform): Add POST functionality to the curl shim.
Diffstat (limited to 'keyserver/curl-shim.h')
-rw-r--r--keyserver/curl-shim.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/keyserver/curl-shim.h b/keyserver/curl-shim.h
index dc3d959bd..505393635 100644
--- a/keyserver/curl-shim.h
+++ b/keyserver/curl-shim.h
@@ -26,9 +26,10 @@
typedef enum
{
CURLE_OK=0,
- CURLE_FTP_COULDNT_RETR_FILE,
- CURLE_COULDNT_CONNECT,
- CURLE_WRITE_ERROR
+ CURLE_COULDNT_CONNECT=7,
+ CURLE_FTP_COULDNT_RETR_FILE=19,
+ CURLE_HTTP_RETURNED_ERROR=22,
+ CURLE_WRITE_ERROR=23
} CURLcode;
typedef enum
@@ -43,7 +44,10 @@ typedef enum
CURLOPT_VERBOSE,
CURLOPT_SSL_VERIFYPEER,
CURLOPT_PROXY,
- CURLOPT_CAINFO
+ CURLOPT_CAINFO,
+ CURLOPT_POST,
+ CURLOPT_POSTFIELDS,
+ CURLOPT_FAILONERROR
} CURLoption;
typedef size_t (*write_func)(char *buffer,size_t size,
@@ -56,6 +60,13 @@ typedef struct
char *proxy;
write_func writer;
void *file;
+ char *postfields;
+ unsigned int status;
+ struct
+ {
+ unsigned int post:1;
+ unsigned int failonerror:1;
+ } flags;
struct http_context hd;
} CURL;