From 7d0efec7cf5ae110c99511abc32587ff0c45b14f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 Jan 1999 17:05:48 +0000 Subject: See ChangeLog: Thu Jan 7 18:00:58 CET 1999 Werner Koch --- g10/plaintext.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'g10/plaintext.c') diff --git a/g10/plaintext.c b/g10/plaintext.c index ab750e444..c5c6685f4 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "util.h" #include "memory.h" #include "options.h" @@ -137,7 +138,7 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx, goto leave; } if( mfx->md ) { - if( convert && clearsig ) + if( 0 && convert && clearsig ) special_md_putc(mfx->md, c, &special_state ); else md_putc(mfx->md, c ); @@ -157,7 +158,7 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx, else { while( (c = iobuf_get(pt->buf)) != -1 ) { if( mfx->md ) { - if( convert && clearsig ) + if( 0 && convert && clearsig ) special_md_putc(mfx->md, c, &special_state ); else md_putc(mfx->md, c ); @@ -173,9 +174,9 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx, } } } - iobuf_clear_eof(pt->buf); + pt->buf = NULL; } - if( mfx->md && convert && clearsig ) + if( 0 && mfx->md && convert && clearsig ) special_md_putc(mfx->md, -1, &special_state ); /* flush */ if( fp && fp != stdout && fclose(fp) ) { -- cgit v1.2.3