aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c8
1 files changed, 7 insertions, 1 deletions
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 );
}