diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-26 22:07:18 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-26 22:07:18 +0800 |
commit | 74353696153fd00005b97316822f9895e7f7750f (patch) | |
tree | 14977ad3a2f8e4a8a3531e425da0cfa428f184d6 /auth.h | |
parent | 2e836bb553d72d2546de80b7f4da35355efe5baf (diff) |
- Don't try to handle changed usernames
- Avoid logging repeated failed username messages
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |