search for: initial_host

Displaying 1 result from an estimated 1 matches for "initial_host".

Did you mean: initial_hosts
2004 Oct 03
0
[patch] tell user about hosts with same key
...host_to_hostlist(HostList *l, char *hostname) +{ + HostList *n = malloc(sizeof(*n)); + n->host = malloc(strlen(hostname) + 1); + sprintf(n->host, "%s", hostname); + 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...