diff options
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/readconf.h b/readconf.h index ee160dfe7..5944cff93 100644 --- a/readconf.h +++ b/readconf.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.h,v 1.88 2010/11/13 23:27:50 djm Exp $ */ | 1 | /* $OpenBSD: readconf.h,v 1.90 2011/05/24 07:15:47 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -27,7 +27,8 @@ typedef struct { | |||
27 | } Forward; | 27 | } Forward; |
28 | /* Data structure for representing option data. */ | 28 | /* Data structure for representing option data. */ |
29 | 29 | ||
30 | #define MAX_SEND_ENV 256 | 30 | #define MAX_SEND_ENV 256 |
31 | #define SSH_MAX_HOSTS_FILES 256 | ||
31 | 32 | ||
32 | typedef struct { | 33 | typedef struct { |
33 | int forward_agent; /* Forward authentication agent. */ | 34 | int forward_agent; /* Forward authentication agent. */ |
@@ -83,10 +84,10 @@ typedef struct { | |||
83 | char *user; /* User to log in as. */ | 84 | char *user; /* User to log in as. */ |
84 | int escape_char; /* Escape character; -2 = none */ | 85 | int escape_char; /* Escape character; -2 = none */ |
85 | 86 | ||
86 | char *system_hostfile;/* Path for /etc/ssh/ssh_known_hosts. */ | 87 | u_int num_system_hostfiles; /* Paths for /etc/ssh/ssh_known_hosts */ |
87 | char *user_hostfile; /* Path for $HOME/.ssh/known_hosts. */ | 88 | char *system_hostfiles[SSH_MAX_HOSTS_FILES]; |
88 | char *system_hostfile2; | 89 | u_int num_user_hostfiles; /* Path for $HOME/.ssh/known_hosts */ |
89 | char *user_hostfile2; | 90 | char *user_hostfiles[SSH_MAX_HOSTS_FILES]; |
90 | char *preferred_authentications; | 91 | char *preferred_authentications; |
91 | char *bind_address; /* local socket address for connection to sshd */ | 92 | char *bind_address; /* local socket address for connection to sshd */ |
92 | char *pkcs11_provider; /* PKCS#11 provider */ | 93 | char *pkcs11_provider; /* PKCS#11 provider */ |
@@ -132,6 +133,7 @@ typedef struct { | |||
132 | 133 | ||
133 | int use_roaming; | 134 | int use_roaming; |
134 | 135 | ||
136 | int request_tty; | ||
135 | } Options; | 137 | } Options; |
136 | 138 | ||
137 | #define SSHCTL_MASTER_NO 0 | 139 | #define SSHCTL_MASTER_NO 0 |
@@ -140,6 +142,11 @@ typedef struct { | |||
140 | #define SSHCTL_MASTER_ASK 3 | 142 | #define SSHCTL_MASTER_ASK 3 |
141 | #define SSHCTL_MASTER_AUTO_ASK 4 | 143 | #define SSHCTL_MASTER_AUTO_ASK 4 |
142 | 144 | ||
145 | #define REQUEST_TTY_AUTO 0 | ||
146 | #define REQUEST_TTY_NO 1 | ||
147 | #define REQUEST_TTY_YES 2 | ||
148 | #define REQUEST_TTY_FORCE 3 | ||
149 | |||
143 | void initialize_options(Options *); | 150 | void initialize_options(Options *); |
144 | void fill_default_options(Options *); | 151 | void fill_default_options(Options *); |
145 | int read_config_file(const char *, const char *, Options *, int); | 152 | int read_config_file(const char *, const char *, Options *, int); |