version 1.31, 2002/03/16 17:22:09 |
version 1.32, 2002/03/18 17:50:31 |
|
|
#include "auth.h" |
#include "auth.h" |
#include "canohost.h" |
#include "canohost.h" |
|
|
|
#include "monitor_wrap.h" |
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
|
|
|
|
chost = (char *)get_canonical_hostname(options.verify_reverse_mapping); |
chost = (char *)get_canonical_hostname(options.verify_reverse_mapping); |
debug("Rhosts RSA authentication: canonical host %.900s", chost); |
debug("Rhosts RSA authentication: canonical host %.900s", chost); |
|
|
if (!auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key)) { |
if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) { |
debug("Rhosts with RSA host authentication denied: unknown or invalid host key"); |
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."); |
packet_send_debug("Your host key cannot be verified: unknown or invalid host key."); |
return 0; |
return 0; |