comparison options.h @ 302:973fccb59ea4 ucc-axis-hack

propagate from branch 'au.asn.ucc.matt.dropbear' (head 11034278bd1917bebcbdc69cf53b1891ce9db121) to branch 'au.asn.ucc.matt.dropbear.ucc-axis-hack' (head 10a1f614fec73d0820c3f61160d9db409b9beb46)
author Matt Johnston <matt@ucc.asn.au>
date Sat, 25 Mar 2006 12:59:58 +0000
parents 740e782679be 55a99934db87
children 5d5bbca82aba
comparison
equal deleted inserted replaced
299:740e782679be 302:973fccb59ea4
126 * It's useful for systems like OS X where standard password crypts don't work, 126 * It's useful for systems like OS X where standard password crypts don't work,
127 * but there's an interface via a PAM module - don't bother using it otherwise. 127 * but there's an interface via a PAM module - don't bother using it otherwise.
128 * You can't enable both PASSWORD and PAM. */ 128 * You can't enable both PASSWORD and PAM. */
129 129
130 #define ENABLE_SVR_PASSWORD_AUTH 130 #define ENABLE_SVR_PASSWORD_AUTH
131 /*#define ENABLE_SVR_PAM_AUTH*/ 131 /* #define ENABLE_SVR_PAM_AUTH */ /* requires ./configure --enable-pam */
132 #define ENABLE_SVR_PUBKEY_AUTH 132 #define ENABLE_SVR_PUBKEY_AUTH
133 133
134 #define ENABLE_CLI_PASSWORD_AUTH 134 #define ENABLE_CLI_PASSWORD_AUTH
135 #define ENABLE_CLI_PUBKEY_AUTH 135 #define ENABLE_CLI_PUBKEY_AUTH
136 #define ENABLE_CLI_INTERACT_AUTH 136 #define ENABLE_CLI_INTERACT_AUTH
159 /* prngd must be manually set up to produce output */ 159 /* prngd must be manually set up to produce output */
160 /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/ 160 /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/
161 161
162 /* Specify the number of clients we will allow to be connected but 162 /* Specify the number of clients we will allow to be connected but
163 * not yet authenticated. After this limit, connections are rejected */ 163 * not yet authenticated. After this limit, connections are rejected */
164 /* The first setting is per-IP, to avoid denial of service */
165 #ifndef MAX_UNAUTH_PER_IP
166 #define MAX_UNAUTH_PER_IP 5
167 #endif
168
169 /* And then a global limit to avoid chewing memory if connections
170 * come from many IPs */
164 #ifndef MAX_UNAUTH_CLIENTS 171 #ifndef MAX_UNAUTH_CLIENTS
165 #define MAX_UNAUTH_CLIENTS 30 172 #define MAX_UNAUTH_CLIENTS 30
166 #endif 173 #endif
167 174
168 /* Maximum number of failed authentication tries (server option) */ 175 /* Maximum number of failed authentication tries (server option) */
198 /******************************************************************* 205 /*******************************************************************
199 * You shouldn't edit below here unless you know you need to. 206 * You shouldn't edit below here unless you know you need to.
200 *******************************************************************/ 207 *******************************************************************/
201 208
202 #ifndef DROPBEAR_VERSION 209 #ifndef DROPBEAR_VERSION
203 #define DROPBEAR_VERSION "0.47" 210 #define DROPBEAR_VERSION "0.48"
204 #endif 211 #endif
205 212
206 #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION 213 #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION
207 #define PROGNAME "dropbear" 214 #define PROGNAME "dropbear"
208 215
242 249
243 #define DROPBEAR_MAX_PORTS 10 /* max number of ports which can be specified, 250 #define DROPBEAR_MAX_PORTS 10 /* max number of ports which can be specified,
244 ipv4 and ipv6 don't count twice */ 251 ipv4 and ipv6 don't count twice */
245 252
246 #define _PATH_TTY "/dev/tty" 253 #define _PATH_TTY "/dev/tty"
254
255 #define _PATH_CP "/bin/cp"
247 256
248 /* Timeouts in seconds */ 257 /* Timeouts in seconds */
249 #define SELECT_TIMEOUT 20 258 #define SELECT_TIMEOUT 20
250 259
251 /* success/failure defines */ 260 /* success/failure defines */