* gpgkeys_curl.c (main): Only allow specified protocols to use the
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 18 Jan 2005 04:24:52 +0000 (04:24 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 18 Jan 2005 04:24:52 +0000 (04:24 +0000)
curl handler.

* Makefile.am: Use LIBCURL_CPPFLAGS instead of LIBCURL_INCLUDES.

keyserver/ChangeLog
keyserver/Makefile.am
keyserver/gpgkeys_curl.c

index 4b38008..1dda7cd 100644 (file)
@@ -1,3 +1,10 @@
+2005-01-17  David Shaw  <dshaw@grover.jabberwocky.com>
+
+       * gpgkeys_curl.c (main): Only allow specified protocols to use the
+       curl handler.
+
+       * Makefile.am: Use LIBCURL_CPPFLAGS instead of LIBCURL_INCLUDES.
+
 2005-01-13  David Shaw  <dshaw@jabberwocky.com>
 
        * ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,
index eb004f6..68c7cd8 100644 (file)
@@ -39,5 +39,5 @@ gpgkeys_ldap_LDADD = ../util/libutil.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOP
 gpgkeys_hkp_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
 gpgkeys_http_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
 gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
-gpgkeys_curl_CPPFLAGS = @LIBCURL_INCLUDES@
+gpgkeys_curl_CPPFLAGS = @LIBCURL_CPPFLAGS@
 gpgkeys_curl_LDADD = @LIBCURL@ @GETOPT@
index ba64578..c553d79 100644 (file)
@@ -292,20 +292,23 @@ main(int argc,char *argv[])
       fprintf(console,"gpgkeys: no scheme supplied!\n");
       return KEYSERVER_SCHEME_NOT_FOUND;
     }
-#ifndef HTTP_VIA_LIBCURL
+#ifdef HTTP_VIA_LIBCURL
   else if(strcasecmp(scheme,"http")==0)
-    {
-      fprintf(console,"gpgkeys: scheme `%s' not supported\n",scheme);
-      return KEYSERVER_SCHEME_NOT_FOUND;
-    }
+    ;
 #endif /* HTTP_VIA_LIBCURL */
-#ifndef FTP_VIA_LIBCURL
+#ifdef HTTPS_VIA_LIBCURL
+  else if(strcasecmp(scheme,"https")==0)
+    ;
+#endif /* HTTP_VIA_LIBCURL */
+#ifdef FTP_VIA_LIBCURL
   else if(strcasecmp(scheme,"ftp")==0)
+    ;
+#endif /* FTP_VIA_LIBCURL */
+  else
     {
       fprintf(console,"gpgkeys: scheme `%s' not supported\n",scheme);
       return KEYSERVER_SCHEME_NOT_FOUND;
     }
-#endif /* FTP_VIA_LIBCURL */
 
   if(timeout && register_timeout()==-1)
     {