diff options
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/channels.h b/channels.h index 4745b9a7d..a000c98e5 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.h,v 1.114 2014/06/27 16:41:56 markus Exp $ */ | 1 | /* $OpenBSD: channels.h,v 1.115 2014/07/15 15:54:14 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -56,7 +56,9 @@ | |||
56 | #define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */ | 56 | #define SSH_CHANNEL_MUX_LISTENER 15 /* Listener for mux conn. */ |
57 | #define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ | 57 | #define SSH_CHANNEL_MUX_CLIENT 16 /* Conn. to mux slave */ |
58 | #define SSH_CHANNEL_ABANDONED 17 /* Abandoned session, eg mux */ | 58 | #define SSH_CHANNEL_ABANDONED 17 /* Abandoned session, eg mux */ |
59 | #define SSH_CHANNEL_MAX_TYPE 18 | 59 | #define SSH_CHANNEL_UNIX_LISTENER 18 /* Listening on a domain socket. */ |
60 | #define SSH_CHANNEL_RUNIX_LISTENER 19 /* Listening to a R-style domain socket. */ | ||
61 | #define SSH_CHANNEL_MAX_TYPE 20 | ||
60 | 62 | ||
61 | #define CHANNEL_CANCEL_PORT_STATIC -1 | 63 | #define CHANNEL_CANCEL_PORT_STATIC -1 |
62 | 64 | ||
@@ -254,6 +256,8 @@ char *channel_open_message(void); | |||
254 | int channel_find_open(void); | 256 | int channel_find_open(void); |
255 | 257 | ||
256 | /* tcp forwarding */ | 258 | /* tcp forwarding */ |
259 | struct Forward; | ||
260 | struct ForwardOptions; | ||
257 | void channel_set_af(int af); | 261 | void channel_set_af(int af); |
258 | void channel_permit_all_opens(void); | 262 | void channel_permit_all_opens(void); |
259 | void channel_add_permitted_opens(char *, int); | 263 | void channel_add_permitted_opens(char *, int); |
@@ -263,19 +267,19 @@ void channel_update_permitted_opens(int, int); | |||
263 | void channel_clear_permitted_opens(void); | 267 | void channel_clear_permitted_opens(void); |
264 | void channel_clear_adm_permitted_opens(void); | 268 | void channel_clear_adm_permitted_opens(void); |
265 | void channel_print_adm_permitted_opens(void); | 269 | void channel_print_adm_permitted_opens(void); |
266 | int channel_input_port_forward_request(int, int); | 270 | int channel_input_port_forward_request(int, struct ForwardOptions *); |
267 | Channel *channel_connect_to(const char *, u_short, char *, char *); | 271 | Channel *channel_connect_to_port(const char *, u_short, char *, char *); |
272 | Channel *channel_connect_to_path(const char *, char *, char *); | ||
268 | Channel *channel_connect_stdio_fwd(const char*, u_short, int, int); | 273 | Channel *channel_connect_stdio_fwd(const char*, u_short, int, int); |
269 | Channel *channel_connect_by_listen_address(const char *, u_short, | 274 | Channel *channel_connect_by_listen_address(const char *, u_short, |
270 | char *, char *); | 275 | char *, char *); |
271 | int channel_request_remote_forwarding(const char *, u_short, | 276 | Channel *channel_connect_by_listen_path(const char *, char *, char *); |
272 | const char *, u_short); | 277 | int channel_request_remote_forwarding(struct Forward *); |
273 | int channel_setup_local_fwd_listener(const char *, u_short, | 278 | int channel_setup_local_fwd_listener(struct Forward *, struct ForwardOptions *); |
274 | const char *, u_short, int); | 279 | int channel_request_rforward_cancel(struct Forward *); |
275 | int channel_request_rforward_cancel(const char *host, u_short port); | 280 | int channel_setup_remote_fwd_listener(struct Forward *, int *, struct ForwardOptions *); |
276 | int channel_setup_remote_fwd_listener(const char *, u_short, int *, int); | 281 | int channel_cancel_rport_listener(struct Forward *); |
277 | int channel_cancel_rport_listener(const char *, u_short); | 282 | int channel_cancel_lport_listener(struct Forward *, int, struct ForwardOptions *); |
278 | int channel_cancel_lport_listener(const char *, u_short, int, int); | ||
279 | int permitopen_port(const char *); | 283 | int permitopen_port(const char *); |
280 | 284 | ||
281 | /* x11 forwarding */ | 285 | /* x11 forwarding */ |