diff options
author | Colin Watson <cjwatson@debian.org> | 2018-08-24 12:49:36 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-08-30 00:57:27 +0100 |
commit | 816386e17654ca36834bebbf351419e460fad8f6 (patch) | |
tree | 3dc79d831cb73bc25b92f5a4d18f8e328c0c570a /channels.h | |
parent | 3e6f76c7039d3df22b1d0a3a5f30150efb09b69d (diff) | |
parent | 16a47fc4b04977a14f44dd433c8da1499fa80671 (diff) |
New upstream release (7.8p1)
Closes: #907534
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/channels.h b/channels.h index 126b04345..1aeafe94e 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.h,v 1.130 2017/09/21 19:16:53 markus Exp $ */ | 1 | /* $OpenBSD: channels.h,v 1.131 2018/06/06 18:22:41 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -63,6 +63,15 @@ | |||
63 | 63 | ||
64 | #define CHANNEL_CANCEL_PORT_STATIC -1 | 64 | #define CHANNEL_CANCEL_PORT_STATIC -1 |
65 | 65 | ||
66 | /* TCP forwarding */ | ||
67 | #define FORWARD_DENY 0 | ||
68 | #define FORWARD_REMOTE (1) | ||
69 | #define FORWARD_LOCAL (1<<1) | ||
70 | #define FORWARD_ALLOW (FORWARD_REMOTE|FORWARD_LOCAL) | ||
71 | |||
72 | #define FORWARD_ADM 0x100 | ||
73 | #define FORWARD_USER 0x101 | ||
74 | |||
66 | struct ssh; | 75 | struct ssh; |
67 | struct Channel; | 76 | struct Channel; |
68 | typedef struct Channel Channel; | 77 | typedef struct Channel Channel; |
@@ -283,16 +292,11 @@ int channel_find_open(struct ssh *); | |||
283 | struct Forward; | 292 | struct Forward; |
284 | struct ForwardOptions; | 293 | struct ForwardOptions; |
285 | void channel_set_af(struct ssh *, int af); | 294 | void channel_set_af(struct ssh *, int af); |
286 | void channel_permit_all_opens(struct ssh *); | 295 | void channel_permit_all(struct ssh *, int); |
287 | void channel_add_permitted_opens(struct ssh *, char *, int); | 296 | void channel_add_permission(struct ssh *, int, int, char *, int); |
288 | int channel_add_adm_permitted_opens(struct ssh *, char *, int); | 297 | void channel_clear_permission(struct ssh *, int, int); |
289 | void channel_copy_adm_permitted_opens(struct ssh *, | 298 | void channel_disable_admin(struct ssh *, int); |
290 | const struct fwd_perm_list *); | 299 | void channel_update_permission(struct ssh *, int, int); |
291 | void channel_disable_adm_local_opens(struct ssh *); | ||
292 | void channel_update_permitted_opens(struct ssh *, int, int); | ||
293 | void channel_clear_permitted_opens(struct ssh *); | ||
294 | void channel_clear_adm_permitted_opens(struct ssh *); | ||
295 | void channel_print_adm_permitted_opens(struct ssh *); | ||
296 | Channel *channel_connect_to_port(struct ssh *, const char *, u_short, | 300 | Channel *channel_connect_to_port(struct ssh *, const char *, u_short, |
297 | char *, char *, int *, const char **); | 301 | char *, char *, int *, const char **); |
298 | Channel *channel_connect_to_path(struct ssh *, const char *, char *, char *); | 302 | Channel *channel_connect_to_path(struct ssh *, const char *, char *, char *); |