summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
commitd7601d7812114f6a7e7f511c3b6840068176782c (patch)
treed4f82f34874a23f2279e08e1c9f248196a1eb9fb /auth.h
parent8f479150eab6cda9ae421b1caa467c3b3ddf6076 (diff)
downloaddropbear-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.h3
1 files changed, 3 insertions, 0 deletions
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;