aboutsummaryrefslogtreecommitdiffstats
path: root/g10/decrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/decrypt.c')
-rw-r--r--g10/decrypt.c7
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))