summaryrefslogtreecommitdiff
path: root/readconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.h')
-rw-r--r--readconf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/readconf.h b/readconf.h
index be30ee0e1..841648906 100644
--- a/readconf.h
+++ b/readconf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.h,v 1.91 2011/09/23 07:45:05 markus Exp $ */ 1/* $OpenBSD: readconf.h,v 1.93 2013/02/22 04:45:09 dtucker Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -96,6 +96,7 @@ typedef struct {
96 96
97 int num_identity_files; /* Number of files for RSA/DSA identities. */ 97 int num_identity_files; /* Number of files for RSA/DSA identities. */
98 char *identity_files[SSH_MAX_IDENTITY_FILES]; 98 char *identity_files[SSH_MAX_IDENTITY_FILES];
99 int identity_file_userprovided[SSH_MAX_IDENTITY_FILES];
99 Key *identity_keys[SSH_MAX_IDENTITY_FILES]; 100 Key *identity_keys[SSH_MAX_IDENTITY_FILES];
100 101
101 /* Local TCP/IP forward requests. */ 102 /* Local TCP/IP forward requests. */
@@ -148,15 +149,20 @@ typedef struct {
148#define REQUEST_TTY_YES 2 149#define REQUEST_TTY_YES 2
149#define REQUEST_TTY_FORCE 3 150#define REQUEST_TTY_FORCE 3
150 151
152#define SSHCONF_CHECKPERM 1 /* check permissions on config file */
153#define SSHCONF_USERCONF 2 /* user provided config file not system */
154
151void initialize_options(Options *); 155void initialize_options(Options *);
152void fill_default_options(Options *); 156void fill_default_options(Options *);
153int read_config_file(const char *, const char *, Options *, int); 157int read_config_file(const char *, const char *, Options *, int);
154int parse_forward(Forward *, const char *, int, int); 158int parse_forward(Forward *, const char *, int, int);
155 159
156int 160int
157process_config_line(Options *, const char *, char *, const char *, int, int *); 161process_config_line(Options *, const char *, char *, const char *, int, int *,
162 int);
158 163
159void add_local_forward(Options *, const Forward *); 164void add_local_forward(Options *, const Forward *);
160void add_remote_forward(Options *, const Forward *); 165void add_remote_forward(Options *, const Forward *);
166void add_identity_file(Options *, const char *, const char *, int);
161 167
162#endif /* READCONF_H */ 168#endif /* READCONF_H */