aboutsummaryrefslogtreecommitdiff
path: root/auth-rhosts.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-01-31 12:29:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-01-31 12:29:48 +0000
commitab4ec008e7abd1c8098428dbf9642c3685383045 (patch)
treefeb16b3395021bd0f5667967c25f2bb77f8b691e /auth-rhosts.c
parent8f8c559269bccf737d318b89630a0ef812865b99 (diff)
downloadsrc-ab4ec008e7abd1c8098428dbf9642c3685383045.tar.gz
src-ab4ec008e7abd1c8098428dbf9642c3685383045.zip
Notes
Diffstat (limited to 'auth-rhosts.c')
-rw-r--r--auth-rhosts.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c
index ee9e827afd08..0ef344712db5 100644
--- a/auth-rhosts.c
+++ b/auth-rhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-rhosts.c,v 1.46 2014/12/23 22:42:48 djm Exp $ */
+/* $OpenBSD: auth-rhosts.c,v 1.47 2016/03/07 19:02:43 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -30,14 +30,15 @@
#include <unistd.h>
#include "packet.h"
-#include "buffer.h"
#include "uidswap.h"
#include "pathnames.h"
#include "log.h"
#include "misc.h"
+#include "buffer.h" /* XXX */
+#include "key.h" /* XXX */
#include "servconf.h"
#include "canohost.h"
-#include "key.h"
+#include "sshkey.h"
#include "hostfile.h"
#include "auth.h"
@@ -189,10 +190,11 @@ check_rhosts_file(const char *filename, const char *hostname,
int
auth_rhosts(struct passwd *pw, const char *client_user)
{
+ struct ssh *ssh = active_state; /* XXX */
const char *hostname, *ipaddr;
- hostname = get_canonical_hostname(options.use_dns);
- ipaddr = get_remote_ipaddr();
+ hostname = auth_get_canonical_hostname(ssh, options.use_dns);
+ ipaddr = ssh_remote_ipaddr(ssh);
return auth_rhosts2(pw, client_user, hostname, ipaddr);
}