version 1.14, 2000/04/12 07:45:44 |
version 1.15, 2000/04/14 10:30:32 |
|
|
/* |
/* |
* |
* |
* readconf.h |
* readconf.h |
* |
* |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* |
* |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* All rights reserved |
* All rights reserved |
* |
* |
* Created: Sat Apr 22 00:25:29 1995 ylo |
* Created: Sat Apr 22 00:25:29 1995 ylo |
* |
* |
* Functions for reading the configuration file. |
* Functions for reading the configuration file. |
* |
* |
*/ |
*/ |
|
|
/* RCSID("$Id$"); */ |
/* RCSID("$Id$"); */ |
|
|
* only sets those values that have not already been set. Returns 0 for legal |
* only sets those values that have not already been set. Returns 0 for legal |
* options |
* options |
*/ |
*/ |
int |
int |
process_config_line(Options * options, const char *host, |
process_config_line(Options * options, const char *host, |
char *line, const char *filename, int linenum, |
char *line, const char *filename, int linenum, |
int *activep); |
int *activep); |
|
|
* should already be initialized before this call. This never returns if |
* should already be initialized before this call. This never returns if |
* there is an error. If the file does not exist, this returns immediately. |
* there is an error. If the file does not exist, this returns immediately. |
*/ |
*/ |
void |
void |
read_config_file(const char *filename, const char *host, |
read_config_file(const char *filename, const char *host, |
Options * options); |
Options * options); |
|
|
|
|
* Adds a local TCP/IP port forward to options. Never returns if there is an |
* Adds a local TCP/IP port forward to options. Never returns if there is an |
* error. |
* error. |
*/ |
*/ |
void |
void |
add_local_forward(Options * options, u_short port, const char *host, |
add_local_forward(Options * options, u_short port, const char *host, |
u_short host_port); |
u_short host_port); |
|
|
|
|
* Adds a remote TCP/IP port forward to options. Never returns if there is |
* Adds a remote TCP/IP port forward to options. Never returns if there is |
* an error. |
* an error. |
*/ |
*/ |
void |
void |
add_remote_forward(Options * options, u_short port, const char *host, |
add_remote_forward(Options * options, u_short port, const char *host, |
u_short host_port); |
u_short host_port); |
|
|