* gpgkeys_finger.c (main): We do not support relay fingering (i.e.
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 14 Oct 2004 20:36:40 +0000 (20:36 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 14 Oct 2004 20:36:40 +0000 (20:36 +0000)
"finger://relayhost/user@example.com"), but finger URLs are occasionally
miswritten that way.  Give an error in this case.

keyserver/ChangeLog
keyserver/gpgkeys_finger.c

index ba05ef1..434cd35 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-14  David Shaw  <dshaw@jabberwocky.com>
+
+       * gpgkeys_finger.c (main): We do not support relay fingering
+       (i.e. "finger://relayhost/user@example.com"), but finger URLs are
+       occasionally miswritten that way.  Give an error in this case.
+
 2004-10-14  Werner Koch  <wk@g10code.com>
 
        * gpgkeys_finger.c (get_key): s/unsigned char/byte/ due
index 31d139d..86ec8ae 100644 (file)
@@ -435,6 +435,14 @@ main(int argc,char *argv[])
          continue;
        }
 
+      if(strncmp(line,"HOST ",5)==0)
+       {
+         fprintf(console,"gpgkeys: finger://relay/user syntax is not"
+                 " supported.  Use finger:user instead.\n");
+         ret=KEYSERVER_NOT_SUPPORTED;
+         goto fail;
+       }
+
       if(sscanf(line,"OPAQUE %1023s\n",path)==1)
        {
          path[1023]='\0';