aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-12-24 19:51:02 +0000
committerDavid Shaw <[email protected]>2004-12-24 19:51:02 +0000
commit783ec6dbb2322594fb206b79f937e7d9aa440421 (patch)
treeef85c603a28a121d4fb12c5b22a04835889f9040
parent* gpgkeys_curl.c (main): Use new defines for opting out of certain (diff)
downloadgnupg-783ec6dbb2322594fb206b79f937e7d9aa440421.tar.gz
gnupg-783ec6dbb2322594fb206b79f937e7d9aa440421.zip
* keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl has
specifically been selected to handle them.
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keyserver.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 3fda46d4c..69559f40d 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-24 David Shaw <[email protected]>
+
+ * keyserver.c (keyserver_typemap): Only map HTTP and FTP if
+ libcurl has specifically been selected to handle them.
+
2004-12-22 David Shaw <[email protected]>
* options.h, keyserver.c (parse_keyserver_uri): Properly parse
diff --git a/g10/keyserver.c b/g10/keyserver.c
index 815e784a6..f9343980a 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -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;
}