comparison svr-service.c @ 33:f789045062e6

Progressing client support
author Matt Johnston <matt@ucc.asn.au>
date Tue, 27 Jul 2004 16:30:46 +0000
parents c1e5d9195402
children 0cfba3034be5
comparison
equal deleted inserted replaced
32:8fd0cdbb5b1b 33:f789045062e6
54 } 54 }
55 55
56 /* ssh-connection */ 56 /* ssh-connection */
57 if (len == SSH_SERVICE_CONNECTION_LEN && 57 if (len == SSH_SERVICE_CONNECTION_LEN &&
58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) { 58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) {
59 if (ses.authdone != 1) { 59 if (ses.authstate.authdone != 1) {
60 dropbear_exit("request for connection before auth"); 60 dropbear_exit("request for connection before auth");
61 } 61 }
62 62
63 send_msg_service_accept(name, len); 63 send_msg_service_accept(name, len);
64 m_free(name); 64 m_free(name);
68 68
69 m_free(name); 69 m_free(name);
70 /* TODO this should be a MSG_DISCONNECT */ 70 /* TODO this should be a MSG_DISCONNECT */
71 dropbear_exit("unrecognised SSH_MSG_SERVICE_REQUEST"); 71 dropbear_exit("unrecognised SSH_MSG_SERVICE_REQUEST");
72 72
73 TRACE(("leave recv_msg_service_request"));
74 73
75 } 74 }
76 75
77 static void send_msg_service_accept(unsigned char *name, int len) { 76 static void send_msg_service_accept(unsigned char *name, int len) {
78 77