comparison auth.h @ 1622:e11ed628708b

- Add adaptive authentication failure delay - Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
author Matt Johnston <matt@ucc.asn.au>
date Mon, 05 Nov 2018 23:36:34 +0800
parents 5d2d1021ca00
children 8a485389330f
comparison
equal deleted inserted replaced
1621:8cdabd7d34aa 1622:e11ed628708b
106 valid */ 106 valid */
107 unsigned int failcount; /* Number of (failed) authentication attempts.*/ 107 unsigned int failcount; /* Number of (failed) authentication attempts.*/
108 unsigned int authdone; /* 0 if we haven't authed, 1 if we have. Applies for 108 unsigned int authdone; /* 0 if we haven't authed, 1 if we have. Applies for
109 client and server (though has differing 109 client and server (though has differing
110 meanings). */ 110 meanings). */
111
111 unsigned int perm_warn; /* Server only, set if bad permissions on 112 unsigned int perm_warn; /* Server only, set if bad permissions on
112 ~/.ssh/authorized_keys have already been 113 ~/.ssh/authorized_keys have already been
113 logged. */ 114 logged. */
114 unsigned int checkusername_failed; /* Server only, set if checkusername 115 unsigned int checkusername_failed; /* Server only, set if checkusername
115 has already failed */ 116 has already failed */
117 struct timespec auth_starttime; /* Server only, time of receiving current
118 SSH_MSG_USERAUTH_REQUEST */
116 119
117 /* These are only used for the server */ 120 /* These are only used for the server */
118 uid_t pw_uid; 121 uid_t pw_uid;
119 gid_t pw_gid; 122 gid_t pw_gid;
120 char *pw_dir; 123 char *pw_dir;