diff options
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/readconf.h b/readconf.h index 0e298898a..ef39c4ca4 100644 --- a/readconf.h +++ b/readconf.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.h,v 1.102 2014/07/15 15:54:14 millert Exp $ */ | 1 | /* $OpenBSD: readconf.h,v 1.109 2015/02/16 22:13:32 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -98,7 +98,7 @@ typedef struct { | |||
98 | int num_identity_files; /* Number of files for RSA/DSA identities. */ | 98 | int num_identity_files; /* Number of files for RSA/DSA identities. */ |
99 | char *identity_files[SSH_MAX_IDENTITY_FILES]; | 99 | char *identity_files[SSH_MAX_IDENTITY_FILES]; |
100 | int identity_file_userprovided[SSH_MAX_IDENTITY_FILES]; | 100 | int identity_file_userprovided[SSH_MAX_IDENTITY_FILES]; |
101 | Key *identity_keys[SSH_MAX_IDENTITY_FILES]; | 101 | struct sshkey *identity_keys[SSH_MAX_IDENTITY_FILES]; |
102 | 102 | ||
103 | /* Local TCP/IP forward requests. */ | 103 | /* Local TCP/IP forward requests. */ |
104 | int num_local_forwards; | 104 | int num_local_forwards; |
@@ -149,6 +149,14 @@ typedef struct { | |||
149 | int num_permitted_cnames; | 149 | int num_permitted_cnames; |
150 | struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS]; | 150 | struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS]; |
151 | 151 | ||
152 | char *revoked_host_keys; | ||
153 | |||
154 | int fingerprint_hash; | ||
155 | |||
156 | int update_hostkeys; /* one of SSH_UPDATE_HOSTKEYS_* */ | ||
157 | |||
158 | char *hostbased_key_types; | ||
159 | |||
152 | char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ | 160 | char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ |
153 | } Options; | 161 | } Options; |
154 | 162 | ||
@@ -169,17 +177,23 @@ typedef struct { | |||
169 | 177 | ||
170 | #define SSHCONF_CHECKPERM 1 /* check permissions on config file */ | 178 | #define SSHCONF_CHECKPERM 1 /* check permissions on config file */ |
171 | #define SSHCONF_USERCONF 2 /* user provided config file not system */ | 179 | #define SSHCONF_USERCONF 2 /* user provided config file not system */ |
180 | #define SSHCONF_POSTCANON 4 /* After hostname canonicalisation */ | ||
181 | |||
182 | #define SSH_UPDATE_HOSTKEYS_NO 0 | ||
183 | #define SSH_UPDATE_HOSTKEYS_YES 1 | ||
184 | #define SSH_UPDATE_HOSTKEYS_ASK 2 | ||
172 | 185 | ||
173 | void initialize_options(Options *); | 186 | void initialize_options(Options *); |
174 | void fill_default_options(Options *); | 187 | void fill_default_options(Options *); |
175 | void fill_default_options_for_canonicalization(Options *); | 188 | void fill_default_options_for_canonicalization(Options *); |
176 | int process_config_line(Options *, struct passwd *, const char *, char *, | 189 | int process_config_line(Options *, struct passwd *, const char *, |
177 | const char *, int, int *, int); | 190 | const char *, char *, const char *, int, int *, int); |
178 | int read_config_file(const char *, struct passwd *, const char *, | 191 | int read_config_file(const char *, struct passwd *, const char *, |
179 | Options *, int); | 192 | const char *, Options *, int); |
180 | int parse_forward(struct Forward *, const char *, int, int); | 193 | int parse_forward(struct Forward *, const char *, int, int); |
181 | int default_ssh_port(void); | 194 | int default_ssh_port(void); |
182 | int option_clear_or_none(const char *); | 195 | int option_clear_or_none(const char *); |
196 | void dump_client_config(Options *o, const char *host); | ||
183 | 197 | ||
184 | void add_local_forward(Options *, const struct Forward *); | 198 | void add_local_forward(Options *, const struct Forward *); |
185 | void add_remote_forward(Options *, const struct Forward *); | 199 | void add_remote_forward(Options *, const struct Forward *); |