version 1.46, 2001/03/11 13:25:36 |
version 1.47, 2001/03/20 18:57:04 |
|
|
/* reset state */ |
/* reset state */ |
dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error); |
dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error); |
authctxt->postponed = 0; |
authctxt->postponed = 0; |
|
#ifdef BSD_AUTH |
|
if (authctxt->as) { |
|
auth_close(authctxt->as); |
|
authctxt->as = NULL; |
|
} |
|
#endif |
|
|
/* try to authenticate user */ |
/* try to authenticate user */ |
m = authmethod_lookup(method); |
m = authmethod_lookup(method); |
|
|
m->enabled = NULL; |
m->enabled = NULL; |
packet_done(); |
packet_done(); |
userauth_banner(); |
userauth_banner(); |
return authctxt->valid ? auth_password(authctxt->pw, "") : 0; |
return authctxt->valid ? auth_password(authctxt, "") : 0; |
} |
} |
|
|
int |
int |
|
|
password = packet_get_string(&len); |
password = packet_get_string(&len); |
packet_done(); |
packet_done(); |
if (authctxt->valid && |
if (authctxt->valid && |
auth_password(authctxt->pw, password) == 1) |
auth_password(authctxt, password) == 1) |
authenticated = 1; |
authenticated = 1; |
memset(password, 0, len); |
memset(password, 0, len); |
xfree(password); |
xfree(password); |