Mercurial > dropbear
comparison default_options.h @ 1445:a3a96dbf9a58
Use MAX_AUTH_TRIES rather than DEFAULT_AUTH_TRIES, don't limit argument range
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 27 Jun 2017 22:20:38 +0800 |
parents | 517c67cbcd31 |
children | 1ea92dd2ca5f |
comparison
equal
deleted
inserted
replaced
1444:bfed37d12d90 | 1445:a3a96dbf9a58 |
---|---|
378 * come from many IPs */ | 378 * come from many IPs */ |
379 #ifndef MAX_UNAUTH_CLIENTS | 379 #ifndef MAX_UNAUTH_CLIENTS |
380 #define MAX_UNAUTH_CLIENTS 30 | 380 #define MAX_UNAUTH_CLIENTS 30 |
381 #endif | 381 #endif |
382 | 382 |
383 /* Maximum number of failed authentication tries (server option) */ | 383 /* Default maximum number of failed authentication tries (server option) */ |
384 /* -T runtime option overrides */ | |
384 #ifndef MAX_AUTH_TRIES | 385 #ifndef MAX_AUTH_TRIES |
385 #define MAX_AUTH_TRIES 10 | 386 #define MAX_AUTH_TRIES 10 |
386 #endif | |
387 | |
388 /* Default maximum number of failed authentication tries. | |
389 * defaults to MAX_AUTH_TRIES */ | |
390 #ifndef DEFAULT_AUTH_TRIES | |
391 #define DEFAULT_AUTH_TRIES MAX_AUTH_TRIES | |
392 #endif | 387 #endif |
393 | 388 |
394 /* The default file to store the daemon's process ID, for shutdown | 389 /* The default file to store the daemon's process ID, for shutdown |
395 scripts etc. This can be overridden with the -P flag */ | 390 scripts etc. This can be overridden with the -P flag */ |
396 #ifndef DROPBEAR_PIDFILE | 391 #ifndef DROPBEAR_PIDFILE |