summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-01-20 14:55:27 +1100
committerDamien Miller <djm@mindrot.org>2019-01-20 14:55:27 +1100
commit9b655dc9c9a353f0a527f0c6c43a5e35653c9503 (patch)
tree78b3512ffa1a9e5b8d954aca6fb45a0a3045504b /auth2.c
parent3f0786bbe73609ac96e5a0d91425ee21129f8e04 (diff)
last bits of old packet API / active_state global
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2.c b/auth2.c
index a80b3f872..e43350c36 100644
--- a/auth2.c
+++ b/auth2.c
@@ -294,7 +294,7 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
294 /* Invalid user, fake password information */ 294 /* Invalid user, fake password information */
295 authctxt->pw = fakepw(); 295 authctxt->pw = fakepw();
296#ifdef SSH_AUDIT_EVENTS 296#ifdef SSH_AUDIT_EVENTS
297 PRIVSEP(audit_event(SSH_INVALID_USER)); 297 PRIVSEP(audit_event(ssh, SSH_INVALID_USER));
298#endif 298#endif
299 } 299 }
300#ifdef USE_PAM 300#ifdef USE_PAM
@@ -369,7 +369,7 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method,
369 !auth_root_allowed(ssh, method)) { 369 !auth_root_allowed(ssh, method)) {
370 authenticated = 0; 370 authenticated = 0;
371#ifdef SSH_AUDIT_EVENTS 371#ifdef SSH_AUDIT_EVENTS
372 PRIVSEP(audit_event(SSH_LOGIN_ROOT_DENIED)); 372 PRIVSEP(audit_event(ssh, SSH_LOGIN_ROOT_DENIED));
373#endif 373#endif
374 } 374 }
375 375
@@ -430,7 +430,7 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method,
430 authctxt->failures++; 430 authctxt->failures++;
431 if (authctxt->failures >= options.max_authtries) { 431 if (authctxt->failures >= options.max_authtries) {
432#ifdef SSH_AUDIT_EVENTS 432#ifdef SSH_AUDIT_EVENTS
433 PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); 433 PRIVSEP(audit_event(ssh, SSH_LOGIN_EXCEED_MAXTRIES));
434#endif 434#endif
435 auth_maxtries_exceeded(ssh); 435 auth_maxtries_exceeded(ssh);
436 } 436 }