diff options
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/readconf.h b/readconf.h index 2f784e6e2..f91dc3899 100644 --- a/readconf.h +++ b/readconf.h | |||
@@ -11,7 +11,7 @@ | |||
11 | * called by a name other than "ssh" or "Secure Shell". | 11 | * called by a name other than "ssh" or "Secure Shell". |
12 | */ | 12 | */ |
13 | 13 | ||
14 | /* RCSID("$OpenBSD: readconf.h,v 1.34 2001/06/26 16:15:24 dugsong Exp $"); */ | 14 | /* RCSID("$OpenBSD: readconf.h,v 1.35 2001/06/26 17:27:24 markus Exp $"); */ |
15 | 15 | ||
16 | #ifndef READCONF_H | 16 | #ifndef READCONF_H |
17 | #define READCONF_H | 17 | #define READCONF_H |
@@ -102,48 +102,14 @@ typedef struct { | |||
102 | } Options; | 102 | } Options; |
103 | 103 | ||
104 | 104 | ||
105 | /* | 105 | void initialize_options(Options *); |
106 | * Initializes options to special values that indicate that they have not yet | 106 | void fill_default_options(Options *); |
107 | * been set. Read_config_file will only set options with this value. Options | 107 | void read_config_file(const char *, const char *, Options *); |
108 | * are processed in the following order: command line, user config file, | ||
109 | * system config file. Last, fill_default_options is called. | ||
110 | */ | ||
111 | void initialize_options(Options *); | ||
112 | |||
113 | /* | ||
114 | * Called after processing other sources of option data, this fills those | ||
115 | * options for which no value has been specified with their default values. | ||
116 | */ | ||
117 | void fill_default_options(Options *); | ||
118 | 108 | ||
119 | /* | ||
120 | * Processes a single option line as used in the configuration files. This | ||
121 | * only sets those values that have not already been set. Returns 0 for legal | ||
122 | * options | ||
123 | */ | ||
124 | int | 109 | int |
125 | process_config_line(Options *, const char *, char *, const char *, int, int *); | 110 | process_config_line(Options *, const char *, char *, const char *, int, int *); |
126 | 111 | ||
127 | /* | 112 | void add_local_forward(Options *, u_short, const char *, u_short); |
128 | * Reads the config file and modifies the options accordingly. Options | 113 | void add_remote_forward(Options *, u_short, const char *, u_short); |
129 | * should already be initialized before this call. This never returns if | ||
130 | * there is an error. If the file does not exist, this returns immediately. | ||
131 | */ | ||
132 | void | ||
133 | read_config_file(const char *, const char *, Options *); | ||
134 | |||
135 | /* | ||
136 | * Adds a local TCP/IP port forward to options. Never returns if there is an | ||
137 | * error. | ||
138 | */ | ||
139 | void | ||
140 | add_local_forward(Options *, u_short, const char *, u_short); | ||
141 | |||
142 | /* | ||
143 | * Adds a remote TCP/IP port forward to options. Never returns if there is | ||
144 | * an error. | ||
145 | */ | ||
146 | void | ||
147 | add_remote_forward(Options *, u_short, const char *, u_short); | ||
148 | 114 | ||
149 | #endif /* READCONF_H */ | 115 | #endif /* READCONF_H */ |