From 694099b9af96d53ad4a4f9bc70e08c2f393f9f4e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 26 Feb 1999 16:59:48 +0000 Subject: See ChangeLog: Fri Feb 26 17:55:41 CET 1999 Werner Koch --- g10/encode.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'g10/encode.c') diff --git a/g10/encode.c b/g10/encode.c index 18346d798..aba251a20 100644 --- a/g10/encode.c +++ b/g10/encode.c @@ -150,7 +150,13 @@ encode_simple( const char *filename, int mode ) pt = m_alloc( sizeof *pt - 1 ); pt->namelen = 0; } - if( filename ) { + /* pgp5 has problems to decrypt symmetrically encrypted data from + * GnuPOG if the filelength is in the inner packet. It works + * when only partial length headers are use. Until we have + * tracked this problem down. We use this temporary fix + * (fixme: remove the && !mode ) + */ + if( filename && !mode ) { if( !(filesize = iobuf_get_filelength(inp)) ) log_info(_("%s: WARNING: empty file\n"), filename ); } -- cgit