diff options
author | Damien Miller <djm@mindrot.org> | 2008-05-19 08:00:08 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-05-19 08:00:08 +0200 |
commit | b1cbfa25f1618b277de670b943acb07ff5dbb1ac (patch) | |
tree | 159cc3fa99ba5c6a2b880ad216542b1262e186fa /clientloop.h | |
parent | - djm@cvs.openbsd.org 2008/05/09 04:55:56 (diff) | |
download | openssh-b1cbfa25f1618b277de670b943acb07ff5dbb1ac.tar.xz openssh-b1cbfa25f1618b277de670b943acb07ff5dbb1ac.zip |
- djm@cvs.openbsd.org 2008/05/09 14:18:44
[clientloop.c clientloop.h ssh.c mux.c]
tidy up session multiplexing code, moving it into its own file and
making the function names more consistent - making ssh.c and
clientloop.c a fair bit more readable.
ok markus@
Diffstat (limited to 'clientloop.h')
-rw-r--r-- | clientloop.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/clientloop.h b/clientloop.h index cb2d7c089..6f8e70123 100644 --- a/clientloop.h +++ b/clientloop.h @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.h,v 1.18 2008/05/08 13:06:11 djm Exp $ */ +/* $OpenBSD: clientloop.h,v 1.19 2008/05/09 14:18:44 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -58,3 +58,21 @@ int client_request_tun_fwd(int, int, int); #define SSHMUX_FLAG_SUBSYS (1<<1) /* Subsystem request on open */ #define SSHMUX_FLAG_X11_FWD (1<<2) /* Request X11 forwarding */ #define SSHMUX_FLAG_AGENT_FWD (1<<3) /* Request agent forwarding */ + +/* Multiplexing routines */ + +struct mux_session_confirm_ctx { + int want_tty; + int want_subsys; + int want_x_fwd; + int want_agent_fwd; + Buffer cmd; + char *term; + struct termios tio; + char **env; +}; + +/* mux.c */ +void muxserver_listen(void); +int muxserver_accept_control(void); +void muxclient(const char *); |