summaryrefslogtreecommitdiff
path: root/servconf.h
diff options
context:
space:
mode:
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 be42e9f60..cb91b7629 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;
@@ -101,6 +105,7 @@ typedef struct {
101 int use_login; /* If true, login(1) is used */ 105 int use_login; /* If true, login(1) is used */
102 int compression; /* If true, compression is allowed */ 106 int compression; /* If true, compression is allowed */
103 int allow_tcp_forwarding; 107 int allow_tcp_forwarding;
108 int allow_agent_forwarding;
104 u_int num_allow_users; 109 u_int num_allow_users;
105 char *allow_users[MAX_ALLOW_USERS]; 110 char *allow_users[MAX_ALLOW_USERS];
106 u_int num_deny_users; 111 u_int num_deny_users;
@@ -122,6 +127,7 @@ typedef struct {
122 int max_startups_rate; 127 int max_startups_rate;
123 int max_startups; 128 int max_startups;
124 int max_authtries; 129 int max_authtries;
130 int max_sessions;
125 char *banner; /* SSH-2 banner message */ 131 char *banner; /* SSH-2 banner message */
126 int use_dns; 132 int use_dns;
127 int client_alive_interval; /* 133 int client_alive_interval; /*
@@ -144,6 +150,8 @@ typedef struct {
144 int permit_tun; 150 int permit_tun;
145 151
146 int num_permitted_opens; 152 int num_permitted_opens;
153
154 char *chroot_directory;
147} ServerOptions; 155} ServerOptions;
148 156
149void initialize_server_options(ServerOptions *); 157void initialize_server_options(ServerOptions *);
@@ -156,5 +164,6 @@ void parse_server_config(ServerOptions *, const char *, Buffer *,
156void parse_server_match_config(ServerOptions *, const char *, const char *, 164void parse_server_match_config(ServerOptions *, const char *, const char *,
157 const char *); 165 const char *);
158void copy_set_server_options(ServerOptions *, ServerOptions *, int); 166void copy_set_server_options(ServerOptions *, ServerOptions *, int);
167void dump_config(ServerOptions *);
159 168
160#endif /* SERVCONF_H */ 169#endif /* SERVCONF_H */