version 1.142, 2019/12/15 18:57:30 |
version 1.143, 2020/01/31 22:42:45 |
|
|
#ifndef SERVCONF_H |
#ifndef SERVCONF_H |
#define SERVCONF_H |
#define SERVCONF_H |
|
|
|
#include <sys/queue.h> |
|
|
#define MAX_PORTS 256 /* Max # ports. */ |
#define MAX_PORTS 256 /* Max # ports. */ |
|
|
#define MAX_SUBSYSTEMS 256 /* Max # subsystems. */ |
#define MAX_SUBSYSTEMS 256 /* Max # subsystems. */ |
|
|
* unspecified */ |
* unspecified */ |
}; |
}; |
|
|
|
/* List of included files for re-exec from the parsed configuration */ |
|
struct include_item { |
|
char *selector; |
|
char *filename; |
|
struct sshbuf *contents; |
|
TAILQ_ENTRY(include_item) entry; |
|
}; |
|
TAILQ_HEAD(include_list, include_item); |
|
|
|
|
/* |
/* |
* These are string config options that must be copied between the |
* These are string config options that must be copied between the |
* Match sub-config and the main config, and must be sent from the |
* Match sub-config and the main config, and must be sent from the |
|
|
void initialize_server_options(ServerOptions *); |
void initialize_server_options(ServerOptions *); |
void fill_default_server_options(ServerOptions *); |
void fill_default_server_options(ServerOptions *); |
int process_server_config_line(ServerOptions *, char *, const char *, int, |
int process_server_config_line(ServerOptions *, char *, const char *, int, |
int *, struct connection_info *); |
int *, struct connection_info *, struct include_list *includes); |
void process_permitopen(struct ssh *ssh, ServerOptions *options); |
void process_permitopen(struct ssh *ssh, ServerOptions *options); |
void load_server_config(const char *, struct sshbuf *); |
void load_server_config(const char *, struct sshbuf *); |
void parse_server_config(ServerOptions *, const char *, struct sshbuf *, |
void parse_server_config(ServerOptions *, const char *, struct sshbuf *, |
struct connection_info *); |
struct include_list *includes, struct connection_info *); |
void parse_server_match_config(ServerOptions *, struct connection_info *); |
void parse_server_match_config(ServerOptions *, |
|
struct include_list *includes, struct connection_info *); |
int parse_server_match_testspec(struct connection_info *, char *); |
int parse_server_match_testspec(struct connection_info *, char *); |
int server_match_spec_complete(struct connection_info *); |
int server_match_spec_complete(struct connection_info *); |
void copy_set_server_options(ServerOptions *, ServerOptions *, int); |
void copy_set_server_options(ServerOptions *, ServerOptions *, int); |