version 1.36, 2003/06/02 09:17:34 |
version 1.37, 2003/11/04 08:54:09 |
|
|
* its host key. Returns true if authentication succeeds. |
* its host key. Returns true if authentication succeeds. |
*/ |
*/ |
int |
int |
auth_rhosts_rsa(struct passwd *pw, char *cuser, Key *client_host_key) |
auth_rhosts_rsa(Authctxt *authctxt, char *cuser, Key *client_host_key) |
{ |
{ |
char *chost; |
char *chost; |
|
struct passwd *pw = authctxt->pw; |
|
|
debug("Trying rhosts with RSA host authentication for client user %.100s", |
debug("Trying rhosts with RSA host authentication for client user %.100s", |
cuser); |
cuser); |
|
|
if (pw == NULL || client_host_key == NULL || |
if (!authctxt->valid || client_host_key == NULL || |
client_host_key->rsa == NULL) |
client_host_key->rsa == NULL) |
return 0; |
return 0; |
|
|