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/decrypt.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/decrypt.c')
-rw-r--r-- | g10/decrypt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/decrypt.c b/g10/decrypt.c index bea16b728..df778d1ad 100644 --- a/g10/decrypt.c +++ b/g10/decrypt.c @@ -51,6 +51,7 @@ decrypt_message( const char *filename ) { IOBUF fp; armor_filter_context_t afx; + progress_filter_context_t pfx; int rc; int no_out=0; @@ -61,6 +62,8 @@ decrypt_message( const char *filename ) return G10ERR_OPEN_FILE; } + handle_progress (&pfx, fp, filename); + if( !opt.no_armor ) { if( use_armor_filter( fp ) ) { memset( &afx, 0, sizeof afx); @@ -84,6 +87,7 @@ decrypt_messages(int nfiles, char **files) { IOBUF fp; armor_filter_context_t afx; + progress_filter_context_t pfx; char *p, *output = NULL; int rc = 0; @@ -106,6 +110,9 @@ decrypt_messages(int nfiles, char **files) log_error(_("can't open `%s'\n"), print_fname_stdin(*files)); goto next_file; } + + handle_progress (&pfx, fp, *files); + if (!opt.no_armor) { if (use_armor_filter(fp)) |