diff options
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/readconf.h b/readconf.h index ded422585..de4b4cb27 100644 --- a/readconf.h +++ b/readconf.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.h,v 1.64 2004/07/11 17:48:47 deraadt Exp $ */ | 1 | /* $OpenBSD: readconf.h,v 1.66 2005/03/01 10:40:27 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -21,9 +21,10 @@ | |||
21 | /* Data structure for representing a forwarding request. */ | 21 | /* Data structure for representing a forwarding request. */ |
22 | 22 | ||
23 | typedef struct { | 23 | typedef struct { |
24 | u_short port; /* Port to forward. */ | 24 | char *listen_host; /* Host (address) to listen on. */ |
25 | char *host; /* Host to connect. */ | 25 | u_short listen_port; /* Port to forward. */ |
26 | u_short host_port; /* Port to connect on host. */ | 26 | char *connect_host; /* Host to connect. */ |
27 | u_short connect_port; /* Port to connect on connect_host. */ | ||
27 | } Forward; | 28 | } Forward; |
28 | /* Data structure for representing option data. */ | 29 | /* Data structure for representing option data. */ |
29 | 30 | ||
@@ -111,17 +112,20 @@ typedef struct { | |||
111 | 112 | ||
112 | char *control_path; | 113 | char *control_path; |
113 | int control_master; | 114 | int control_master; |
115 | |||
116 | int hash_known_hosts; | ||
114 | } Options; | 117 | } Options; |
115 | 118 | ||
116 | 119 | ||
117 | void initialize_options(Options *); | 120 | void initialize_options(Options *); |
118 | void fill_default_options(Options *); | 121 | void fill_default_options(Options *); |
119 | int read_config_file(const char *, const char *, Options *, int); | 122 | int read_config_file(const char *, const char *, Options *, int); |
123 | int parse_forward(Forward *, const char *); | ||
120 | 124 | ||
121 | int | 125 | int |
122 | process_config_line(Options *, const char *, char *, const char *, int, int *); | 126 | process_config_line(Options *, const char *, char *, const char *, int, int *); |
123 | 127 | ||
124 | void add_local_forward(Options *, u_short, const char *, u_short); | 128 | void add_local_forward(Options *, const Forward *); |
125 | void add_remote_forward(Options *, u_short, const char *, u_short); | 129 | void add_remote_forward(Options *, const Forward *); |
126 | 130 | ||
127 | #endif /* READCONF_H */ | 131 | #endif /* READCONF_H */ |