version 1.55.2.2, 2004/08/19 22:37:31 |
version 1.56, 2003/10/11 08:24:08 |
|
|
} Forward; |
} Forward; |
/* Data structure for representing option data. */ |
/* Data structure for representing option data. */ |
|
|
#define MAX_SEND_ENV 256 |
|
|
|
typedef struct { |
typedef struct { |
int forward_agent; /* Forward authentication agent. */ |
int forward_agent; /* Forward authentication agent. */ |
int forward_x11; /* Forward X11 display. */ |
int forward_x11; /* Forward X11 display. */ |
|
|
int compression; /* Compress packets in both directions. */ |
int compression; /* Compress packets in both directions. */ |
int compression_level; /* Compression level 1 (fast) to 9 |
int compression_level; /* Compression level 1 (fast) to 9 |
* (best). */ |
* (best). */ |
int tcp_keep_alive; /* Set SO_KEEPALIVE. */ |
int keepalives; /* Set SO_KEEPALIVE. */ |
LogLevel log_level; /* Level for logging. */ |
LogLevel log_level; /* Level for logging. */ |
|
|
int port; /* Port to connect. */ |
int port; /* Port to connect. */ |
|
|
int connection_attempts; /* Max attempts (seconds) before |
int connection_attempts; /* Max attempts (seconds) before |
* giving up */ |
* giving up */ |
int connection_timeout; /* Max time (seconds) before |
int connection_timeout; /* Max time (seconds) before |
* aborting connection attempt */ |
* aborting connection attempt */ |
int number_of_password_prompts; /* Max number of password |
int number_of_password_prompts; /* Max number of password |
* prompts. */ |
* prompts. */ |
int cipher; /* Cipher to use. */ |
int cipher; /* Cipher to use. */ |
|
|
int enable_ssh_keysign; |
int enable_ssh_keysign; |
int rekey_limit; |
int rekey_limit; |
int no_host_authentication_for_localhost; |
int no_host_authentication_for_localhost; |
int identities_only; |
|
int server_alive_interval; |
|
int server_alive_count_max; |
|
|
|
int num_send_env; |
|
char *send_env[MAX_SEND_ENV]; |
|
|
|
char *control_path; |
|
int control_master; |
|
} Options; |
} Options; |
|
|
|
|
void initialize_options(Options *); |
void initialize_options(Options *); |
void fill_default_options(Options *); |
void fill_default_options(Options *); |
int read_config_file(const char *, const char *, Options *, int); |
int read_config_file(const char *, const char *, Options *); |
|
|
int |
int |
process_config_line(Options *, const char *, char *, const char *, int, int *); |
process_config_line(Options *, const char *, char *, const char *, int, int *); |