From b394776a80e2e192eeaf5de82b2df8660298a091 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Apr 2003 15:46:13 +0000 Subject: * Makefile.am (AM_CFLAGS): Make use of AM_CFLAGS and AM_LDFLAGS. * g10.c, options.h: New option --enable-progress-filter. * progress.c (handle_progress): Make use of it. --- g10/encode.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'g10/encode.c') diff --git a/g10/encode.c b/g10/encode.c index d1b0cdb11..a7396c98c 100644 --- a/g10/encode.c +++ b/g10/encode.c @@ -164,6 +164,7 @@ encode_simple( const char *filename, int mode, int compat ) armor_filter_context_t afx; compress_filter_context_t zfx; text_filter_context_t tfx; + progress_filter_context_t pfx; int do_compress = opt.compress && !opt.rfc1991; memset( &cfx, 0, sizeof cfx); @@ -179,6 +180,8 @@ encode_simple( const char *filename, int mode, int compat ) return G10ERR_OPEN_FILE; } + handle_progress (&pfx, inp, filename); + if( opt.textmode ) iobuf_push_filter( inp, text_filter, &tfx ); @@ -386,6 +389,7 @@ encode_crypt( const char *filename, STRLIST remusr ) armor_filter_context_t afx; compress_filter_context_t zfx; text_filter_context_t tfx; + progress_filter_context_t pfx; PK_LIST pk_list,work_list; int do_compress = opt.compress && !opt.rfc1991; @@ -422,6 +426,8 @@ encode_crypt( const char *filename, STRLIST remusr ) else if( opt.verbose ) log_info(_("reading from `%s'\n"), filename? filename: "[stdin]"); + handle_progress (&pfx, inp, filename); + if( opt.textmode ) iobuf_push_filter( inp, text_filter, &tfx ); -- cgit