mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
24feaa4f8a
commit
458efc1d6f
4 changed files with 45 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue