summaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2007-03-14 05:24:55 +0100
committerDavid Shaw <dshaw@jabberwocky.com>2007-03-14 05:24:55 +0100
commit458efc1d6f84262f72471de173e5f8bb065cbec8 (patch)
tree351d476109019708aadab0ad6140802310217a62 /keyserver/curl-shim.c
parentFrom STABLE-BRANCH-1-4 (diff)
downloadgnupg2-458efc1d6f84262f72471de173e5f8bb065cbec8.tar.xz
gnupg2-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 'keyserver/curl-shim.c')
-rw-r--r--keyserver/curl-shim.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index 6c35c51d4..7d35320db 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -332,8 +332,13 @@ curl_escape(char *str,int length)
return enc;
}
-void
-curl_free(char *ptr)
+curl_version_info_data *
+curl_version_info(int type)
{
- free(ptr);
+ static curl_version_info_data data;
+ static const char *protocols[]={"http",NULL};
+
+ data.protocols=protocols;
+
+ return &data;
}