diff options
author | Werner Koch <[email protected]> | 1999-05-23 12:29:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-05-23 12:29:05 +0000 |
commit | c7447e78e2abb1298fecb9861fe420109c91f14f (patch) | |
tree | b7a7954789898fc3cac24f43cbd0d32ec139f9f2 /g10/pkclist.c | |
parent | See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch (diff) | |
download | gnupg-c7447e78e2abb1298fecb9861fe420109c91f14f.tar.gz gnupg-c7447e78e2abb1298fecb9861fe420109c91f14f.zip |
See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner Koch
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r-- | g10/pkclist.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index f873be404..a170a3dd3 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -428,6 +428,13 @@ check_signatures_trust( PKT_signature *sig ) int did_add = 0; int rc=0; + + if( opt.always_trust ) { + log_info(_("WARNING: Using untrusted key!\n")); + return 0; + } + + rc = get_pubkey( pk, sig->keyid ); if( rc ) { /* this should not happen */ log_error("Ooops; the key vanished - can't check the trust\n"); @@ -686,6 +693,8 @@ static int algo_available( int preftype, int algo ) { if( preftype == PREFTYPE_SYM ) { + if( algo == CIPHER_ALGO_TWOFISH ) + return 0; /* we don't want to generate Twofish messages for now*/ return algo && !check_cipher_algo( algo ); } else if( preftype == PREFTYPE_HASH ) { |