Removed channel_handle now unused function
Этот коммит содержится в:
родитель
804bb44eda
Коммит
b25ebf4bdb
@ -69,7 +69,6 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_fail);
|
|||||||
SSH_PACKET_CALLBACK(ssh_packet_channel_success);
|
SSH_PACKET_CALLBACK(ssh_packet_channel_success);
|
||||||
SSH_PACKET_CALLBACK(ssh_packet_channel_failure);
|
SSH_PACKET_CALLBACK(ssh_packet_channel_failure);
|
||||||
|
|
||||||
void channel_handle(ssh_session session, int type);
|
|
||||||
ssh_channel channel_new(ssh_session session);
|
ssh_channel channel_new(ssh_session session);
|
||||||
int channel_default_bufferize(ssh_channel channel, void *data, int len,
|
int channel_default_bufferize(ssh_channel channel, void *data, int len,
|
||||||
int is_stderr);
|
int is_stderr);
|
||||||
|
@ -621,32 +621,6 @@ SSH_PACKET_CALLBACK(channel_rcv_request) {
|
|||||||
return SSH_PACKET_USED;
|
return SSH_PACKET_USED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* channel_handle() is called by packet_wait(), for example when there is
|
|
||||||
* channel informations to handle.
|
|
||||||
*/
|
|
||||||
void channel_handle(ssh_session session, int type){
|
|
||||||
enter_function();
|
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_PROTOCOL, "Channel_handle(%d)", type);
|
|
||||||
|
|
||||||
switch(type) {
|
|
||||||
case SSH2_MSG_CHANNEL_WINDOW_ADJUST:
|
|
||||||
case SSH2_MSG_CHANNEL_REQUEST:
|
|
||||||
case SSH2_MSG_CHANNEL_CLOSE:
|
|
||||||
case SSH2_MSG_CHANNEL_EOF:
|
|
||||||
case SSH2_MSG_CHANNEL_DATA:
|
|
||||||
case SSH2_MSG_CHANNEL_EXTENDED_DATA:
|
|
||||||
ssh_packet_process(session, type);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ssh_log(session, SSH_LOG_FUNCTIONS,
|
|
||||||
"Unexpected message %d", type);
|
|
||||||
}
|
|
||||||
|
|
||||||
leave_function();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When data has been received from the ssh server, it can be applied to the
|
* When data has been received from the ssh server, it can be applied to the
|
||||||
* known user function, with help of the callback, or inserted here
|
* known user function, with help of the callback, or inserted here
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user