diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 04:46:56 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 04:46:56 +0000 |
commit | 4cc240dabbd81a308f06f2717b1942041fe0e205 (patch) | |
tree | 07291c8c2c467fc2ecec9166ed0d8ec1e75631a3 /readconf.h | |
parent | 5bf5d67d497ed91c19851db6b904d54003afe67e (diff) |
- markus@cvs.openbsd.org 2001/06/26 17:27:25
[authfd.h authfile.h auth.h auth-options.h bufaux.h buffer.h
canohost.h channels.h cipher.h clientloop.h compat.h compress.h
crc32.h deattack.h dh.h dispatch.h groupaccess.c groupaccess.h
hostfile.h kex.h key.h log.c log.h mac.h misc.c misc.h mpaux.h
packet.h radix.h readconf.h readpass.h rsa.h servconf.h serverloop.h
session.h sftp-common.c sftp-common.h sftp-glob.h sftp-int.h
sshconnect.h ssh-dss.h sshlogin.h sshpty.h ssh-rsa.h sshtty.h
tildexpand.h uidswap.h uuencode.h xmalloc.h]
remove comments from .h, since they are cut&paste from the .c files
and out of sync
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 */ |