1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Move mainchan into its own file, like agentf.

This gets another big pile of logic out of ssh2connection and puts it
somewhere more central. Now the only thing left in ssh2connection is
the formatting and parsing of the various channel requests; the logic
deciding which ones to issue and what to do about them is devolved to
the Channel implementation, as it properly should be.
This commit is contained in:
Simon Tatham
2018-09-30 07:16:38 +01:00
parent 8db76dc3d7
commit 431f92ade9
9 changed files with 778 additions and 607 deletions

View File

@ -113,6 +113,8 @@ static const struct ConnectionLayerVtable ssh1_connlayer_vtable = {
ssh1_rportfwd_alloc,
ssh1_rportfwd_remove,
ssh1_lportfwd_open,
NULL /* session_open */,
NULL /* add_x11_display */,
NULL /* add_sharing_x11_display */,
NULL /* remove_sharing_x11_display */,
NULL /* send_packet_from_downstream */,
@ -126,6 +128,10 @@ static const struct ConnectionLayerVtable ssh1_connlayer_vtable = {
ssh1_stdin_backlog,
ssh1_throttle_all_channels,
ssh1_ldisc_option,
NULL /* set_ldisc_option */,
NULL /* enable_x_fwd */,
NULL /* enable_agent_fwd */,
NULL /* set_wants_user_input */,
};
struct ssh1_channel {