version 1.1, 1999/09/28 04:45:35 |
version 1.2, 1999/10/03 21:50:03 |
|
|
int ignore_rhosts, int strict_modes) |
int ignore_rhosts, int strict_modes) |
{ |
{ |
const char *canonical_hostname; |
const char *canonical_hostname; |
|
HostStatus host_status; |
|
BIGNUM *ke, *kn; |
|
|
debug("Trying rhosts with RSA host authentication for %.100s", client_user); |
debug("Trying rhosts with RSA host authentication for %.100s", client_user); |
|
|
|
|
|
|
/* Check if we know the host and its host key. */ |
/* Check if we know the host and its host key. */ |
/* Check system-wide host file. */ |
/* Check system-wide host file. */ |
if (check_host_in_hostfile(SSH_SYSTEM_HOSTFILE, canonical_hostname, |
ke = BN_new(); |
client_host_key_bits, client_host_key_e, |
kn = BN_new(); |
client_host_key_n) != HOST_OK) |
host_status = check_host_in_hostfile(SSH_SYSTEM_HOSTFILE, canonical_hostname, |
{ |
client_host_key_bits, client_host_key_e, |
/* The host key was not found. */ |
client_host_key_n, ke, kn); |
debug("Rhosts with RSA host authentication denied: unknown or invalid host key"); |
BN_free(ke); |
packet_send_debug("Your host key cannot be verified: unknown or invalid host key."); |
BN_free(kn); |
return 0; |
if (host_status != HOST_OK) { |
} |
/* The host key was not found. */ |
|
debug("Rhosts with RSA host authentication denied: unknown or invalid host key"); |
|
packet_send_debug("Your host key cannot be verified: unknown or invalid host key."); |
|
return 0; |
|
} |
|
|
/* A matching host key was found and is known. */ |
/* A matching host key was found and is known. */ |
|
|
/* Perform the challenge-response dialog with the client for the host key. */ |
/* Perform the challenge-response dialog with the client for the host key. */ |