aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encr-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encr-data.c')
-rw-r--r--g10/encr-data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/encr-data.c b/g10/encr-data.c
index ee8c188fc..e2752bf36 100644
--- a/g10/encr-data.c
+++ b/g10/encr-data.c
@@ -60,12 +60,13 @@ decrypt_data( void *procctx, PKT_encrypted *ed, DEK *dek )
unsigned nprefix;
memset( &dfx, 0, sizeof dfx );
- if( opt.verbose ) {
+ if( opt.verbose && !dek->algo_info_printed ) {
const char *s = cipher_algo_to_string( dek->algo );
if( s )
log_info(_("%s encrypted data\n"), s );
else
log_info(_("encrypted with unknown algorithm %d\n"), dek->algo );
+ dek->algo_info_printed = 1;
}
if( (rc=check_cipher_algo(dek->algo)) )
goto leave;