* keyserver.c (parse_keyserver_uri): Force the keyserver URI scheme to
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 30 Sep 2002 03:28:41 +0000 (03:28 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 30 Sep 2002 03:28:41 +0000 (03:28 +0000)
lowercase to be case-insensitive.

g10/ChangeLog
g10/keyserver.c

index aca6252..6783e60 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-29  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyserver.c (parse_keyserver_uri): Force the keyserver URI
+       scheme to lowercase to be case-insensitive.
+
 2002-09-28  David Shaw  <dshaw@jabberwocky.com>
 
        * export.c (do_export_stream): Comment.
index 8f78912..dace054 100644 (file)
@@ -139,6 +139,14 @@ parse_keyserver_uri(char *uri,const char *configname,unsigned int configlineno)
       uri=opt.keyserver_scheme;
       opt.keyserver_scheme="hkp";
     }
+  else
+    {
+      /* Force to lowercase */
+      char *i;
+
+      for(i=opt.keyserver_scheme;*i!='\0';i++)
+       *i=ascii_tolower(*i);
+    }
 
   if(ascii_strcasecmp(opt.keyserver_scheme,"x-broken-hkp")==0)
     {