aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/seckey-cert.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index c98824291..dd2466a68 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-02 Timo Schulz <[email protected]>
+
+ * seckey-cert.c (do_check): Issue the RSA_OR_IDEA status when
+ the cipher algo is IDEA to make it easier to track down the problem.
+
2003-02-26 David Shaw <[email protected]>
* trustdb.c (validate_keys): Mask the ownertrust when building the
diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c
index d19ac683a..f58a7b70a 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -58,8 +58,11 @@ do_check( PKT_secret_key *sk, const char *tryagain_text )
if( check_cipher_algo( sk->protect.algo ) ) {
log_info(_("protection algorithm %d%s is not supported\n"),
sk->protect.algo,sk->protect.algo==1?" (IDEA)":"" );
- if(sk->protect.algo==CIPHER_ALGO_IDEA)
- idea_cipher_warn(0);
+ if (sk->protect.algo==CIPHER_ALGO_IDEA)
+ {
+ write_status (STATUS_RSA_OR_IDEA);
+ idea_cipher_warn (0);
+ }
return G10ERR_CIPHER_ALGO;
}
keyid_from_sk( sk, keyid );