summaryrefslogtreecommitdiff
path: root/readconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.h')
-rw-r--r--readconf.h34
1 files changed, 27 insertions, 7 deletions
diff --git a/readconf.h b/readconf.h
index 23fc500da..2d7ea9fc4 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
35struct allowed_cname {
36 char *source_list;
37 char *target_list;
38};
33 39
34typedef struct { 40typedef struct {
35 int forward_agent; /* Forward authentication agent. */ 41 int forward_agent; /* Forward authentication agent. */
@@ -138,9 +144,23 @@ typedef struct {
138 144
139 int request_tty; 145 int request_tty;
140 146
147 int proxy_use_fdpass;
148
149 int num_canonical_domains;
150 char *canonical_domains[MAX_CANON_DOMAINS];
151 int canonicalize_hostname;
152 int canonicalize_max_dots;
153 int canonicalize_fallback_local;
154 int num_permitted_cnames;
155 struct allowed_cname permitted_cnames[MAX_CANON_DOMAINS];
156
141 char *ignored_unknown; /* Pattern list of unknown tokens to ignore */ 157 char *ignored_unknown; /* Pattern list of unknown tokens to ignore */
142} Options; 158} Options;
143 159
160#define SSH_CANONICALISE_NO 0
161#define SSH_CANONICALISE_YES 1
162#define SSH_CANONICALISE_ALWAYS 2
163
144#define SSHCTL_MASTER_NO 0 164#define SSHCTL_MASTER_NO 0
145#define SSHCTL_MASTER_YES 1 165#define SSHCTL_MASTER_YES 1
146#define SSHCTL_MASTER_AUTO 2 166#define SSHCTL_MASTER_AUTO 2
@@ -157,12 +177,12 @@ typedef struct {
157 177
158void initialize_options(Options *); 178void initialize_options(Options *);
159void fill_default_options(Options *); 179void fill_default_options(Options *);
160int read_config_file(const char *, const char *, Options *, int); 180int process_config_line(Options *, struct passwd *, const char *, char *,
181 const char *, int, int *, int);
182int read_config_file(const char *, struct passwd *, const char *,
183 Options *, int);
161int parse_forward(Forward *, const char *, int, int); 184int parse_forward(Forward *, const char *, int, int);
162 185int default_ssh_port(void);
163int
164process_config_line(Options *, const char *, char *, const char *, int, int *,
165 int);
166 186
167void add_local_forward(Options *, const Forward *); 187void add_local_forward(Options *, const Forward *);
168void add_remote_forward(Options *, const Forward *); 188void add_remote_forward(Options *, const Forward *);