1*3d9fd9fcSEd Maste /* $OpenBSD: servconf.h,v 1.168 2024/09/15 01:18:26 djm Exp $ */ 2af12a3e7SDag-Erling Smørgrav 3511b41d2SMark Murray /* 4511b41d2SMark Murray * Author: Tatu Ylonen <ylo@cs.hut.fi> 5511b41d2SMark Murray * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6511b41d2SMark Murray * All rights reserved 7511b41d2SMark Murray * Definitions for server configuration data and for the functions reading it. 8511b41d2SMark Murray * 9c2d3a559SKris Kennaway * As far as I am concerned, the code I have written for this software 10c2d3a559SKris Kennaway * can be used freely for any purpose. Any derived versions of this 11c2d3a559SKris Kennaway * software must be clearly marked as such, and if the derived work is 12c2d3a559SKris Kennaway * incompatible with the protocol description in the RFC file, it must be 13c2d3a559SKris Kennaway * called by a name other than "ssh" or "Secure Shell". 14511b41d2SMark Murray */ 15511b41d2SMark Murray 16511b41d2SMark Murray #ifndef SERVCONF_H 17511b41d2SMark Murray #define SERVCONF_H 18511b41d2SMark Murray 1919261079SEd Maste #include <openbsd-compat/sys-queue.h> 2019261079SEd Maste 21511b41d2SMark Murray #define MAX_PORTS 256 /* Max # ports. */ 22511b41d2SMark Murray 23ca3176e7SBrian Feldman /* permit_root_login */ 24ca3176e7SBrian Feldman #define PERMIT_NOT_SET -1 25ca3176e7SBrian Feldman #define PERMIT_NO 0 26ca3176e7SBrian Feldman #define PERMIT_FORCED_ONLY 1 27ca3176e7SBrian Feldman #define PERMIT_NO_PASSWD 2 28ca3176e7SBrian Feldman #define PERMIT_YES 3 29ca3176e7SBrian Feldman 304f52dfbbSDag-Erling Smørgrav /* PermitOpen */ 314f52dfbbSDag-Erling Smørgrav #define PERMITOPEN_ANY 0 324f52dfbbSDag-Erling Smørgrav #define PERMITOPEN_NONE -2 334f52dfbbSDag-Erling Smørgrav 3419261079SEd Maste /* IgnoreRhosts */ 3519261079SEd Maste #define IGNORE_RHOSTS_NO 0 3619261079SEd Maste #define IGNORE_RHOSTS_YES 1 3719261079SEd Maste #define IGNORE_RHOSTS_SHOSTS 2 3819261079SEd Maste 3921e764dfSDag-Erling Smørgrav #define DEFAULT_AUTH_FAIL_MAX 6 /* Default for MaxAuthTries */ 40d4af9e69SDag-Erling Smørgrav #define DEFAULT_SESSIONS_MAX 10 /* Default for MaxSessions */ 41d4af9e69SDag-Erling Smørgrav 42d4af9e69SDag-Erling Smørgrav /* Magic name for internal sftp-server */ 43d4af9e69SDag-Erling Smørgrav #define INTERNAL_SFTP_NAME "internal-sftp" 44511b41d2SMark Murray 4519261079SEd Maste /* PubkeyAuthOptions flags */ 4619261079SEd Maste #define PUBKEYAUTH_TOUCH_REQUIRED (1) 4719261079SEd Maste #define PUBKEYAUTH_VERIFY_REQUIRED (1<<1) 4819261079SEd Maste 494f52dfbbSDag-Erling Smørgrav struct ssh; 504f52dfbbSDag-Erling Smørgrav 5147dd1d1bSDag-Erling Smørgrav /* 5247dd1d1bSDag-Erling Smørgrav * Used to store addresses from ListenAddr directives. These may be 5347dd1d1bSDag-Erling Smørgrav * incomplete, as they may specify addresses that need to be merged 5447dd1d1bSDag-Erling Smørgrav * with any ports requested by ListenPort. 5547dd1d1bSDag-Erling Smørgrav */ 5647dd1d1bSDag-Erling Smørgrav struct queued_listenaddr { 5747dd1d1bSDag-Erling Smørgrav char *addr; 5847dd1d1bSDag-Erling Smørgrav int port; /* <=0 if unspecified */ 5947dd1d1bSDag-Erling Smørgrav char *rdomain; 6047dd1d1bSDag-Erling Smørgrav }; 6147dd1d1bSDag-Erling Smørgrav 6247dd1d1bSDag-Erling Smørgrav /* Resolved listen addresses, grouped by optional routing domain */ 6347dd1d1bSDag-Erling Smørgrav struct listenaddr { 6447dd1d1bSDag-Erling Smørgrav char *rdomain; 6547dd1d1bSDag-Erling Smørgrav struct addrinfo *addrs; 6647dd1d1bSDag-Erling Smørgrav }; 6747dd1d1bSDag-Erling Smørgrav 680fdf8faeSEd Maste #define PER_SOURCE_PENALTY_OVERFLOW_DENY_ALL 1 690fdf8faeSEd Maste #define PER_SOURCE_PENALTY_OVERFLOW_PERMISSIVE 2 700fdf8faeSEd Maste struct per_source_penalty { 710fdf8faeSEd Maste int enabled; 720fdf8faeSEd Maste int max_sources4; 730fdf8faeSEd Maste int max_sources6; 740fdf8faeSEd Maste int overflow_mode; 750fdf8faeSEd Maste int overflow_mode6; 760fdf8faeSEd Maste int penalty_crash; 770fdf8faeSEd Maste int penalty_grace; 780fdf8faeSEd Maste int penalty_authfail; 790fdf8faeSEd Maste int penalty_noauth; 80*3d9fd9fcSEd Maste int penalty_refuseconnection; 810fdf8faeSEd Maste int penalty_max; 820fdf8faeSEd Maste int penalty_min; 830fdf8faeSEd Maste }; 840fdf8faeSEd Maste 85511b41d2SMark Murray typedef struct { 86ca3176e7SBrian Feldman u_int num_ports; 87ca3176e7SBrian Feldman u_int ports_from_cmdline; 88cce7d346SDag-Erling Smørgrav int ports[MAX_PORTS]; /* Port number to listen on. */ 8947dd1d1bSDag-Erling Smørgrav struct queued_listenaddr *queued_listen_addrs; 90557f75e5SDag-Erling Smørgrav u_int num_queued_listens; 9147dd1d1bSDag-Erling Smørgrav struct listenaddr *listen_addrs; 9247dd1d1bSDag-Erling Smørgrav u_int num_listen_addrs; 93aa49c926SDag-Erling Smørgrav int address_family; /* Address family used by the server. */ 9447dd1d1bSDag-Erling Smørgrav 9547dd1d1bSDag-Erling Smørgrav char *routing_domain; /* Bind session to routing domain */ 9647dd1d1bSDag-Erling Smørgrav 9747dd1d1bSDag-Erling Smørgrav char **host_key_files; /* Files containing host keys. */ 9819261079SEd Maste int *host_key_file_userprovided; /* Key was specified by user. */ 9947dd1d1bSDag-Erling Smørgrav u_int num_host_key_files; /* Number of files for host keys. */ 10047dd1d1bSDag-Erling Smørgrav char **host_cert_files; /* Files containing host certs. */ 10147dd1d1bSDag-Erling Smørgrav u_int num_host_cert_files; /* Number of files for host certs. */ 10247dd1d1bSDag-Erling Smørgrav 103e4a9863fSDag-Erling Smørgrav char *host_key_agent; /* ssh-agent socket for host keys. */ 104e8aafc91SKris Kennaway char *pid_file; /* Where to put our pid */ 10519261079SEd Maste char *moduli_file; /* moduli file for DH-GEX */ 106511b41d2SMark Murray int login_grace_time; /* Disconnect if no auth in this time 107511b41d2SMark Murray * (sec). */ 108ca3176e7SBrian Feldman int permit_root_login; /* PERMIT_*, see above */ 109511b41d2SMark Murray int ignore_rhosts; /* Ignore .rhosts and .shosts. */ 110511b41d2SMark Murray int ignore_user_known_hosts; /* Ignore ~/.ssh/known_hosts 111511b41d2SMark Murray * for RhostsRsaAuth */ 112511b41d2SMark Murray int print_motd; /* If true, print /etc/motd. */ 113ca3176e7SBrian Feldman int print_lastlog; /* If true, print lastlog */ 114511b41d2SMark Murray int x11_forwarding; /* If true, permit inet (spoofing) X11 fwd. */ 115511b41d2SMark Murray int x11_display_offset; /* What DISPLAY number to start 116511b41d2SMark Murray * searching at */ 117af12a3e7SDag-Erling Smørgrav int x11_use_localhost; /* If true, use localhost for fake X11 server. */ 118c2d3a559SKris Kennaway char *xauth_location; /* Location of xauth program */ 119f7167e0eSDag-Erling Smørgrav int permit_tty; /* If false, deny pty allocation */ 120a0ee8cc6SDag-Erling Smørgrav int permit_user_rc; /* If false, deny ~/.ssh/rc execution */ 121511b41d2SMark Murray int strict_modes; /* If true, require string home dir modes. */ 1221ec0d754SDag-Erling Smørgrav int tcp_keep_alive; /* If true, set SO_KEEPALIVE. */ 1234a421b63SDag-Erling Smørgrav int ip_qos_interactive; /* IP ToS/DSCP/class for interactive */ 1244a421b63SDag-Erling Smørgrav int ip_qos_bulk; /* IP ToS/DSCP/class for bulk traffic */ 125ca3176e7SBrian Feldman char *ciphers; /* Supported SSH2 ciphers. */ 126ca3176e7SBrian Feldman char *macs; /* Supported SSH2 macs. */ 1274a421b63SDag-Erling Smørgrav char *kex_algorithms; /* SSH2 kex methods in order of preference. */ 128a0ee8cc6SDag-Erling Smørgrav struct ForwardOptions fwd_opts; /* forwarding options */ 129511b41d2SMark Murray SyslogFacility log_facility; /* Facility for system logging. */ 130511b41d2SMark Murray LogLevel log_level; /* Level for system logging. */ 13119261079SEd Maste u_int num_log_verbose; /* Verbose log overrides */ 13219261079SEd Maste char **log_verbose; 133ca3176e7SBrian Feldman int hostbased_authentication; /* If true, permit ssh2 hostbased auth */ 134ca3176e7SBrian Feldman int hostbased_uses_name_from_packet_only; /* experimental */ 13519261079SEd Maste char *hostbased_accepted_algos; /* Algos allowed for hostbased */ 136eccfee6eSDag-Erling Smørgrav char *hostkeyalgorithms; /* SSH2 server key types */ 1372f513db7SEd Maste char *ca_sign_algorithms; /* Allowed CA signature algorithms */ 138ca3176e7SBrian Feldman int pubkey_authentication; /* If true, permit ssh2 pubkey authentication. */ 13919261079SEd Maste char *pubkey_accepted_algos; /* Signature algos allowed for pubkey */ 14019261079SEd Maste int pubkey_auth_options; /* -1 or mask of PUBKEYAUTH_* flags */ 141af12a3e7SDag-Erling Smørgrav int kerberos_authentication; /* If true, permit Kerberos 142af12a3e7SDag-Erling Smørgrav * authentication. */ 143af12a3e7SDag-Erling Smørgrav int kerberos_or_local_passwd; /* If true, permit kerberos 144511b41d2SMark Murray * and any other password 145511b41d2SMark Murray * authentication mechanism, 146511b41d2SMark Murray * such as SecurID or 147511b41d2SMark Murray * /etc/passwd */ 148af12a3e7SDag-Erling Smørgrav int kerberos_ticket_cleanup; /* If true, destroy ticket 149511b41d2SMark Murray * file on logout. */ 1501ec0d754SDag-Erling Smørgrav int kerberos_get_afs_token; /* If true, try to get AFS token if 1511ec0d754SDag-Erling Smørgrav * authenticated with Kerberos. */ 152cf2b5f3bSDag-Erling Smørgrav int gss_authentication; /* If true, permit GSSAPI authentication */ 153cf2b5f3bSDag-Erling Smørgrav int gss_cleanup_creds; /* If true, destroy cred cache on logout */ 154557f75e5SDag-Erling Smørgrav int gss_strict_acceptor; /* If true, restrict the GSSAPI acceptor name */ 155511b41d2SMark Murray int password_authentication; /* If true, permit password 156511b41d2SMark Murray * authentication. */ 15709958426SBrian Feldman int kbd_interactive_authentication; /* If true, permit */ 158511b41d2SMark Murray int permit_empty_passwd; /* If false, do not permit empty 159511b41d2SMark Murray * passwords. */ 160f388f5efSDag-Erling Smørgrav int permit_user_env; /* If true, read ~/.ssh/environment */ 16119261079SEd Maste char *permit_user_env_allowlist; /* pattern-list of allowed env names */ 16280628bacSDag-Erling Smørgrav int compression; /* If true, compression is allowed */ 1636888a9beSDag-Erling Smørgrav int allow_tcp_forwarding; /* One of FORWARD_* */ 164a0ee8cc6SDag-Erling Smørgrav int allow_streamlocal_forwarding; /* One of FORWARD_* */ 165d4af9e69SDag-Erling Smørgrav int allow_agent_forwarding; 166ca86bcf2SDag-Erling Smørgrav int disable_forwarding; 167ca3176e7SBrian Feldman u_int num_allow_users; 16847dd1d1bSDag-Erling Smørgrav char **allow_users; 169ca3176e7SBrian Feldman u_int num_deny_users; 17047dd1d1bSDag-Erling Smørgrav char **deny_users; 171ca3176e7SBrian Feldman u_int num_allow_groups; 17247dd1d1bSDag-Erling Smørgrav char **allow_groups; 173ca3176e7SBrian Feldman u_int num_deny_groups; 17447dd1d1bSDag-Erling Smørgrav char **deny_groups; 175c2d3a559SKris Kennaway 176ca3176e7SBrian Feldman u_int num_subsystems; 177edf85781SEd Maste char **subsystem_name; 178edf85781SEd Maste char **subsystem_command; 179edf85781SEd Maste char **subsystem_args; 180c2d3a559SKris Kennaway 18121e764dfSDag-Erling Smørgrav u_int num_accept_env; 18247dd1d1bSDag-Erling Smørgrav char **accept_env; 183190cef3dSDag-Erling Smørgrav u_int num_setenv; 184190cef3dSDag-Erling Smørgrav char **setenv; 18521e764dfSDag-Erling Smørgrav 186c2d3a559SKris Kennaway int max_startups_begin; 187c2d3a559SKris Kennaway int max_startups_rate; 188c2d3a559SKris Kennaway int max_startups; 18919261079SEd Maste int per_source_max_startups; 19019261079SEd Maste int per_source_masklen_ipv4; 19119261079SEd Maste int per_source_masklen_ipv6; 1920fdf8faeSEd Maste char *per_source_penalty_exempt; 1930fdf8faeSEd Maste struct per_source_penalty per_source_penalty; 19421e764dfSDag-Erling Smørgrav int max_authtries; 195d4af9e69SDag-Erling Smørgrav int max_sessions; 196ca3176e7SBrian Feldman char *banner; /* SSH-2 banner message */ 197cf2b5f3bSDag-Erling Smørgrav int use_dns; 198ca3176e7SBrian Feldman int client_alive_interval; /* 199ca3176e7SBrian Feldman * poke the client this often to 200ca3176e7SBrian Feldman * see if it's still there 201ca3176e7SBrian Feldman */ 202ca3176e7SBrian Feldman int client_alive_count_max; /* 203ca3176e7SBrian Feldman * If the client is unresponsive 204af12a3e7SDag-Erling Smørgrav * for this many intervals above, 205af12a3e7SDag-Erling Smørgrav * disconnect the session 206ca3176e7SBrian Feldman */ 207c2d3a559SKris Kennaway 208e146993eSDag-Erling Smørgrav u_int num_authkeys_files; /* Files containing public keys */ 20947dd1d1bSDag-Erling Smørgrav char **authorized_keys_files; 210b74df5b2SDag-Erling Smørgrav 211333ee039SDag-Erling Smørgrav char *adm_forced_command; 212333ee039SDag-Erling Smørgrav 213cf2b5f3bSDag-Erling Smørgrav int use_pam; /* Enable auth via PAM */ 2140fdf8faeSEd Maste char *pam_service_name; 215b74df5b2SDag-Erling Smørgrav 216b74df5b2SDag-Erling Smørgrav int permit_tun; 217333ee039SDag-Erling Smørgrav 218190cef3dSDag-Erling Smørgrav char **permitted_opens; /* May also be one of PERMITOPEN_* */ 219190cef3dSDag-Erling Smørgrav u_int num_permitted_opens; 220190cef3dSDag-Erling Smørgrav char **permitted_listens; /* May also be one of PERMITOPEN_* */ 221190cef3dSDag-Erling Smørgrav u_int num_permitted_listens; 222d4af9e69SDag-Erling Smørgrav 223d4af9e69SDag-Erling Smørgrav char *chroot_directory; 224b15c8340SDag-Erling Smørgrav char *revoked_keys_file; 225b15c8340SDag-Erling Smørgrav char *trusted_user_ca_keys; 2266888a9beSDag-Erling Smørgrav char *authorized_keys_command; 2276888a9beSDag-Erling Smørgrav char *authorized_keys_command_user; 228557f75e5SDag-Erling Smørgrav char *authorized_principals_file; 229557f75e5SDag-Erling Smørgrav char *authorized_principals_command; 230557f75e5SDag-Erling Smørgrav char *authorized_principals_command_user; 23189986192SBrooks Davis 232e4a9863fSDag-Erling Smørgrav int64_t rekey_limit; 233e4a9863fSDag-Erling Smørgrav int rekey_interval; 234e4a9863fSDag-Erling Smørgrav 235462c32cbSDag-Erling Smørgrav char *version_addendum; /* Appended to SSH banner */ 236462c32cbSDag-Erling Smørgrav 2376888a9beSDag-Erling Smørgrav u_int num_auth_methods; 23847dd1d1bSDag-Erling Smørgrav char **auth_methods; 239bc5531deSDag-Erling Smørgrav 240bc5531deSDag-Erling Smørgrav int fingerprint_hash; 2414f52dfbbSDag-Erling Smørgrav int expose_userauth_info; 242190cef3dSDag-Erling Smørgrav u_int64_t timing_secret; 24319261079SEd Maste char *sk_provider; 24438a52bd3SEd Maste int required_rsa_size; /* minimum size of RSA keys */ 245f374ba41SEd Maste 246f374ba41SEd Maste char **channel_timeouts; /* inactivity timeout by channel type */ 247f374ba41SEd Maste u_int num_channel_timeouts; 248f374ba41SEd Maste 249f374ba41SEd Maste int unused_connection_timeout; 250f374ba41SEd Maste 2510fdf8faeSEd Maste char *sshd_session_path; 2520fdf8faeSEd Maste 253*3d9fd9fcSEd Maste int refuse_connection; 254*3d9fd9fcSEd Maste 255b2af61ecSKurt Lidl int use_blacklist; 256511b41d2SMark Murray } ServerOptions; 257511b41d2SMark Murray 258462c32cbSDag-Erling Smørgrav /* Information about the incoming connection as used by Match */ 259462c32cbSDag-Erling Smørgrav struct connection_info { 260462c32cbSDag-Erling Smørgrav const char *user; 261*3d9fd9fcSEd Maste int user_invalid; 262462c32cbSDag-Erling Smørgrav const char *host; /* possibly resolved hostname */ 263462c32cbSDag-Erling Smørgrav const char *address; /* remote address */ 264462c32cbSDag-Erling Smørgrav const char *laddress; /* local address */ 265462c32cbSDag-Erling Smørgrav int lport; /* local port */ 26647dd1d1bSDag-Erling Smørgrav const char *rdomain; /* routing domain if available */ 26719261079SEd Maste int test; /* test mode, allow some attributes to be 26819261079SEd Maste * unspecified */ 269462c32cbSDag-Erling Smørgrav }; 270462c32cbSDag-Erling Smørgrav 27119261079SEd Maste /* List of included files for re-exec from the parsed configuration */ 27219261079SEd Maste struct include_item { 27319261079SEd Maste char *selector; 27419261079SEd Maste char *filename; 27519261079SEd Maste struct sshbuf *contents; 27619261079SEd Maste TAILQ_ENTRY(include_item) entry; 27719261079SEd Maste }; 27819261079SEd Maste TAILQ_HEAD(include_list, include_item); 27919261079SEd Maste 280462c32cbSDag-Erling Smørgrav 281e146993eSDag-Erling Smørgrav /* 282e146993eSDag-Erling Smørgrav * These are string config options that must be copied between the 283e146993eSDag-Erling Smørgrav * Match sub-config and the main config, and must be sent from the 28419261079SEd Maste * privsep child to the privsep master. We use a macro to ensure all 285e146993eSDag-Erling Smørgrav * the options are copied and the copies are done in the correct order. 286f7167e0eSDag-Erling Smørgrav * 287f7167e0eSDag-Erling Smørgrav * NB. an option must appear in servconf.c:copy_set_server_options() or 288f7167e0eSDag-Erling Smørgrav * COPY_MATCH_STRING_OPTS here but never both. 289e146993eSDag-Erling Smørgrav */ 290e146993eSDag-Erling Smørgrav #define COPY_MATCH_STRING_OPTS() do { \ 291e146993eSDag-Erling Smørgrav M_CP_STROPT(banner); \ 292e146993eSDag-Erling Smørgrav M_CP_STROPT(trusted_user_ca_keys); \ 293e146993eSDag-Erling Smørgrav M_CP_STROPT(revoked_keys_file); \ 2946888a9beSDag-Erling Smørgrav M_CP_STROPT(authorized_keys_command); \ 2956888a9beSDag-Erling Smørgrav M_CP_STROPT(authorized_keys_command_user); \ 296557f75e5SDag-Erling Smørgrav M_CP_STROPT(authorized_principals_file); \ 297557f75e5SDag-Erling Smørgrav M_CP_STROPT(authorized_principals_command); \ 298557f75e5SDag-Erling Smørgrav M_CP_STROPT(authorized_principals_command_user); \ 29919261079SEd Maste M_CP_STROPT(hostbased_accepted_algos); \ 30019261079SEd Maste M_CP_STROPT(pubkey_accepted_algos); \ 3012f513db7SEd Maste M_CP_STROPT(ca_sign_algorithms); \ 30247dd1d1bSDag-Erling Smørgrav M_CP_STROPT(routing_domain); \ 30319261079SEd Maste M_CP_STROPT(permit_user_env_allowlist); \ 3040fdf8faeSEd Maste M_CP_STROPT(pam_service_name); \ 305e146993eSDag-Erling Smørgrav M_CP_STRARRAYOPT(authorized_keys_files, num_authkeys_files); \ 306462c32cbSDag-Erling Smørgrav M_CP_STRARRAYOPT(allow_users, num_allow_users); \ 307462c32cbSDag-Erling Smørgrav M_CP_STRARRAYOPT(deny_users, num_deny_users); \ 308462c32cbSDag-Erling Smørgrav M_CP_STRARRAYOPT(allow_groups, num_allow_groups); \ 309462c32cbSDag-Erling Smørgrav M_CP_STRARRAYOPT(deny_groups, num_deny_groups); \ 310462c32cbSDag-Erling Smørgrav M_CP_STRARRAYOPT(accept_env, num_accept_env); \ 31119261079SEd Maste M_CP_STRARRAYOPT(setenv, num_setenv); \ 3126888a9beSDag-Erling Smørgrav M_CP_STRARRAYOPT(auth_methods, num_auth_methods); \ 31347dd1d1bSDag-Erling Smørgrav M_CP_STRARRAYOPT(permitted_opens, num_permitted_opens); \ 314190cef3dSDag-Erling Smørgrav M_CP_STRARRAYOPT(permitted_listens, num_permitted_listens); \ 315f374ba41SEd Maste M_CP_STRARRAYOPT(channel_timeouts, num_channel_timeouts); \ 31619261079SEd Maste M_CP_STRARRAYOPT(log_verbose, num_log_verbose); \ 317edf85781SEd Maste M_CP_STRARRAYOPT(subsystem_name, num_subsystems); \ 318edf85781SEd Maste M_CP_STRARRAYOPT(subsystem_command, num_subsystems); \ 319edf85781SEd Maste M_CP_STRARRAYOPT(subsystem_args, num_subsystems); \ 320e146993eSDag-Erling Smørgrav } while (0) 321e146993eSDag-Erling Smørgrav 322af12a3e7SDag-Erling Smørgrav void initialize_server_options(ServerOptions *); 323af12a3e7SDag-Erling Smørgrav void fill_default_server_options(ServerOptions *); 324333ee039SDag-Erling Smørgrav int process_server_config_line(ServerOptions *, char *, const char *, int, 32519261079SEd Maste int *, struct connection_info *, struct include_list *includes); 326190cef3dSDag-Erling Smørgrav void load_server_config(const char *, struct sshbuf *); 327190cef3dSDag-Erling Smørgrav void parse_server_config(ServerOptions *, const char *, struct sshbuf *, 32887c1498dSEd Maste struct include_list *includes, struct connection_info *, int); 32919261079SEd Maste void parse_server_match_config(ServerOptions *, 33019261079SEd Maste struct include_list *includes, struct connection_info *); 331462c32cbSDag-Erling Smørgrav int parse_server_match_testspec(struct connection_info *, char *); 332edf85781SEd Maste void servconf_merge_subsystems(ServerOptions *, ServerOptions *); 333d4af9e69SDag-Erling Smørgrav void copy_set_server_options(ServerOptions *, ServerOptions *, int); 334d4af9e69SDag-Erling Smørgrav void dump_config(ServerOptions *); 335b15c8340SDag-Erling Smørgrav char *derelativise_path(const char *); 33647dd1d1bSDag-Erling Smørgrav void servconf_add_hostkey(const char *, const int, 33719261079SEd Maste ServerOptions *, const char *path, int); 33847dd1d1bSDag-Erling Smørgrav void servconf_add_hostcert(const char *, const int, 33947dd1d1bSDag-Erling Smørgrav ServerOptions *, const char *path); 340511b41d2SMark Murray 341511b41d2SMark Murray #endif /* SERVCONF_H */ 342