aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pubkey-enc.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-10-01 15:15:58 +0000
committerDavid Shaw <[email protected]>2003-10-01 15:15:58 +0000
commitb0fe35f60e48012866b5b7b01ada50ef84971ebd (patch)
treeaf0384aef505902e12542b269474695a4626ae49 /g10/pubkey-enc.c
parent* samplekeys.asc: Update 99242560. (diff)
downloadgnupg-b0fe35f60e48012866b5b7b01ada50ef84971ebd.tar.gz
gnupg-b0fe35f60e48012866b5b7b01ada50ef84971ebd.zip
* g10.c (main): Add --no-groups to zero --group list.
* encode.c (encode_simple): Allow for 32 bytes (256 bits) of symmetrically encrypted session key. Use --s2k-cipher-algo to choose cipher, rather than the default cipher. * parse-packet.c (parse_subkeyenc): Give a warning if an symmetrically encrypted session key is seen without salt. Show in --list-packets if a symetrically encrypted session key is present. * pubkey-enc.c (get_it): Always show cipher-not-in-prefs warning unless --quiet is set. Use text name of cipher in warning.
Diffstat (limited to '')
-rw-r--r--g10/pubkey-enc.c19
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;