summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-12 23:34:34 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-12 23:34:34 +0000
commit5eabda303aa26c77e4c383230db9ce9d9175e580 (patch)
treea084d793ff9789b41920bb259c7ff309d21eba24 /hostfile.c
parent0998872972ec9a059204344cf0bec64123b3e28c (diff)
- markus@cvs.openbsd.org 2001/04/12 19:15:26
[auth-rhosts.c auth.h auth2.c buffer.c canohost.c canohost.h compat.c compat.h hostfile.c pathnames.h readconf.c readconf.h servconf.c servconf.h ssh.c sshconnect.c sshconnect.h sshconnect1.c sshconnect2.c sshd_config] implement HostbasedAuthentication (= RhostRSAAuthentication for ssh v2) similar to RhostRSAAuthentication unless you enable (the experimental) HostbasedUsesNameFromPacketOnly option. please test. :)
Diffstat (limited to 'hostfile.c')
-rw-r--r--hostfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hostfile.c b/hostfile.c
index 77aa8a899..d532bd6ad 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -36,7 +36,7 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39RCSID("$OpenBSD: hostfile.c,v 1.25 2001/04/06 22:12:47 stevesk Exp $"); 39RCSID("$OpenBSD: hostfile.c,v 1.26 2001/04/12 19:15:24 markus Exp $");
40 40
41#include "packet.h" 41#include "packet.h"
42#include "match.h" 42#include "match.h"
@@ -115,6 +115,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key,
115 char *cp, *cp2; 115 char *cp, *cp2;
116 HostStatus end_return; 116 HostStatus end_return;
117 117
118 debug3("check_host_in_hostfile: filename %s", filename);
118 if (key == NULL) 119 if (key == NULL)
119 fatal("no key to look up"); 120 fatal("no key to look up");
120 /* Open the file containing the list of known hosts. */ 121 /* Open the file containing the list of known hosts. */
@@ -166,6 +167,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key,
166 /* Check if the current key is the same as the given key. */ 167 /* Check if the current key is the same as the given key. */
167 if (key_equal(key, found)) { 168 if (key_equal(key, found)) {
168 /* Ok, they match. */ 169 /* Ok, they match. */
170 debug3("check_host_in_hostfile: match line %d", linenum);
169 fclose(f); 171 fclose(f);
170 return HOST_OK; 172 return HOST_OK;
171 } 173 }