mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
fc3cc2cacf
commit
b394776a80
13 changed files with 209 additions and 17 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue