diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hostfile.c b/hostfile.c index 42a8aa71d..88c054912 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: hostfile.c,v 1.31 2003/04/08 20:21:28 itojun Exp $"); | 39 | RCSID("$OpenBSD: hostfile.c,v 1.32 2003/11/10 16:23:41 jakob Exp $"); |
40 | 40 | ||
41 | #include "packet.h" | 41 | #include "packet.h" |
42 | #include "match.h" | 42 | #include "match.h" |
@@ -72,7 +72,7 @@ hostfile_read_key(char **cpp, u_int *bitsp, Key *ret) | |||
72 | } | 72 | } |
73 | 73 | ||
74 | static int | 74 | static int |
75 | hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum) | 75 | hostfile_check_key(int bits, const Key *key, const char *host, const char *filename, int linenum) |
76 | { | 76 | { |
77 | if (key == NULL || key->type != KEY_RSA1 || key->rsa == NULL) | 77 | if (key == NULL || key->type != KEY_RSA1 || key->rsa == NULL) |
78 | return 1; | 78 | return 1; |
@@ -98,7 +98,7 @@ hostfile_check_key(int bits, Key *key, const char *host, const char *filename, i | |||
98 | 98 | ||
99 | static HostStatus | 99 | static HostStatus |
100 | check_host_in_hostfile_by_key_or_type(const char *filename, | 100 | check_host_in_hostfile_by_key_or_type(const char *filename, |
101 | const char *host, Key *key, int keytype, Key *found, int *numret) | 101 | const char *host, const Key *key, int keytype, Key *found, int *numret) |
102 | { | 102 | { |
103 | FILE *f; | 103 | FILE *f; |
104 | char line[8192]; | 104 | char line[8192]; |
@@ -188,7 +188,7 @@ check_host_in_hostfile_by_key_or_type(const char *filename, | |||
188 | } | 188 | } |
189 | 189 | ||
190 | HostStatus | 190 | HostStatus |
191 | check_host_in_hostfile(const char *filename, const char *host, Key *key, | 191 | check_host_in_hostfile(const char *filename, const char *host, const Key *key, |
192 | Key *found, int *numret) | 192 | Key *found, int *numret) |
193 | { | 193 | { |
194 | if (key == NULL) | 194 | if (key == NULL) |
@@ -211,7 +211,7 @@ lookup_key_in_hostfile_by_type(const char *filename, const char *host, | |||
211 | */ | 211 | */ |
212 | 212 | ||
213 | int | 213 | int |
214 | add_host_to_hostfile(const char *filename, const char *host, Key *key) | 214 | add_host_to_hostfile(const char *filename, const char *host, const Key *key) |
215 | { | 215 | { |
216 | FILE *f; | 216 | FILE *f; |
217 | int success = 0; | 217 | int success = 0; |