comparison cli-session.c @ 35:0ad5fb979f42

set the isserver flag (oops) fix password auth for the server
author Matt Johnston <matt@ucc.asn.au>
date Thu, 29 Jul 2004 02:19:03 +0000
parents e2a1eaa19f22
children 0913e2ee3545
comparison
equal deleted inserted replaced
34:e2a1eaa19f22 35:0ad5fb979f42
81 ses.remoteclosed = cli_remoteclosed; 81 ses.remoteclosed = cli_remoteclosed;
82 ses.buf_match_algo = cli_buf_match_algo; 82 ses.buf_match_algo = cli_buf_match_algo;
83 83
84 /* packet handlers */ 84 /* packet handlers */
85 ses.packettypes = cli_packettypes; 85 ses.packettypes = cli_packettypes;
86
87 ses.isserver = 0;
86 } 88 }
87 89
88 /* This function drives the progress of the session - it initiates KEX, 90 /* This function drives the progress of the session - it initiates KEX,
89 * service, userauth and channel requests */ 91 * service, userauth and channel requests */
90 static void cli_sessionloop() { 92 static void cli_sessionloop() {
134 TRACE(("leave cli_sessionloop: sent userauth service req")); 136 TRACE(("leave cli_sessionloop: sent userauth service req"));
135 return; 137 return;
136 138
137 /* userauth code */ 139 /* userauth code */
138 case SERVICE_AUTH_ACCEPT_RCVD: 140 case SERVICE_AUTH_ACCEPT_RCVD:
139 cli_get_user();
140 cli_auth_getmethods(); 141 cli_auth_getmethods();
141 cli_ses.state = USERAUTH_METHODS_SENT; 142 cli_ses.state = USERAUTH_METHODS_SENT;
142 TRACE(("leave cli_sessionloop: sent userauth methods req")); 143 TRACE(("leave cli_sessionloop: sent userauth methods req"));
143 return; 144 return;
144 145