comparison common-runopts.c @ 1685:b9a466b43de0

Get rid of unused "none" cipher option
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 May 2020 20:05:31 +0800
parents 750ec4ec4cbe
children f8d8af12ac14
comparison
equal deleted inserted replaced
1684:d5d25ce2a2ed 1685:b9a466b43de0
74 dropbear_log(LOG_INFO, "Available ciphers:\n%s\n", ciphers); 74 dropbear_log(LOG_INFO, "Available ciphers:\n%s\n", ciphers);
75 m_free(ciphers); 75 m_free(ciphers);
76 dropbear_exit("."); 76 dropbear_exit(".");
77 } 77 }
78 78
79 if (strcmp(opts.cipher_list, "none") == 0)
80 {
81 /* Encryption is required during authentication */
82 opts.cipher_list = "none,aes128-ctr";
83 }
84
85 if (check_user_algos(opts.cipher_list, sshciphers, "cipher") == 0) 79 if (check_user_algos(opts.cipher_list, sshciphers, "cipher") == 0)
86 { 80 {
87 dropbear_exit("No valid ciphers specified for '-c'"); 81 dropbear_exit("No valid ciphers specified for '-c'");
88 } 82 }
89 } 83 }