version 1.22, 2000/12/19 23:17:56 |
version 1.23, 2000/12/21 15:10:16 |
|
|
*/ |
*/ |
|
|
HostStatus |
HostStatus |
check_host_in_hostfile(const char *filename, const char *host, Key *key, Key *found) |
check_host_in_hostfile(const char *filename, const char *host, Key *key, |
|
Key *found, int *numret) |
{ |
{ |
FILE *f; |
FILE *f; |
char line[8192]; |
char line[8192]; |
|
|
continue; |
continue; |
if (!hostfile_check_key(kbits, found, host, filename, linenum)) |
if (!hostfile_check_key(kbits, found, host, filename, linenum)) |
continue; |
continue; |
|
|
|
if (numret != NULL) |
|
*numret = linenum; |
|
|
/* Check if the current key is the same as the given key. */ |
/* Check if the current key is the same as the given key. */ |
if (key_equal(key, found)) { |
if (key_equal(key, found)) { |