1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -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:
Simon Tatham
2018-09-26 18:02:33 +01:00
parent 2339efcd83
commit d1cd8b2591
8 changed files with 695 additions and 489 deletions

View File

@ -130,6 +130,7 @@ int chan_no_exit_signal(Channel *ch, ptrlen s, int c, ptrlen m)
{ return FALSE; }
int chan_no_exit_signal_numeric(Channel *ch, int s, int c, ptrlen m)
{ return FALSE; }
void chan_no_request_response(Channel *chan, int success) {}
/*
* These functions are part of the plug for our connection to the X