From d7bc28236dc95fbd09fcc57eeba13d73822c44f1 Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Mon, 29 May 2017 10:25:09 +0100 Subject: 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 --- runopts.h | 1 + 1 file changed, 1 insertion(+) (limited to 'runopts.h') diff --git a/runopts.h b/runopts.h index cecdc22..47c12f0 100644 --- a/runopts.h +++ b/runopts.h @@ -96,6 +96,7 @@ typedef struct svr_runopts { int noauthpass; int norootpass; int allowblankpass; + unsigned int maxauthtries; #if DROPBEAR_SVR_REMOTETCPFWD int noremotetcp; -- cgit v1.2.1