mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 20:42:48 -05:00
Defer passing a ConnectionLayer to sshshare.c.
This paves the way for me to reorganise ssh.c in a way that will mean I don't have a ConnectionLayer available yet at the time I have to create the connshare. The constructor function now takes a mere Frontend, for generating setup-time Event Log messages, and there's a separate ssh_connshare_provide_connlayer() function I can call later once I have the ConnectionLayer to provide. NFC for the moment: the new provide_connlayer function is called immediately after ssh_connection_sharing_init.
This commit is contained in:
4
ssh.h
4
ssh.h
@ -160,8 +160,10 @@ PktOut *ssh_new_packet(void);
|
||||
void ssh_free_pktout(PktOut *pkt);
|
||||
|
||||
extern Socket ssh_connection_sharing_init(
|
||||
const char *host, int port, Conf *conf, ConnectionLayer *cl,
|
||||
const char *host, int port, Conf *conf, Frontend *frontend,
|
||||
Plug sshplug, ssh_sharing_state **state);
|
||||
void ssh_connshare_provide_connlayer(ssh_sharing_state *sharestate,
|
||||
ConnectionLayer *cl);
|
||||
int ssh_share_test_for_upstream(const char *host, int port, Conf *conf);
|
||||
void share_got_pkt_from_server(ssh_sharing_connstate *ctx, int type,
|
||||
const void *pkt, int pktlen);
|
||||
|
Reference in New Issue
Block a user