mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl has
specifically been selected to handle them.
This commit is contained in:
parent
d341143cd7
commit
783ec6dbb2
2 changed files with 9 additions and 2 deletions
|
@ -784,12 +784,14 @@ keyserver_typemap(const char *type)
|
|||
{
|
||||
if(strcmp(type,"ldaps")==0)
|
||||
return "ldap";
|
||||
#ifdef HAVE_LIBCURL
|
||||
#ifdef FTP_VIA_LIBCURL
|
||||
else if(strcmp(type,"ftp")==0)
|
||||
return "curl";
|
||||
#endif
|
||||
#ifdef HTTP_VIA_LIBCURL
|
||||
else if(strcmp(type,"http")==0)
|
||||
return "curl";
|
||||
#endif /* HAVE_LIBCURL */
|
||||
#endif
|
||||
else
|
||||
return type;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue