comparison cli-service.c @ 45:9ee8996a375f

Pubkey auth is mostly there for the client. Something strange with remote hostkey verification though.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 03 Aug 2004 17:26:56 +0000
parents e2a1eaa19f22
children e3adf4cf5465
comparison
equal deleted inserted replaced
44:45edf30ea0a6 45:9ee8996a375f
29 TRACE(("enter recv_msg_service_accept")); 29 TRACE(("enter recv_msg_service_accept"));
30 30
31 servicename = buf_getstring(ses.payload, &len); 31 servicename = buf_getstring(ses.payload, &len);
32 32
33 /* ssh-userauth */ 33 /* ssh-userauth */
34 if (cli_ses.state = SERVICE_AUTH_REQ_SENT 34 if (cli_ses.state == SERVICE_AUTH_REQ_SENT
35 && len == SSH_SERVICE_USERAUTH_LEN 35 && len == SSH_SERVICE_USERAUTH_LEN
36 && strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) { 36 && strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) {
37 37
38 cli_ses.state = SERVICE_AUTH_ACCEPT_RCVD; 38 cli_ses.state = SERVICE_AUTH_ACCEPT_RCVD;
39 m_free(servicename); 39 m_free(servicename);
40 TRACE(("leave recv_msg_service_accept: done ssh-userauth")); 40 TRACE(("leave recv_msg_service_accept: done ssh-userauth"));
41 return; 41 return;
42 } 42 }
43 43
44 /* ssh-connection */ 44 /* ssh-connection */
45 if (cli_ses.state = SERVICE_CONN_REQ_SENT 45 if (cli_ses.state == SERVICE_CONN_REQ_SENT
46 && len == SSH_SERVICE_CONNECTION_LEN 46 && len == SSH_SERVICE_CONNECTION_LEN
47 && strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) { 47 && strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {
48 48
49 if (ses.authstate.authdone != 1) { 49 if (ses.authstate.authdone != 1) {
50 dropbear_exit("request for connection before auth"); 50 dropbear_exit("request for connection before auth");