Displaying 1 result from an estimated 1 matches for "match_hashed_hostnam".
Did you mean:
match_hashed_hostname
2003 Mar 04
0
hashing known_hosts
...openssh-3.4p1-hash/hostfile.c
--- openssh-3.4p1/hostfile.c Thu Dec 20 20:47:09 2001
+++ openssh-3.4p1-hash/hostfile.c Mon Mar 3 17:28:25 2003
@@ -135,8 +135,13 @@ check_host_in_hostfile(const char *filen
;
/* Check if the host name matches. */
+#ifdef HASH_KNOWN_HOSTS
+ if (match_hashed_hostname(host, cp, (u_int) (cp2 - cp)) != 1)
+ continue;
+#else
if (match_hostname(host, cp, (u_int) (cp2 - cp)) != 1)
continue;
+#endif
/* Got a match. Skip host name. */
cp = cp2;
diff -u -p openssh-3.4p1/match.c openssh-3.4p1-hash/match.c
--- openssh-3.4p1/match.c...