version 1.49, 2001/08/17 18:59:47 |
version 1.49.2.3, 2002/06/22 07:23:17 |
|
|
|
/* $OpenBSD$ */ |
|
|
/* |
/* |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
|
|
* called by a name other than "ssh" or "Secure Shell". |
* called by a name other than "ssh" or "Secure Shell". |
*/ |
*/ |
|
|
/* RCSID("$OpenBSD$"); */ |
|
|
|
#ifndef SERVCONF_H |
#ifndef SERVCONF_H |
#define SERVCONF_H |
#define SERVCONF_H |
|
|
|
|
int x11_forwarding; /* If true, permit inet (spoofing) X11 fwd. */ |
int x11_forwarding; /* If true, permit inet (spoofing) X11 fwd. */ |
int x11_display_offset; /* What DISPLAY number to start |
int x11_display_offset; /* What DISPLAY number to start |
* searching at */ |
* searching at */ |
|
int x11_use_localhost; /* If true, use localhost for fake X11 server. */ |
char *xauth_location; /* Location of xauth program */ |
char *xauth_location; /* Location of xauth program */ |
int strict_modes; /* If true, require string home dir modes. */ |
int strict_modes; /* If true, require string home dir modes. */ |
int keepalives; /* If true, set SO_KEEPALIVE. */ |
int keepalives; /* If true, set SO_KEEPALIVE. */ |
|
|
int permit_empty_passwd; /* If false, do not permit empty |
int permit_empty_passwd; /* If false, do not permit empty |
* passwords. */ |
* passwords. */ |
int use_login; /* If true, login(1) is used */ |
int use_login; /* If true, login(1) is used */ |
|
int compression; /* If true, compression is allowed */ |
int allow_tcp_forwarding; |
int allow_tcp_forwarding; |
u_int num_allow_users; |
u_int num_allow_users; |
char *allow_users[MAX_ALLOW_USERS]; |
char *allow_users[MAX_ALLOW_USERS]; |
|
|
int max_startups_rate; |
int max_startups_rate; |
int max_startups; |
int max_startups; |
char *banner; /* SSH-2 banner message */ |
char *banner; /* SSH-2 banner message */ |
int reverse_mapping_check; /* cross-check ip and dns */ |
int verify_reverse_mapping; /* cross-check ip and dns */ |
int client_alive_interval; /* |
int client_alive_interval; /* |
* poke the client this often to |
* poke the client this often to |
* see if it's still there |
* see if it's still there |
*/ |
*/ |
int client_alive_count_max; /* |
int client_alive_count_max; /* |
* If the client is unresponsive |
* If the client is unresponsive |
* for this many intervals above, |
* for this many intervals above, |
* disconnect the session |
* disconnect the session |
*/ |
*/ |
|
|
char *authorized_keys_file; /* File containing public keys */ |
char *authorized_keys_file; /* File containing public keys */ |
char *authorized_keys_file2; |
char *authorized_keys_file2; |
|
|
} ServerOptions; |
} ServerOptions; |
|
|
void initialize_server_options(ServerOptions *); |
void initialize_server_options(ServerOptions *); |
void read_server_config(ServerOptions *, const char *); |
void read_server_config(ServerOptions *, const char *); |
void fill_default_server_options(ServerOptions *); |
void fill_default_server_options(ServerOptions *); |
|
int process_server_config_line(ServerOptions *, char *, const char *, int); |
|
|
|
|
#endif /* SERVCONF_H */ |
#endif /* SERVCONF_H */ |