Invalid headers as fatal error

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


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

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;

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

Thank you for your consideration.

--Richard Patterson

Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.

More information about the Gnupg-devel mailing list