summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-26 22:07:18 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-26 22:07:18 +0800
commita6da4494eca9103bf70f57d12c1f6c45b52c6b86 (patch)
treef8008fb3cc165598dd336b99b2263f4b73a64c74 /auth.h
parentcc9151aaa84a7ba3d23f4febd1a16384911181ea (diff)
downloaddropbear-a6da4494eca9103bf70f57d12c1f6c45b52c6b86.tar.gz
- Don't try to handle changed usernames
- Avoid logging repeated failed username messages
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth.h b/auth.h
index 2c70b1d..da498f5 100644
--- a/auth.h
+++ b/auth.h
@@ -105,12 +105,14 @@ struct AuthState {
unsigned char authtypes; /* Flags indicating which auth types are still
valid */
unsigned int failcount; /* Number of (failed) authentication attempts.*/
- unsigned authdone : 1; /* 0 if we haven't authed, 1 if we have. Applies for
+ unsigned int authdone; /* 0 if we haven't authed, 1 if we have. Applies for
client and server (though has differing
meanings). */
- unsigned perm_warn : 1; /* Server only, set if bad permissions on
+ 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 */
/* These are only used for the server */
uid_t pw_uid;