From d7601d7812114f6a7e7f511c3b6840068176782c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 5 Nov 2018 23:36:34 +0800 Subject: - Add adaptive authentication failure delay - Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms --- auth.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'auth.h') diff --git a/auth.h b/auth.h index 98f5468..7126a4a 100644 --- a/auth.h +++ b/auth.h @@ -108,11 +108,14 @@ struct AuthState { unsigned int authdone; /* 0 if we haven't authed, 1 if we have. Applies for client and server (though has differing meanings). */ + unsigned int perm_warn; /* Server only, set if bad permissions on ~/.ssh/authorized_keys have already been logged. */ unsigned int checkusername_failed; /* Server only, set if checkusername has already failed */ + struct timespec auth_starttime; /* Server only, time of receiving current + SSH_MSG_USERAUTH_REQUEST */ /* These are only used for the server */ uid_t pw_uid; -- cgit v1.2.1