aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-01-07 15:30:02 +0000
committerDavid Shaw <[email protected]>2003-01-07 15:30:02 +0000
commit254225ac37526988478d2d3388a95d81e554d52c (patch)
treeabf4805665c2349c53b14294a816b73d7ae8bd8a
parent* trustdb.c (get_validity_info): 'd' for disabled is not a validity value (diff)
downloadgnupg-254225ac37526988478d2d3388a95d81e554d52c.tar.gz
gnupg-254225ac37526988478d2d3388a95d81e554d52c.zip
* keygen.c (keygen_set_std_prefs): Warn when setting an IDEA preference
when IDEA is not available.
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keygen.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 28d8bec77..f1c56382f 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-07 David Shaw <[email protected]>
+
+ * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA
+ preference when IDEA is not available.
+
2003-01-06 David Shaw <[email protected]>
* trustdb.c (get_validity_info): 'd' for disabled is not a
diff --git a/g10/keygen.c b/g10/keygen.c
index c1a6ee540..ccaa4adce 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -240,7 +240,7 @@ keygen_set_std_prefs (const char *string,int personal)
<=2048 bits, as that is what won't break PGP2, but that is
difficult with the current code, and not really worth
checking as a non-RSA <=2048 bit key wouldn't be usable by
- PGP2 anyway -dms */
+ PGP2 anyway. -dms */
}
else if (!ascii_strcasecmp (string, "none"))
string = "";
@@ -275,6 +275,12 @@ keygen_set_std_prefs (const char *string,int personal)
else
{
log_info (_("invalid item `%s' in preference string\n"),tok);
+
+ /* Complain if IDEA is not available. */
+ if(ascii_strcasecmp(tok,"s1")==0
+ || ascii_strcasecmp(tok,"idea")==0)
+ idea_cipher_warn(1);
+
rc=-1;
}
}