comparison cli-session.c @ 37:0913e2ee3545

we're nearly there yet
author Matt Johnston <matt@ucc.asn.au>
date Fri, 30 Jul 2004 03:02:19 +0000
parents 0ad5fb979f42
children 0883c0906870
comparison
equal deleted inserted replaced
36:a600c015562d 37:0913e2ee3545
35 {SSH_MSG_USERAUTH_SUCCESS, recv_msg_userauth_success}, // client 35 {SSH_MSG_USERAUTH_SUCCESS, recv_msg_userauth_success}, // client
36 {0, 0} /* End */ 36 {0, 0} /* End */
37 }; 37 };
38 38
39 static const struct ChanType *cli_chantypes[] = { 39 static const struct ChanType *cli_chantypes[] = {
40 // &clichansess,
41 /* &chan_tcpdirect etc, though need to only allow if we've requested 40 /* &chan_tcpdirect etc, though need to only allow if we've requested
42 * that forwarding */ 41 * that forwarding */
43 NULL /* Null termination */ 42 NULL /* Null termination */
44 }; 43 };
45 44
146 case USERAUTH_FAIL_RCVD: 145 case USERAUTH_FAIL_RCVD:
147 cli_auth_try(); 146 cli_auth_try();
148 TRACE(("leave cli_sessionloop: cli_auth_try")); 147 TRACE(("leave cli_sessionloop: cli_auth_try"));
149 return; 148 return;
150 149
150 /*
151 case USERAUTH_SUCCESS_RCVD:
152 send_msg_service_request(SSH_SERVICE_CONNECTION);
153 cli_ses.state = SERVICE_CONN_REQ_SENT;
154 TRACE(("leave cli_sessionloop: sent ssh-connection service req"));
155 return;
156 */
157
158 case USERAUTH_SUCCESS_RCVD:
159 cli_send_chansess_request();
160 TRACE(("leave cli_sessionloop: cli_send_chansess_request"));
161 cli_ses.state = SESSION_RUNNING;
162 return;
163
151 /* XXX more here needed */ 164 /* XXX more here needed */
152 165
153 166
154 default: 167 default:
155 break; 168 break;