|
Lines 268-273
input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
Link Here
|
| 268 |
char *user = NULL, *service = NULL, *method = NULL, *style = NULL; |
268 |
char *user = NULL, *service = NULL, *method = NULL, *style = NULL; |
| 269 |
int r, authenticated = 0; |
269 |
int r, authenticated = 0; |
| 270 |
double tstart = monotime_double(); |
270 |
double tstart = monotime_double(); |
|
|
271 |
int was_postponed = authctxt->postponed; |
| 271 |
|
272 |
|
| 272 |
if (authctxt == NULL) |
273 |
if (authctxt == NULL) |
| 273 |
fatal("input_userauth_request: no authctxt"); |
274 |
fatal("input_userauth_request: no authctxt"); |
|
Lines 337-342
input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
Link Here
|
| 337 |
if (m != NULL && authctxt->failures < options.max_authtries) { |
338 |
if (m != NULL && authctxt->failures < options.max_authtries) { |
| 338 |
debug2("input_userauth_request: try method %s", method); |
339 |
debug2("input_userauth_request: try method %s", method); |
| 339 |
authenticated = m->userauth(ssh); |
340 |
authenticated = m->userauth(ssh); |
|
|
341 |
if (!authenticated && was_postponed) |
| 342 |
authctxt->failures++; |
| 340 |
} |
343 |
} |
| 341 |
if (!authctxt->authenticated) |
344 |
if (!authctxt->authenticated) |
| 342 |
ensure_minimum_time_since(tstart, |
345 |
ensure_minimum_time_since(tstart, |