diff options
Diffstat (limited to 'auth-rh-rsa.c')
-rw-r--r-- | auth-rh-rsa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-rh-rsa.c b/auth-rh-rsa.c index 2a88e18b3..c940ec581 100644 --- a/auth-rh-rsa.c +++ b/auth-rh-rsa.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: auth-rh-rsa.c,v 1.31 2002/03/16 17:22:09 markus Exp $"); | 16 | RCSID("$OpenBSD: auth-rh-rsa.c,v 1.32 2002/03/18 17:50:31 provos Exp $"); |
17 | 17 | ||
18 | #include "packet.h" | 18 | #include "packet.h" |
19 | #include "uidswap.h" | 19 | #include "uidswap.h" |
@@ -25,6 +25,8 @@ RCSID("$OpenBSD: auth-rh-rsa.c,v 1.31 2002/03/16 17:22:09 markus Exp $"); | |||
25 | #include "auth.h" | 25 | #include "auth.h" |
26 | #include "canohost.h" | 26 | #include "canohost.h" |
27 | 27 | ||
28 | #include "monitor_wrap.h" | ||
29 | |||
28 | /* import */ | 30 | /* import */ |
29 | extern ServerOptions options; | 31 | extern ServerOptions options; |
30 | 32 | ||
@@ -69,7 +71,7 @@ auth_rhosts_rsa(struct passwd *pw, char *cuser, Key *client_host_key) | |||
69 | chost = (char *)get_canonical_hostname(options.verify_reverse_mapping); | 71 | chost = (char *)get_canonical_hostname(options.verify_reverse_mapping); |
70 | debug("Rhosts RSA authentication: canonical host %.900s", chost); | 72 | debug("Rhosts RSA authentication: canonical host %.900s", chost); |
71 | 73 | ||
72 | if (!auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key)) { | 74 | if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) { |
73 | debug("Rhosts with RSA host authentication denied: unknown or invalid host key"); | 75 | debug("Rhosts with RSA host authentication denied: unknown or invalid host key"); |
74 | packet_send_debug("Your host key cannot be verified: unknown or invalid host key."); | 76 | packet_send_debug("Your host key cannot be verified: unknown or invalid host key."); |
75 | return 0; | 77 | return 0; |