diff options
author | Werner Koch <[email protected]> | 2003-04-15 15:46:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-04-15 15:46:13 +0000 |
commit | b394776a80e2e192eeaf5de82b2df8660298a091 (patch) | |
tree | 93e71726d93f4ca7c1289ddb70f19c067b51519d /g10/encode.c | |
parent | * gpg.sgml: Document --enable-progress-filter. (diff) | |
download | gnupg-b394776a80e2e192eeaf5de82b2df8660298a091.tar.gz gnupg-b394776a80e2e192eeaf5de82b2df8660298a091.zip |
* 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.
Diffstat (limited to 'g10/encode.c')
-rw-r--r-- | g10/encode.c | 6 |
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 ); |