comparison 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
comparison
equal deleted inserted replaced
712:bf0ac0512ef7 713:e22d5f5f6e37
73 dropbear_log(LOG_INFO, "Available ciphers:\n%s\n", ciphers); 73 dropbear_log(LOG_INFO, "Available ciphers:\n%s\n", ciphers);
74 m_free(ciphers); 74 m_free(ciphers);
75 dropbear_exit("."); 75 dropbear_exit(".");
76 } 76 }
77 77
78 if (strcmp(opts.cipher_list, "none") == 0)
79 {
80 /* Encryption is required during authentication */
81 opts.cipher_list = "none,aes128-ctr";
82 }
83
78 if (check_user_algos(opts.cipher_list, sshciphers, "cipher") == 0) 84 if (check_user_algos(opts.cipher_list, sshciphers, "cipher") == 0)
79 { 85 {
80 dropbear_exit("No valid ciphers specified for '-c'"); 86 dropbear_exit("No valid ciphers specified for '-c'");
81 } 87 }
82 } 88 }