comparison cli-session.c @ 1479:38c6bcbf4f4a

missed saving a file removing none cipher
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 23:58:13 +0800
parents e8f67918fdc9
children 0c16b4ccbd54
comparison
equal deleted inserted replaced
1477:533e070b3126 1479:38c6bcbf4f4a
163 163
164 /* Auth */ 164 /* Auth */
165 cli_ses.lastprivkey = NULL; 165 cli_ses.lastprivkey = NULL;
166 cli_ses.lastauthtype = 0; 166 cli_ses.lastauthtype = 0;
167 167
168 #if DROPBEAR_NONE_CIPHER
169 cli_ses.cipher_none_after_auth = get_algo_usable(sshciphers, "none");
170 set_algo_usable(sshciphers, "none", 0);
171 #else
172 cli_ses.cipher_none_after_auth = 0;
173 #endif
174
175 /* For printing "remote host closed" for the user */ 168 /* For printing "remote host closed" for the user */
176 ses.remoteclosed = cli_remoteclosed; 169 ses.remoteclosed = cli_remoteclosed;
177 170
178 ses.extra_session_cleanup = cli_session_cleanup; 171 ses.extra_session_cleanup = cli_session_cleanup;
179 172
270 263
271 case USERAUTH_SUCCESS_RCVD: 264 case USERAUTH_SUCCESS_RCVD:
272 #ifndef DISABLE_SYSLOG 265 #ifndef DISABLE_SYSLOG
273 if (opts.usingsyslog) { 266 if (opts.usingsyslog) {
274 dropbear_log(LOG_INFO, "Authentication succeeded."); 267 dropbear_log(LOG_INFO, "Authentication succeeded.");
275 }
276 #endif
277
278 #if DROPBEAR_NONE_CIPHER
279 if (cli_ses.cipher_none_after_auth)
280 {
281 set_algo_usable(sshciphers, "none", 1);
282 send_msg_kexinit();
283 } 268 }
284 #endif 269 #endif
285 270
286 if (cli_opts.backgrounded) { 271 if (cli_opts.backgrounded) {
287 int devnull; 272 int devnull;