diff options
Diffstat (limited to '')
-rw-r--r-- | g10/pubkey-enc.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c index 1c52ce4de..4e02cedc4 100644 --- a/g10/pubkey-enc.c +++ b/g10/pubkey-enc.c @@ -220,19 +220,12 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid ) rc = -1; log_error("oops: public key not found for preference check\n"); } - else if( pkb->pkt->pkt.public_key->selfsigversion > 3 - && dek->algo != CIPHER_ALGO_3DES - && !is_algo_in_prefs( pkb, PREFTYPE_SYM, dek->algo ) ) { - /* Don't print a note while we are not on verbose mode, - * the cipher is blowfish and the preferences have twofish - * listed */ - if( opt.verbose || dek->algo != CIPHER_ALGO_BLOWFISH - || !is_algo_in_prefs( pkb, PREFTYPE_SYM, CIPHER_ALGO_TWOFISH)) - log_info(_( - "NOTE: cipher algorithm %d not found in preferences\n"), - dek->algo ); - } - + else if(pkb->pkt->pkt.public_key->selfsigversion > 3 + && dek->algo != CIPHER_ALGO_3DES + && !opt.quiet + && !is_algo_in_prefs( pkb, PREFTYPE_SYM, dek->algo )) + log_info(_("WARNING: cipher algorithm %s not found in recipient" + " preferences\n"),cipher_algo_to_string(dek->algo)); if (!rc) { KBNODE k; |