diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-19 00:32:00 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-19 00:32:00 +0800 |
commit | 76a3eb393c021905736f79e7e048017f664b2430 (patch) | |
tree | 3a45ae901e4806496aef7b3dde3680dedd03326c /cli-session.c | |
parent | 5f0cc969a005757778848a459f924a237a35fc7d (diff) |
In theory TFO should work. Needs platform cleanup and testing
--HG--
branch : fastopen
Diffstat (limited to 'cli-session.c')
-rw-r--r-- | cli-session.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli-session.c b/cli-session.c index a5ae728..c2e4863 100644 --- a/cli-session.c +++ b/cli-session.c @@ -102,15 +102,20 @@ void cli_connected(int result, int sock, void* userdata, const char *errstring) ses.sock_in = ses.sock_out = sock; } -void cli_session(int sock_in, int sock_out) { +void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) { common_session_init(sock_in, sock_out); + if (progress) { + connect_set_writequeue(progress, &ses.writequeue); + } + chaninitialise(cli_chantypes); /* Set up cli_ses vars */ cli_session_init(); + /* Ready to go */ sessinitdone = 1; |