Mercurial > dropbear
diff cli-main.c @ 1027:daf21fd50abf fastopen
In theory TFO should work. Needs platform cleanup and testing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 19 Feb 2015 00:32:00 +0800 |
parents | 02baa0b334e8 |
children | 0da8ba489c23 |
line wrap: on
line diff
--- a/cli-main.c Wed Feb 18 23:02:49 2015 +0800 +++ b/cli-main.c Thu Feb 19 00:32:00 2015 +0800 @@ -47,6 +47,7 @@ int sock_in, sock_out; char* error = NULL; + struct dropbear_progress_connection *progress = NULL; _dropbear_exit = cli_dropbear_exit; _dropbear_log = cli_dropbear_log; @@ -72,11 +73,11 @@ } else #endif { - connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL); + progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL); sock_in = sock_out = -1; } - cli_session(sock_in, sock_out); + cli_session(sock_in, sock_out, progress); /* not reached */ return -1;