1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Add a generic IDEA warning for when the IDEA plugin is not present. This

pops up when the user uses "--cipher-algo idea", when setpref is used to
set a "S1" preference, and when a secret key protected with IDEA is used.

Tweak the --pgp2 mode to use this generic warning.
This commit is contained in:
David Shaw 2001-12-17 21:45:40 +00:00
parent f1262d5742
commit 30481e5a17
7 changed files with 97 additions and 38 deletions

View file

@ -177,6 +177,8 @@ set_one_pref (ulong val, int type, int (*cf)(int), byte *buf, int *nbuf)
if (cf (val)) {
log_info (_("preference %c%lu is not valid\n"), type, val);
if(type=='S' && val==CIPHER_ALGO_IDEA)
idea_cipher_warn();
return -1;
}
for (i=0; i < *nbuf; i++ ) {