summaryrefslogtreecommitdiff
path: root/servconf.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-12-03 09:50:54 +1100
committerDamien Miller <djm@mindrot.org>2012-12-03 09:50:54 +1100
commitaa5b3f831417bac9538d2b6f21d55fef278e8926 (patch)
treedfaa5a58efa8195f1f72761fb9e2ba4fad7021b4 /servconf.h
parent33a813613a9f48acba0e88f4c51a6a25259bbebc (diff)
- djm@cvs.openbsd.org 2012/12/02 20:46:11
[auth-options.c channels.c servconf.c servconf.h serverloop.c session.c] [sshd_config.5] make AllowTcpForwarding accept "local" and "remote" in addition to its current "yes"/"no" to allow the server to specify whether just local or remote TCP forwarding is enabled. ok markus@
Diffstat (limited to 'servconf.h')
-rw-r--r--servconf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/servconf.h b/servconf.h
index 68fcdb764..a23ef7f3a 100644
--- a/servconf.h
+++ b/servconf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.h,v 1.105 2012/11/04 11:09:15 djm Exp $ */ 1/* $OpenBSD: servconf.h,v 1.106 2012/12/02 20:46:11 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -42,6 +42,12 @@
42#define PRIVSEP_ON 1 42#define PRIVSEP_ON 1
43#define PRIVSEP_NOSANDBOX 2 43#define PRIVSEP_NOSANDBOX 2
44 44
45/* AllowTCPForwarding */
46#define FORWARD_DENY 0
47#define FORWARD_REMOTE (1)
48#define FORWARD_LOCAL (1<<1)
49#define FORWARD_ALLOW (FORWARD_REMOTE|FORWARD_LOCAL)
50
45#define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */ 51#define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */
46#define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */ 52#define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */
47 53
@@ -116,7 +122,7 @@ typedef struct {
116 int permit_user_env; /* If true, read ~/.ssh/environment */ 122 int permit_user_env; /* If true, read ~/.ssh/environment */
117 int use_login; /* If true, login(1) is used */ 123 int use_login; /* If true, login(1) is used */
118 int compression; /* If true, compression is allowed */ 124 int compression; /* If true, compression is allowed */
119 int allow_tcp_forwarding; 125 int allow_tcp_forwarding; /* One of FORWARD_* */
120 int allow_agent_forwarding; 126 int allow_agent_forwarding;
121 u_int num_allow_users; 127 u_int num_allow_users;
122 char *allow_users[MAX_ALLOW_USERS]; 128 char *allow_users[MAX_ALLOW_USERS];