diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
commit | d7601d7812114f6a7e7f511c3b6840068176782c (patch) | |
tree | d4f82f34874a23f2279e08e1c9f248196a1eb9fb /auth.h | |
parent | 8f479150eab6cda9ae421b1caa467c3b3ddf6076 (diff) | |
download | dropbear-d7601d7812114f6a7e7f511c3b6840068176782c.tar.gz |
- Add adaptive authentication failure delay
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |