diff options
author | David Shaw <[email protected]> | 2009-05-28 16:20:49 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2009-05-28 16:20:49 +0000 |
commit | bcf540f2d05be031fc16d9faf572a75c65834f12 (patch) | |
tree | 93ae0636c57de16e0d91d24c9c0c63e79d3c1fd1 /keyserver/curl-shim.h | |
parent | * http.h, http.c (send_request): Pass in srvtag and make its presence (diff) | |
download | gnupg-bcf540f2d05be031fc16d9faf572a75c65834f12.tar.gz gnupg-bcf540f2d05be031fc16d9faf572a75c65834f12.zip |
Avoid caches to get the most recent copy of the key. This is bug #1061
Diffstat (limited to 'keyserver/curl-shim.h')
-rw-r--r-- | keyserver/curl-shim.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/keyserver/curl-shim.h b/keyserver/curl-shim.h index 793d484b9..e37d81675 100644 --- a/keyserver/curl-shim.h +++ b/keyserver/curl-shim.h @@ -1,5 +1,5 @@ /* curl-shim.h - * Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + * Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. * * This file is part of GNUPG. * @@ -20,6 +20,7 @@ #ifndef _CURL_SHIM_H_ #define _CURL_SHIM_H_ +#include "util.h" #include "http.h" typedef enum @@ -49,6 +50,7 @@ typedef enum CURLOPT_POST, CURLOPT_POSTFIELDS, CURLOPT_FAILONERROR, + CURLOPT_HTTPHEADER, CURLOPT_SRVTAG_GPG_HACK } CURLoption; @@ -67,6 +69,7 @@ typedef struct char *srvtag; unsigned int status; FILE *errors; + struct curl_slist *headers; struct { unsigned int post:1; @@ -96,4 +99,13 @@ char *curl_escape(char *str,int len); #define curl_version() "GnuPG curl-shim" curl_version_info_data *curl_version_info(int type); +struct curl_slist +{ + strlist_t list; +}; + +struct curl_slist *curl_slist_append(struct curl_slist *list, + const char *string); +void curl_slist_free_all(struct curl_slist *list); + #endif /* !_CURL_SHIM_H_ */ |