Displaying 1 result from an estimated 1 matches for "thishostlen".
2004 Oct 03
0
[patch] tell user about hosts with same key
...ostname);
+ n->next = l;
+ return n;
+}
+
+HostList *
+find_hosts_by_key(const char *filename, const Key *search_key, HostList *initial_hosts)
+{
+ Key *found;
+ FILE *f;
+ char line[8192];
+ int linenum = 0;
+ u_int kbits;
+ char *cp, *cp2;
+ HostList *hostlist;
+ char *thishost = NULL;
+ u_int thishostlen;
+
+ debug3("find_hosts_by_key: filename %s", filename);
+
+ /* Open the file containing the list of known hosts. */
+ f = fopen(filename, "r");
+ if (!f)
+ return initial_hosts;
+
+ hostlist = initial_hosts;
+ found = key_new(search_key->type);
+
+ /* Go through the file. *...