gpgsplit

Dirk Traulsen dirk.traulsen at lypso.de
Sun Aug 27 12:07:55 CEST 2006


Hi!

gpgsplit is the nice programm which takes exported keys apart. 
But when the file is armoured, gpgsplit gives only a general
error message:
gpgsplit: invalid CTB 2d

It would be nicer to give a hint what could be the reason:

Index: tools/gpgsplit.c
===================================================================
--- tools/gpgsplit.c	(Revision 4227)
+++ tools/gpgsplit.c	(Arbeitskopie)
@@ -782,7 +782,7 @@
   
   if (!(ctb & 0x80))
     {
-      log_error("invalid CTB %02x\n", ctb );
+      log_error("invalid packet header CTB %02x (Possible reason: the file could be armoured.)\n", ctb );
       return 1;
     }
   if ( (ctb & 0x40) )


Dirk




More information about the Gnupg-devel mailing list