diff options
author | David Shaw <[email protected]> | 2007-03-14 04:24:55 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2007-03-14 04:24:55 +0000 |
commit | 458efc1d6f84262f72471de173e5f8bb065cbec8 (patch) | |
tree | 351d476109019708aadab0ad6140802310217a62 /keyserver/curl-shim.h | |
parent | From STABLE-BRANCH-1-4 (diff) | |
download | gnupg-458efc1d6f84262f72471de173e5f8bb065cbec8.tar.gz gnupg-458efc1d6f84262f72471de173e5f8bb065cbec8.zip |
From STABLE-BRANCH-1-4
* gpgkeys_curl.c (main): Use curl_version_info to verify that the
protocol we're about to use is actually available.
* curl-shim.h, curl-shim.c (curl_free): Make into a macro.
(curl_version_info): New. Only advertises "http" for our shim, of
course.
Diffstat (limited to '')
-rw-r--r-- | keyserver/curl-shim.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/keyserver/curl-shim.h b/keyserver/curl-shim.h index e942ec710..9cec84065 100644 --- a/keyserver/curl-shim.h +++ b/keyserver/curl-shim.h @@ -76,8 +76,14 @@ typedef struct http_t hd; } CURL; +typedef struct +{ + const char **protocols; +} curl_version_info_data; + #define CURL_ERROR_SIZE 256 #define CURL_GLOBAL_DEFAULT 0 +#define CURLVERSION_NOW 0 CURLcode curl_global_init(long flags); void curl_global_cleanup(void); @@ -86,7 +92,8 @@ CURLcode curl_easy_setopt(CURL *curl,CURLoption option,...); CURLcode curl_easy_perform(CURL *curl); void curl_easy_cleanup(CURL *curl); char *curl_escape(char *str,int len); -void curl_free(char *ptr); +#define curl_free(x) free(x) #define curl_version() "GnuPG curl-shim "VERSION +curl_version_info_data *curl_version_info(int type); #endif /* !_CURL_SHIM_H_ */ |