Annotation of src/usr.bin/ssh/servconf.h, Revision 1.5
1.1 deraadt 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: */
15:
1.5 ! markus 16: /* RCSID("$Id: servconf.h,v 1.4 1999/10/01 02:38:09 provos Exp $"); */
1.1 deraadt 17:
18: #ifndef SERVCONF_H
19: #define SERVCONF_H
20:
21: #define MAX_ALLOW_HOSTS 256 /* Max # hosts on allow list. */
22: #define MAX_DENY_HOSTS 256 /* Max # hosts on deny list. */
23:
24: typedef struct
25: {
26: int port; /* Port number to listen on. */
27: struct in_addr listen_addr; /* Address on which the server listens. */
28: char *host_key_file; /* File containing host key. */
29: int server_key_bits; /* Size of the server key. */
30: int login_grace_time; /* Disconnect if no auth in this time (sec). */
31: int key_regeneration_time; /* Server key lifetime (seconds). */
32: int permit_root_login; /* If true, permit root login. */
33: int ignore_rhosts; /* Ignore .rhosts and .shosts. */
34: int quiet_mode; /* If true, don't log anything but fatals. */
35: int fascist_logging; /* Perform very verbose logging. */
36: int print_motd; /* If true, print /etc/motd. */
37: int x11_forwarding; /* If true, permit inet (spoofing) X11 fwd. */
1.2 deraadt 38: int x11_display_offset; /* What DISPLAY number to start searching at */
1.1 deraadt 39: int strict_modes; /* If true, require string home dir modes. */
40: int keepalives; /* If true, set SO_KEEPALIVE. */
41: SyslogFacility log_facility; /* Facility for system logging. */
42: int rhosts_authentication; /* If true, permit rhosts authentication. */
43: int rhosts_rsa_authentication;/* If true, permit rhosts RSA authentication.*/
44: int rsa_authentication; /* If true, permit RSA authentication. */
45: #ifdef KRB4
46: int kerberos_authentication; /* If true, permit Kerberos authentication. */
1.3 dugsong 47: int kerberos_or_local_passwd; /* If true, permit kerberos and any other
48: password authentication mechanism, such
49: as SecurID or /etc/passwd */
1.1 deraadt 50: int kerberos_ticket_cleanup; /* If true, destroy ticket file on logout. */
51: #endif
1.3 dugsong 52: #ifdef AFS
1.1 deraadt 53: int kerberos_tgt_passing; /* If true, permit Kerberos tgt passing. */
54: int afs_token_passing; /* If true, permit AFS token passing. */
55: #endif
56: int password_authentication; /* If true, permit password authentication. */
1.5 ! markus 57: #ifdef SKEY
! 58: int skey_authentication; /* If true, permit s/key authentication. */
! 59: #endif
1.1 deraadt 60: int permit_empty_passwd; /* If false, do not permit empty passwords. */
61: unsigned int num_allow_hosts;
62: char *allow_hosts[MAX_ALLOW_HOSTS];
63: unsigned int num_deny_hosts;
64: char *deny_hosts[MAX_DENY_HOSTS];
65: } ServerOptions;
66:
67: /* Initializes the server options to special values that indicate that they
68: have not yet been set. */
69: void initialize_server_options(ServerOptions *options);
70:
71: /* Reads the server configuration file. This only sets the values for those
72: options that have the special value indicating they have not been set. */
73: void read_server_config(ServerOptions *options, const char *filename);
74:
75: /* Sets values for those values that have not yet been set. */
76: void fill_default_server_options(ServerOptions *options);
77:
78: #endif /* SERVCONF_H */