comparison svr-session.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 0ad5fb979f42
children 20563735e8b5
comparison
equal deleted inserted replaced
44:45edf30ea0a6 45:9ee8996a375f
44 static void svr_remoteclosed(); 44 static void svr_remoteclosed();
45 45
46 struct serversession svr_ses; /* GLOBAL */ 46 struct serversession svr_ses; /* GLOBAL */
47 47
48 static const packettype svr_packettypes[] = { 48 static const packettype svr_packettypes[] = {
49 /* TYPE, AUTHREQUIRED, FUNCTION */
50 {SSH_MSG_SERVICE_REQUEST, recv_msg_service_request}, // server
51 {SSH_MSG_USERAUTH_REQUEST, recv_msg_userauth_request}, //server
52 {SSH_MSG_KEXINIT, recv_msg_kexinit},
53 {SSH_MSG_KEXDH_INIT, recv_msg_kexdh_init}, // server
54 {SSH_MSG_NEWKEYS, recv_msg_newkeys},
55 {SSH_MSG_CHANNEL_DATA, recv_msg_channel_data}, 49 {SSH_MSG_CHANNEL_DATA, recv_msg_channel_data},
56 {SSH_MSG_CHANNEL_WINDOW_ADJUST, recv_msg_channel_window_adjust}, 50 {SSH_MSG_CHANNEL_WINDOW_ADJUST, recv_msg_channel_window_adjust},
51 {SSH_MSG_USERAUTH_REQUEST, recv_msg_userauth_request}, /* server */
52 {SSH_MSG_SERVICE_REQUEST, recv_msg_service_request}, /* server */
53 {SSH_MSG_KEXINIT, recv_msg_kexinit},
54 {SSH_MSG_KEXDH_INIT, recv_msg_kexdh_init}, /* server */
55 {SSH_MSG_NEWKEYS, recv_msg_newkeys},
57 {SSH_MSG_GLOBAL_REQUEST, recv_msg_global_request_remotetcp}, 56 {SSH_MSG_GLOBAL_REQUEST, recv_msg_global_request_remotetcp},
58 {SSH_MSG_CHANNEL_REQUEST, recv_msg_channel_request}, 57 {SSH_MSG_CHANNEL_REQUEST, recv_msg_channel_request},
59 {SSH_MSG_CHANNEL_OPEN, recv_msg_channel_open}, 58 {SSH_MSG_CHANNEL_OPEN, recv_msg_channel_open},
60 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof}, 59 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof},
61 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close}, 60 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close},