Invalid headers as fatal error

Richard Patterson vectro at yahoo.com
Thu Dec 9 03:03:38 CET 2004


Hello,

A certain new release of an unnamed other
implementation of OpenPGP creates a very long Version:
header that is line-wrapped by some mailers. This in
turn causes GPG to issue an "invalid header" fatal
error.

I suggest that this error should be non-fatal in the
abscece of --openpgp. The following patch implements
this change:

--- gnupg-1.3.92/g10/armor.c-old        2004-10-14
13:47:47.000000000 -0700
+++ gnupg-1.3.92/g10/armor.c    2004-12-08
18:01:47.000000000 -0800
@@ -443,7 +443,7 @@

        i = parse_header_line( afx, line, len );
        if( i <= 0 ) {
-           if( i )
+           if( i && RFC2440 )
                rc = G10ERR_INVALID_ARMOR;
            break;
        }

As I am not subscribed to the gnupg-devel mailing
list, replies should CC vectro at yahoo.com.

Thank you for your consideration.

--Richard Patterson


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail



More information about the Gnupg-devel mailing list