summaryrefslogtreecommitdiff
path: root/readconf.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 14:23:50 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 14:23:50 +0100
commitbaccdb349b31c47cd76fb63211f754ed33a9707e (patch)
treed03653f975fd4eb8bf71bb0c9d168614401202fa /readconf.h
parent487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (diff)
parent9f82e5a9042f2d872e98f48a876fcab3e25dd9bb (diff)
Import openssh_6.8p1.orig.tar.gz
Diffstat (limited to 'readconf.h')
-rw-r--r--readconf.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/readconf.h b/readconf.h
index 0b9cb777a..576b9e352 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>
@@ -93,7 +93,7 @@ typedef struct {
93 int num_identity_files; /* Number of files for RSA/DSA identities. */ 93 int num_identity_files; /* Number of files for RSA/DSA identities. */
94 char *identity_files[SSH_MAX_IDENTITY_FILES]; 94 char *identity_files[SSH_MAX_IDENTITY_FILES];
95 int identity_file_userprovided[SSH_MAX_IDENTITY_FILES]; 95 int identity_file_userprovided[SSH_MAX_IDENTITY_FILES];
96 Key *identity_keys[SSH_MAX_IDENTITY_FILES]; 96 struct sshkey *identity_keys[SSH_MAX_IDENTITY_FILES];
97 97
98 /* Local TCP/IP forward requests. */ 98 /* Local TCP/IP forward requests. */
99 int num_local_forwards; 99 int num_local_forwards;
@@ -144,6 +144,14 @@ typedef struct {
144 int num_permitted_cnames; 144 int num_permitted_cnames;
145 struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS]; 145 struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS];
146 146
147 char *revoked_host_keys;
148
149 int fingerprint_hash;
150
151 int update_hostkeys; /* one of SSH_UPDATE_HOSTKEYS_* */
152
153 char *hostbased_key_types;
154
147 char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ 155 char *ignored_unknown; /* Pattern list of unknown tokens to ignore */
148} Options; 156} Options;
149 157
@@ -164,17 +172,23 @@ typedef struct {
164 172
165#define SSHCONF_CHECKPERM 1 /* check permissions on config file */ 173#define SSHCONF_CHECKPERM 1 /* check permissions on config file */
166#define SSHCONF_USERCONF 2 /* user provided config file not system */ 174#define SSHCONF_USERCONF 2 /* user provided config file not system */
175#define SSHCONF_POSTCANON 4 /* After hostname canonicalisation */
176
177#define SSH_UPDATE_HOSTKEYS_NO 0
178#define SSH_UPDATE_HOSTKEYS_YES 1
179#define SSH_UPDATE_HOSTKEYS_ASK 2
167 180
168void initialize_options(Options *); 181void initialize_options(Options *);
169void fill_default_options(Options *); 182void fill_default_options(Options *);
170void fill_default_options_for_canonicalization(Options *); 183void fill_default_options_for_canonicalization(Options *);
171int process_config_line(Options *, struct passwd *, const char *, char *, 184int process_config_line(Options *, struct passwd *, const char *,
172 const char *, int, int *, int); 185 const char *, char *, const char *, int, int *, int);
173int read_config_file(const char *, struct passwd *, const char *, 186int read_config_file(const char *, struct passwd *, const char *,
174 Options *, int); 187 const char *, Options *, int);
175int parse_forward(struct Forward *, const char *, int, int); 188int parse_forward(struct Forward *, const char *, int, int);
176int default_ssh_port(void); 189int default_ssh_port(void);
177int option_clear_or_none(const char *); 190int option_clear_or_none(const char *);
191void dump_client_config(Options *o, const char *host);
178 192
179void add_local_forward(Options *, const struct Forward *); 193void add_local_forward(Options *, const struct Forward *);
180void add_remote_forward(Options *, const struct Forward *); 194void add_remote_forward(Options *, const struct Forward *);