comparison runopts.h @ 1355:3fdd8c5a0195 fuzz

merge main to fuzz
author Matt Johnston <matt@ucc.asn.au>
date Thu, 18 May 2017 23:45:10 +0800
parents 5c2899e35b63 750ec4ec4cbe
children 4afde04f0607
comparison
equal deleted inserted replaced
1354:7618759e9327 1355:3fdd8c5a0195
31 #include "auth.h" 31 #include "auth.h"
32 #include "tcpfwd.h" 32 #include "tcpfwd.h"
33 33
34 typedef struct runopts { 34 typedef struct runopts {
35 35
36 #if defined(ENABLE_SVR_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD) \ 36 #if DROPBEAR_SVR_REMOTETCPFWD || DROPBEAR_CLI_LOCALTCPFWD \
37 || defined(ENABLE_CLI_REMOTETCPFWD) 37 || DROPBEAR_CLI_REMOTETCPFWD
38 int listen_fwd_all; 38 int listen_fwd_all;
39 #endif 39 #endif
40 unsigned int recv_window; 40 unsigned int recv_window;
41 time_t keepalive_secs; /* Time between sending keepalives. 0 is off */ 41 time_t keepalive_secs; /* Time between sending keepalives. 0 is off */
42 time_t idle_timeout_secs; /* Exit if no traffic is sent/received in this time */ 42 time_t idle_timeout_secs; /* Exit if no traffic is sent/received in this time */
51 DROPBEAR_COMPRESS_ON, 51 DROPBEAR_COMPRESS_ON,
52 DROPBEAR_COMPRESS_OFF, 52 DROPBEAR_COMPRESS_OFF,
53 } compress_mode; 53 } compress_mode;
54 #endif 54 #endif
55 55
56 #ifdef ENABLE_USER_ALGO_LIST 56 #if DROPBEAR_USER_ALGO_LIST
57 char *cipher_list; 57 char *cipher_list;
58 char *mac_list; 58 char *mac_list;
59 #endif 59 #endif
60 60
61 } runopts; 61 } runopts;
95 95
96 int noauthpass; 96 int noauthpass;
97 int norootpass; 97 int norootpass;
98 int allowblankpass; 98 int allowblankpass;
99 99
100 #ifdef ENABLE_SVR_REMOTETCPFWD 100 #if DROPBEAR_SVR_REMOTETCPFWD
101 int noremotetcp; 101 int noremotetcp;
102 #endif 102 #endif
103 #ifdef ENABLE_SVR_LOCALTCPFWD 103 #if DROPBEAR_SVR_LOCALTCPFWD
104 int nolocaltcp; 104 int nolocaltcp;
105 #endif 105 #endif
106 106
107 sign_key *hostkey; 107 sign_key *hostkey;
108 108
111 char *hostkey_files[MAX_HOSTKEYS]; 111 char *hostkey_files[MAX_HOSTKEYS];
112 int num_hostkey_files; 112 int num_hostkey_files;
113 113
114 buffer * banner; 114 buffer * banner;
115 char * pidfile; 115 char * pidfile;
116
117 char * forced_command;
116 118
117 } svr_runopts; 119 } svr_runopts;
118 120
119 extern svr_runopts svr_opts; 121 extern svr_runopts svr_opts;
120 122
135 int always_accept_key; 137 int always_accept_key;
136 int no_hostkey_check; 138 int no_hostkey_check;
137 int no_cmd; 139 int no_cmd;
138 int backgrounded; 140 int backgrounded;
139 int is_subsystem; 141 int is_subsystem;
140 #ifdef ENABLE_CLI_PUBKEY_AUTH 142 #if DROPBEAR_CLI_PUBKEY_AUTH
141 m_list *privkeys; /* Keys to use for public-key auth */ 143 m_list *privkeys; /* Keys to use for public-key auth */
142 #endif 144 #endif
143 #ifdef ENABLE_CLI_ANYTCPFWD 145 #if DROPBEAR_CLI_ANYTCPFWD
144 int exit_on_fwd_failure; 146 int exit_on_fwd_failure;
145 #endif 147 #endif
146 #ifdef ENABLE_CLI_REMOTETCPFWD 148 #if DROPBEAR_CLI_REMOTETCPFWD
147 m_list * remotefwds; 149 m_list * remotefwds;
148 #endif 150 #endif
149 #ifdef ENABLE_CLI_LOCALTCPFWD 151 #if DROPBEAR_CLI_LOCALTCPFWD
150 m_list * localfwds; 152 m_list * localfwds;
151 #endif 153 #endif
152 #ifdef ENABLE_CLI_AGENTFWD 154 #if DROPBEAR_CLI_AGENTFWD
153 int agent_fwd; 155 int agent_fwd;
154 int agent_keys_loaded; /* whether pubkeys has been populated with a 156 int agent_keys_loaded; /* whether pubkeys has been populated with a
155 list of keys held by the agent */ 157 list of keys held by the agent */
156 int agent_fd; /* The agent fd is only set during authentication. Forwarded 158 int agent_fd; /* The agent fd is only set during authentication. Forwarded
157 agent sessions have their own file descriptors */ 159 agent sessions have their own file descriptors */
158 #endif 160 #endif
159 161
160 #ifdef ENABLE_CLI_NETCAT 162 #if DROPBEAR_CLI_NETCAT
161 char *netcat_host; 163 char *netcat_host;
162 unsigned int netcat_port; 164 unsigned int netcat_port;
163 #endif 165 #endif
164 #ifdef ENABLE_CLI_PROXYCMD 166 #if DROPBEAR_CLI_PROXYCMD
165 char *proxycmd; 167 char *proxycmd;
166 #endif 168 #endif
167 } cli_runopts; 169 } cli_runopts;
168 170
169 extern cli_runopts cli_opts; 171 extern cli_runopts cli_opts;
170 void cli_getopts(int argc, char ** argv); 172 void cli_getopts(int argc, char ** argv);
171 173
172 #ifdef ENABLE_USER_ALGO_LIST 174 #if DROPBEAR_USER_ALGO_LIST
173 void parse_ciphers_macs(void); 175 void parse_ciphers_macs(void);
174 #endif 176 #endif
175 177
176 void print_version(void); 178 void print_version(void);
177 179