Mercurial > dropbear
diff common-runopts.c @ 713:e22d5f5f6e37
Fix "-c none" so that it allows aes during authentication
Default for options.h shouldn't allow "none"
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 20 Mar 2013 23:52:49 +0800 |
parents | 167fdc091c05 |
children | d4ce5269a439 |
line wrap: on
line diff
--- a/common-runopts.c Wed Mar 20 23:13:45 2013 +0800 +++ b/common-runopts.c Wed Mar 20 23:52:49 2013 +0800 @@ -75,6 +75,12 @@ dropbear_exit("."); } + if (strcmp(opts.cipher_list, "none") == 0) + { + /* Encryption is required during authentication */ + opts.cipher_list = "none,aes128-ctr"; + } + if (check_user_algos(opts.cipher_list, sshciphers, "cipher") == 0) { dropbear_exit("No valid ciphers specified for '-c'");