mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-11 16:23:55 -05:00
Move channel-opening logic out into subroutines.
Each of the new subroutines corresponds to one of the channel types for which we know how to parse a CHANNEL_OPEN, and has a collection of parameters corresponding to the fields of that message structure. ssh2_connection_filter_queue now confines itself to parsing the message, calling one of those functions, and constructing an appropriate reply message if any.
This commit is contained in:
@ -280,6 +280,7 @@ static const struct ChannelVtable zombiechan_channelvt = {
|
||||
chan_no_exit_status,
|
||||
chan_no_exit_signal,
|
||||
chan_no_exit_signal_numeric,
|
||||
chan_no_request_response,
|
||||
};
|
||||
|
||||
Channel *zombiechan_new(void)
|
||||
@ -360,6 +361,11 @@ int chan_no_exit_signal_numeric(
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void chan_no_request_response(Channel *chan, int success)
|
||||
{
|
||||
assert(0 && "this channel type should never send a want-reply request");
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
* Common routine to marshal tty modes into an SSH packet.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user