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