comparison svr-session.c @ 156:8c2b3506f112

Rearrange preprocessor parts so that compilation with various options disabled works OK.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 22 Dec 2004 15:37:50 +0000
parents 297167ef41bd
children 364a75cfebab
comparison
equal deleted inserted replaced
153:6ba95762ec4e 156:8c2b3506f112
50 {SSH_MSG_USERAUTH_REQUEST, recv_msg_userauth_request}, /* server */ 50 {SSH_MSG_USERAUTH_REQUEST, recv_msg_userauth_request}, /* server */
51 {SSH_MSG_SERVICE_REQUEST, recv_msg_service_request}, /* server */ 51 {SSH_MSG_SERVICE_REQUEST, recv_msg_service_request}, /* server */
52 {SSH_MSG_KEXINIT, recv_msg_kexinit}, 52 {SSH_MSG_KEXINIT, recv_msg_kexinit},
53 {SSH_MSG_KEXDH_INIT, recv_msg_kexdh_init}, /* server */ 53 {SSH_MSG_KEXDH_INIT, recv_msg_kexdh_init}, /* server */
54 {SSH_MSG_NEWKEYS, recv_msg_newkeys}, 54 {SSH_MSG_NEWKEYS, recv_msg_newkeys},
55 #ifdef ENABLE_SVR_REMOTETCPFWD
55 {SSH_MSG_GLOBAL_REQUEST, recv_msg_global_request_remotetcp}, 56 {SSH_MSG_GLOBAL_REQUEST, recv_msg_global_request_remotetcp},
57 #endif
56 {SSH_MSG_CHANNEL_REQUEST, recv_msg_channel_request}, 58 {SSH_MSG_CHANNEL_REQUEST, recv_msg_channel_request},
57 {SSH_MSG_CHANNEL_OPEN, recv_msg_channel_open}, 59 {SSH_MSG_CHANNEL_OPEN, recv_msg_channel_open},
58 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof}, 60 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof},
59 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close}, 61 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close},
62 #ifdef USING_LISTENERS
60 {SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation}, 63 {SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation},
61 {SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure}, 64 {SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure},
65 #endif
62 {0, 0} /* End */ 66 {0, 0} /* End */
63 }; 67 };
64 68
65 static const struct ChanType *svr_chantypes[] = { 69 static const struct ChanType *svr_chantypes[] = {
66 &svrchansess, 70 &svrchansess,
71 #ifdef ENABLE_SVR_LOCALTCPFWD
67 &svr_chan_tcpdirect, 72 &svr_chan_tcpdirect,
73 #endif
68 NULL /* Null termination is mandatory. */ 74 NULL /* Null termination is mandatory. */
69 }; 75 };
70 76
71 void svr_session(int sock, int childpipe, char* remotehost) { 77 void svr_session(int sock, int childpipe, char* remotehost) {
72 78