diff options
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/readconf.h b/readconf.h index 675b35dfe..826c6767b 100644 --- a/readconf.h +++ b/readconf.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.h,v 1.95 2013/05/16 04:27:50 djm Exp $ */ | 1 | /* $OpenBSD: readconf.h,v 1.99 2013/10/16 22:49:38 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -29,7 +29,13 @@ typedef struct { | |||
29 | /* Data structure for representing option data. */ | 29 | /* Data structure for representing option data. */ |
30 | 30 | ||
31 | #define MAX_SEND_ENV 256 | 31 | #define MAX_SEND_ENV 256 |
32 | #define SSH_MAX_HOSTS_FILES 256 | 32 | #define SSH_MAX_HOSTS_FILES 32 |
33 | #define MAX_CANON_DOMAINS 32 | ||
34 | |||
35 | struct allowed_cname { | ||
36 | char *source_list; | ||
37 | char *target_list; | ||
38 | }; | ||
33 | 39 | ||
34 | typedef struct { | 40 | typedef struct { |
35 | int forward_agent; /* Forward authentication agent. */ | 41 | int forward_agent; /* Forward authentication agent. */ |
@@ -143,9 +149,23 @@ typedef struct { | |||
143 | 149 | ||
144 | int request_tty; | 150 | int request_tty; |
145 | 151 | ||
152 | int proxy_use_fdpass; | ||
153 | |||
154 | int num_canonical_domains; | ||
155 | char *canonical_domains[MAX_CANON_DOMAINS]; | ||
156 | int canonicalize_hostname; | ||
157 | int canonicalize_max_dots; | ||
158 | int canonicalize_fallback_local; | ||
159 | int num_permitted_cnames; | ||
160 | struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS]; | ||
161 | |||
146 | char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ | 162 | char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ |
147 | } Options; | 163 | } Options; |
148 | 164 | ||
165 | #define SSH_CANONICALISE_NO 0 | ||
166 | #define SSH_CANONICALISE_YES 1 | ||
167 | #define SSH_CANONICALISE_ALWAYS 2 | ||
168 | |||
149 | #define SSHCTL_MASTER_NO 0 | 169 | #define SSHCTL_MASTER_NO 0 |
150 | #define SSHCTL_MASTER_YES 1 | 170 | #define SSHCTL_MASTER_YES 1 |
151 | #define SSHCTL_MASTER_AUTO 2 | 171 | #define SSHCTL_MASTER_AUTO 2 |
@@ -162,12 +182,12 @@ typedef struct { | |||
162 | 182 | ||
163 | void initialize_options(Options *); | 183 | void initialize_options(Options *); |
164 | void fill_default_options(Options *); | 184 | void fill_default_options(Options *); |
165 | int read_config_file(const char *, const char *, Options *, int); | 185 | int process_config_line(Options *, struct passwd *, const char *, char *, |
186 | const char *, int, int *, int); | ||
187 | int read_config_file(const char *, struct passwd *, const char *, | ||
188 | Options *, int); | ||
166 | int parse_forward(Forward *, const char *, int, int); | 189 | int parse_forward(Forward *, const char *, int, int); |
167 | 190 | int default_ssh_port(void); | |
168 | int | ||
169 | process_config_line(Options *, const char *, char *, const char *, int, int *, | ||
170 | int); | ||
171 | 191 | ||
172 | void add_local_forward(Options *, const Forward *); | 192 | void add_local_forward(Options *, const Forward *); |
173 | void add_remote_forward(Options *, const Forward *); | 193 | void add_remote_forward(Options *, const Forward *); |