diff options
Diffstat (limited to 'hostfile.h')
-rw-r--r-- | hostfile.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hostfile.h b/hostfile.h index 679c034f3..d90973f42 100644 --- a/hostfile.h +++ b/hostfile.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hostfile.h,v 1.20 2013/07/12 00:19:58 djm Exp $ */ | 1 | /* $OpenBSD: hostfile.h,v 1.21 2015/01/15 09:40:00 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -26,7 +26,7 @@ struct hostkey_entry { | |||
26 | char *host; | 26 | char *host; |
27 | char *file; | 27 | char *file; |
28 | u_long line; | 28 | u_long line; |
29 | Key *key; | 29 | struct sshkey *key; |
30 | HostkeyMarker marker; | 30 | HostkeyMarker marker; |
31 | }; | 31 | }; |
32 | struct hostkeys; | 32 | struct hostkeys; |
@@ -35,13 +35,14 @@ struct hostkeys *init_hostkeys(void); | |||
35 | void load_hostkeys(struct hostkeys *, const char *, const char *); | 35 | void load_hostkeys(struct hostkeys *, const char *, const char *); |
36 | void free_hostkeys(struct hostkeys *); | 36 | void free_hostkeys(struct hostkeys *); |
37 | 37 | ||
38 | HostStatus check_key_in_hostkeys(struct hostkeys *, Key *, | 38 | HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *, |
39 | const struct hostkey_entry **); | 39 | const struct hostkey_entry **); |
40 | int lookup_key_in_hostkeys_by_type(struct hostkeys *, int, | 40 | int lookup_key_in_hostkeys_by_type(struct hostkeys *, int, |
41 | const struct hostkey_entry **); | 41 | const struct hostkey_entry **); |
42 | 42 | ||
43 | int hostfile_read_key(char **, int *, Key *); | 43 | int hostfile_read_key(char **, u_int *, struct sshkey *); |
44 | int add_host_to_hostfile(const char *, const char *, const Key *, int); | 44 | int add_host_to_hostfile(const char *, const char *, |
45 | const struct sshkey *, int); | ||
45 | 46 | ||
46 | #define HASH_MAGIC "|1|" | 47 | #define HASH_MAGIC "|1|" |
47 | #define HASH_DELIM '|' | 48 | #define HASH_DELIM '|' |