version 1.35, 2001/02/04 13:30:11 |
version 1.36, 2001/02/04 15:32:22 |
|
|
if ((style = strchr(user, ':')) != NULL) |
if ((style = strchr(user, ':')) != NULL) |
*style++ = 0; |
*style++ = 0; |
|
|
if (authctxt->attempt++ == 0) { |
if (authctxt->attempt++ == 0) { |
/* setup auth context */ |
/* setup auth context */ |
struct passwd *pw = NULL; |
struct passwd *pw = NULL; |
setproctitle("%s", user); |
setproctitle("%s", user); |
|
|
return; |
return; |
} |
} |
|
|
void |
void |
userauth_reply(Authctxt *authctxt, int authenticated) |
userauth_reply(Authctxt *authctxt, int authenticated) |
{ |
{ |
char *methods; |
char *methods; |
|
|
authctxt->success = 1; |
authctxt->success = 1; |
} else { |
} else { |
if (authctxt->failures++ > AUTH_FAIL_MAX) |
if (authctxt->failures++ > AUTH_FAIL_MAX) |
packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
methods = authmethods_get(); |
methods = authmethods_get(); |
packet_start(SSH2_MSG_USERAUTH_FAILURE); |
packet_start(SSH2_MSG_USERAUTH_FAILURE); |
packet_put_cstring(methods); |
packet_put_cstring(methods); |