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

* g10.c (main): Accept "s1" in addition to "idea" to match the other

ciphers.

* main.h, misc.c (idea_cipher_warn): We don't need this if IDEA has been
disabled.
This commit is contained in:
David Shaw 2003-02-22 13:00:18 +00:00
parent 874fc78920
commit 6f41d06841
4 changed files with 17 additions and 1 deletions

View file

@ -1984,7 +1984,8 @@ main( int argc, char **argv )
if( def_cipher_string ) {
opt.def_cipher_algo = string_to_cipher_algo(def_cipher_string);
if(opt.def_cipher_algo==0 &&
ascii_strcasecmp(def_cipher_string,"idea")==0)
(ascii_strcasecmp(def_cipher_string,"idea")==0
|| ascii_strcasecmp(def_cipher_string,"s1")==0))
idea_cipher_warn(1);
m_free(def_cipher_string); def_cipher_string = NULL;
if( check_cipher_algo(opt.def_cipher_algo) )