Mercurial > dropbear
diff auth.h @ 1539:51df3d53b050
- Don't try to handle changed usernames
- Avoid logging repeated failed username messages
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 26 Feb 2018 22:07:18 +0800 |
parents | 06d52bcb8094 |
children | 5d2d1021ca00 |
line wrap: on
line diff
--- a/auth.h Mon Feb 26 14:31:15 2018 +0100 +++ b/auth.h Mon Feb 26 22:07:18 2018 +0800 @@ -105,12 +105,14 @@ 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;