diff options
author | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> | 2017-05-29 10:25:09 +0100 |
---|---|---|
committer | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> | 2017-05-29 10:25:09 +0100 |
commit | d7bc28236dc95fbd09fcc57eeba13d73822c44f1 (patch) | |
tree | f2fa75ed04eabe2945a60a922e7936a1f6acf3df /runopts.h | |
parent | 9dcec7cc9b35a578e2dcd773c1d09fa051a6fbcb (diff) | |
download | dropbear-d7bc28236dc95fbd09fcc57eeba13d73822c44f1.tar.gz |
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 <kevin@darbyshire-bryant.me.uk>
Diffstat (limited to 'runopts.h')
-rw-r--r-- | runopts.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -96,6 +96,7 @@ typedef struct svr_runopts { int noauthpass; int norootpass; int allowblankpass; + unsigned int maxauthtries; #if DROPBEAR_SVR_REMOTETCPFWD int noremotetcp; |