Annotation of src/usr.bin/ssh/servconf.h, Revision 1.1
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:
! 16: /* RCSID("$Id: servconf.h,v 1.6 1999/05/04 11:59:10 bg Exp $"); */
! 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: char *random_seed_file; /* File containing random seed. */
! 30: int server_key_bits; /* Size of the server key. */
! 31: int login_grace_time; /* Disconnect if no auth in this time (sec). */
! 32: int key_regeneration_time; /* Server key lifetime (seconds). */
! 33: int permit_root_login; /* If true, permit root login. */
! 34: int ignore_rhosts; /* Ignore .rhosts and .shosts. */
! 35: int quiet_mode; /* If true, don't log anything but fatals. */
! 36: int fascist_logging; /* Perform very verbose logging. */
! 37: int print_motd; /* If true, print /etc/motd. */
! 38: int x11_forwarding; /* If true, permit inet (spoofing) X11 fwd. */
! 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. */
! 47: int kerberos_or_local_passwd;
! 48: #endif
! 49: #if defined(KRB4) || defined(AFS)
! 50: int kerberos_ticket_cleanup; /* If true, destroy ticket file on logout. */
! 51: #endif
! 52: #ifdef KERBEROS_TGT_PASSING
! 53: int kerberos_tgt_passing; /* If true, permit Kerberos tgt passing. */
! 54: #endif
! 55: #ifdef AFS
! 56: int afs_token_passing; /* If true, permit AFS token passing. */
! 57: #endif
! 58: int password_authentication; /* If true, permit password authentication. */
! 59: int permit_empty_passwd; /* If false, do not permit empty passwords. */
! 60: unsigned int num_allow_hosts;
! 61: char *allow_hosts[MAX_ALLOW_HOSTS];
! 62: unsigned int num_deny_hosts;
! 63: char *deny_hosts[MAX_DENY_HOSTS];
! 64: } ServerOptions;
! 65:
! 66: /* Initializes the server options to special values that indicate that they
! 67: have not yet been set. */
! 68: void initialize_server_options(ServerOptions *options);
! 69:
! 70: /* Reads the server configuration file. This only sets the values for those
! 71: options that have the special value indicating they have not been set. */
! 72: void read_server_config(ServerOptions *options, const char *filename);
! 73:
! 74: /* Sets values for those values that have not yet been set. */
! 75: void fill_default_server_options(ServerOptions *options);
! 76:
! 77: #endif /* SERVCONF_H */