2 /* $OpenBSD: hostfile.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
9 * As far as I am concerned, the code I have written for this software
10 * can be used freely for any purpose. Any derived versions of this
11 * software must be clearly marked as such, and if the derived work is
12 * incompatible with the protocol description in the RFC file, it must be
13 * called by a name other than "ssh" or "Secure Shell".
19 HOST_OK
, HOST_NEW
, HOST_CHANGED
, HOST_FOUND
22 int hostfile_read_key(char **, u_int
*, Key
*);
23 HostStatus
check_host_in_hostfile(const char *, const char *,
24 const Key
*, Key
*, int *);
25 int add_host_to_hostfile(const char *, const char *, const Key
*, int);
26 int lookup_key_in_hostfile_by_type(const char *, const char *,
29 #define HASH_MAGIC "|1|"
30 #define HASH_DELIM '|'
32 char *host_hash(const char *, const char *, u_int
);