summaryrefslogtreecommitdiff
path: root/servconf.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-12-29 21:42:53 +0000
committerColin Watson <cjwatson@debian.org>2009-12-29 21:42:53 +0000
commit87552344215a38d3a2b0d4d63dc151e05978bbe1 (patch)
tree9f4b96055e6ccaa915e8d59d9f2805e9e119371d /servconf.h
parenta25ec0b132c44c9e341e08464ff830de06b81126 (diff)
parentef94e5613d37bcbf880f21ee6094e4b1c7683a4c (diff)
import openssh-5.1p1-gsskex-cjwatson-20080722.patch
Diffstat (limited to 'servconf.h')
-rw-r--r--servconf.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/servconf.h b/servconf.h
index 257de1c8b..bad73a510 100644
--- a/servconf.h
+++ b/servconf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.h,v 1.80 2007/02/19 10:45:58 dtucker Exp $ */ 1/* $OpenBSD: servconf.h,v 1.85 2008/06/10 04:50:25 dtucker Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -35,6 +35,10 @@
35#define PERMIT_YES 3 35#define PERMIT_YES 3
36 36
37#define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */ 37#define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */
38#define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */
39
40/* Magic name for internal sftp-server */
41#define INTERNAL_SFTP_NAME "internal-sftp"
38 42
39typedef struct { 43typedef struct {
40 u_int num_ports; 44 u_int num_ports;
@@ -100,6 +104,7 @@ typedef struct {
100 int use_login; /* If true, login(1) is used */ 104 int use_login; /* If true, login(1) is used */
101 int compression; /* If true, compression is allowed */ 105 int compression; /* If true, compression is allowed */
102 int allow_tcp_forwarding; 106 int allow_tcp_forwarding;
107 int allow_agent_forwarding;
103 u_int num_allow_users; 108 u_int num_allow_users;
104 char *allow_users[MAX_ALLOW_USERS]; 109 char *allow_users[MAX_ALLOW_USERS];
105 u_int num_deny_users; 110 u_int num_deny_users;
@@ -121,6 +126,7 @@ typedef struct {
121 int max_startups_rate; 126 int max_startups_rate;
122 int max_startups; 127 int max_startups;
123 int max_authtries; 128 int max_authtries;
129 int max_sessions;
124 char *banner; /* SSH-2 banner message */ 130 char *banner; /* SSH-2 banner message */
125 int use_dns; 131 int use_dns;
126 int client_alive_interval; /* 132 int client_alive_interval; /*
@@ -143,6 +149,8 @@ typedef struct {
143 int permit_tun; 149 int permit_tun;
144 150
145 int num_permitted_opens; 151 int num_permitted_opens;
152
153 char *chroot_directory;
146} ServerOptions; 154} ServerOptions;
147 155
148void initialize_server_options(ServerOptions *); 156void initialize_server_options(ServerOptions *);
@@ -155,5 +163,6 @@ void parse_server_config(ServerOptions *, const char *, Buffer *,
155void parse_server_match_config(ServerOptions *, const char *, const char *, 163void parse_server_match_config(ServerOptions *, const char *, const char *,
156 const char *); 164 const char *);
157void copy_set_server_options(ServerOptions *, ServerOptions *, int); 165void copy_set_server_options(ServerOptions *, ServerOptions *, int);
166void dump_config(ServerOptions *);
158 167
159#endif /* SERVCONF_H */ 168#endif /* SERVCONF_H */