diff options
Diffstat (limited to 'auth-rhosts.c')
-rw-r--r-- | auth-rhosts.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c index 2ff2cffa9..c17c13cc1 100644 --- a/auth-rhosts.c +++ b/auth-rhosts.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-rhosts.c,v 1.46 2014/12/23 22:42:48 djm Exp $ */ | 1 | /* $OpenBSD: auth-rhosts.c,v 1.47 2016/03/07 19:02:43 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -30,14 +30,15 @@ | |||
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | 31 | ||
32 | #include "packet.h" | 32 | #include "packet.h" |
33 | #include "buffer.h" | ||
34 | #include "uidswap.h" | 33 | #include "uidswap.h" |
35 | #include "pathnames.h" | 34 | #include "pathnames.h" |
36 | #include "log.h" | 35 | #include "log.h" |
37 | #include "misc.h" | 36 | #include "misc.h" |
37 | #include "buffer.h" /* XXX */ | ||
38 | #include "key.h" /* XXX */ | ||
38 | #include "servconf.h" | 39 | #include "servconf.h" |
39 | #include "canohost.h" | 40 | #include "canohost.h" |
40 | #include "key.h" | 41 | #include "sshkey.h" |
41 | #include "hostfile.h" | 42 | #include "hostfile.h" |
42 | #include "auth.h" | 43 | #include "auth.h" |
43 | 44 | ||
@@ -189,10 +190,11 @@ check_rhosts_file(const char *filename, const char *hostname, | |||
189 | int | 190 | int |
190 | auth_rhosts(struct passwd *pw, const char *client_user) | 191 | auth_rhosts(struct passwd *pw, const char *client_user) |
191 | { | 192 | { |
193 | struct ssh *ssh = active_state; /* XXX */ | ||
192 | const char *hostname, *ipaddr; | 194 | const char *hostname, *ipaddr; |
193 | 195 | ||
194 | hostname = get_canonical_hostname(options.use_dns); | 196 | hostname = auth_get_canonical_hostname(ssh, options.use_dns); |
195 | ipaddr = get_remote_ipaddr(); | 197 | ipaddr = ssh_remote_ipaddr(ssh); |
196 | return auth_rhosts2(pw, client_user, hostname, ipaddr); | 198 | return auth_rhosts2(pw, client_user, hostname, ipaddr); |
197 | } | 199 | } |
198 | 200 | ||