Be more relaxed with some real world keyservers

Holger Sesterhenn Holger.Sesterhenn at smgwtest.aachen.utimaco.de
Tue Dec 16 17:58:39 CET 2003


Hi,

would it be a big problem to add this little patch to version 1.2.4?

There are some keyservers which print

---------------
Type bits/keyid    Date       User ID
pgp  1024/DEADBEEF 1999/04/28 Imad R. Faiad
---------------

instead of

---------------
Type bits/keyid    Date       User ID
pub  1024/DEADBEEF 1999/04/28 Imad R. Faiad
---------------

The patch is based on version 1.2.3.

Best Regards,

Holger Sesterhenn
====
Internet   http://www.utimaco.com

-------------- next part --------------
--- hkp.c	2003-12-16 17:02:22.000000000 +0100
+++ hkp.c.new	2003-12-16 17:25:13.000000000 +0100
@@ -362,6 +362,7 @@
      section itself.  Headers and footers should not matter. */
   if(open && line[0]!='\0' &&
      ascii_strncasecmp(line,"pub ",4)!=0 &&
+     ascii_strncasecmp(line,"pgp ",4)!=0 &&
      ascii_strncasecmp(line,"    ",4)!=0)
     {
       m_free(key);
@@ -408,7 +409,7 @@
 	}
     }
 
-  if(ascii_strncasecmp(line,"pub ",4)==0)
+  if( (ascii_strncasecmp(line,"pub ",4)==0 )|| (ascii_strncasecmp(line,"pgp ",4)==0) )
     {
       char *tok,*temp;
 


More information about the Gnupg-devel mailing list