Deleted Added
full compact
servconf.h (57430) servconf.h (57432)
1/*
2 *
3 * servconf.h
4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved
9 *
10 * Created: Mon Aug 21 15:35:03 1995 ylo
11 *
12 * Definitions for server configuration data and for the functions reading it.
13 *
1/*
2 *
3 * servconf.h
4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved
9 *
10 * Created: Mon Aug 21 15:35:03 1995 ylo
11 *
12 * Definitions for server configuration data and for the functions reading it.
13 *
14 * $FreeBSD: head/crypto/openssh/servconf.h 57432 2000-02-24 15:29:42Z markm $
14 */
15
16/* RCSID("$Id: servconf.h,v 1.15 2000/01/04 00:08:00 markus Exp $"); */
17
18#ifndef SERVCONF_H
19#define SERVCONF_H
20
21#define MAX_PORTS 256 /* Max # ports. */

--- 60 unchanged lines hidden (view full) ---

82 unsigned int num_allow_users;
83 char *allow_users[MAX_ALLOW_USERS];
84 unsigned int num_deny_users;
85 char *deny_users[MAX_DENY_USERS];
86 unsigned int num_allow_groups;
87 char *allow_groups[MAX_ALLOW_GROUPS];
88 unsigned int num_deny_groups;
89 char *deny_groups[MAX_DENY_GROUPS];
15 */
16
17/* RCSID("$Id: servconf.h,v 1.15 2000/01/04 00:08:00 markus Exp $"); */
18
19#ifndef SERVCONF_H
20#define SERVCONF_H
21
22#define MAX_PORTS 256 /* Max # ports. */

--- 60 unchanged lines hidden (view full) ---

83 unsigned int num_allow_users;
84 char *allow_users[MAX_ALLOW_USERS];
85 unsigned int num_deny_users;
86 char *deny_users[MAX_DENY_USERS];
87 unsigned int num_allow_groups;
88 char *allow_groups[MAX_ALLOW_GROUPS];
89 unsigned int num_deny_groups;
90 char *deny_groups[MAX_DENY_GROUPS];
91 unsigned int connections_per_period; /*
92 * If not 0, number of sshd
93 * connections accepted per
94 * connections_period.
95 */
96 unsigned int connections_period;
90} ServerOptions;
91/*
92 * Initializes the server options to special values that indicate that they
93 * have not yet been set.
94 */
95void initialize_server_options(ServerOptions * options);
96
97/*
98 * Reads the server configuration file. This only sets the values for those
99 * options that have the special value indicating they have not been set.
100 */
101void read_server_config(ServerOptions * options, const char *filename);
102
103/* Sets values for those values that have not yet been set. */
104void fill_default_server_options(ServerOptions * options);
105
106#endif /* SERVCONF_H */
97} ServerOptions;
98/*
99 * Initializes the server options to special values that indicate that they
100 * have not yet been set.
101 */
102void initialize_server_options(ServerOptions * options);
103
104/*
105 * Reads the server configuration file. This only sets the values for those
106 * options that have the special value indicating they have not been set.
107 */
108void read_server_config(ServerOptions * options, const char *filename);
109
110/* Sets values for those values that have not yet been set. */
111void fill_default_server_options(ServerOptions * options);
112
113#endif /* SERVCONF_H */