Mercurial > dropbear
comparison default_options.h.in @ 1442:517c67cbcd31
dropbear server: support -T max auth tries
Add support for '-T n' for a run-time specification for maximum number
of authentication attempts where 'n' is between 1 and compile time
option MAX_AUTH_TRIES.
A default number of tries can be specified at compile time using
'DEFAULT_AUTH_TRIES' which itself defaults to MAX_AUTH_TRIES for
backwards compatibility.
Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
author | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> |
---|---|
date | Mon, 29 May 2017 10:25:09 +0100 |
parents | 4f8eb331174f |
children | a3a96dbf9a58 |
comparison
equal
deleted
inserted
replaced
1438:4f8eb331174f | 1442:517c67cbcd31 |
---|---|
259 #define MAX_UNAUTH_CLIENTS 30 | 259 #define MAX_UNAUTH_CLIENTS 30 |
260 | 260 |
261 /* Maximum number of failed authentication tries (server option) */ | 261 /* Maximum number of failed authentication tries (server option) */ |
262 #define MAX_AUTH_TRIES 10 | 262 #define MAX_AUTH_TRIES 10 |
263 | 263 |
264 /* Default maximum number of failed authentication tries. | |
265 * defaults to MAX_AUTH_TRIES */ | |
266 #define DEFAULT_AUTH_TRIES MAX_AUTH_TRIES | |
267 | |
264 /* The default file to store the daemon's process ID, for shutdown | 268 /* The default file to store the daemon's process ID, for shutdown |
265 scripts etc. This can be overridden with the -P flag */ | 269 scripts etc. This can be overridden with the -P flag */ |
266 #define DROPBEAR_PIDFILE "/var/run/dropbear.pid" | 270 #define DROPBEAR_PIDFILE "/var/run/dropbear.pid" |
267 | 271 |
268 /* The command to invoke for xauth when using X11 forwarding. | 272 /* The command to invoke for xauth when using X11 forwarding. |