xref: /titanic_44/usr/src/cmd/ssh/include/hostfile.h (revision 18c2aff776a775d34a4c9893a4c72e0434d68e36)
1 /*	$OpenBSD: hostfile.h,v 1.12 2002/09/08 20:24:08 markus Exp $	*/
2 
3 #ifndef	_HOSTFILE_H
4 #define	_HOSTFILE_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*
14  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16  *                    All rights reserved
17  *
18  * As far as I am concerned, the code I have written for this software
19  * can be used freely for any purpose.  Any derived versions of this
20  * software must be clearly marked as such, and if the derived work is
21  * incompatible with the protocol description in the RFC file, it must be
22  * called by a name other than "ssh" or "Secure Shell".
23  */
24 
25 typedef enum {
26 	HOST_OK, HOST_NEW, HOST_CHANGED, HOST_FOUND
27 }       HostStatus;
28 
29 int	 hostfile_read_key(char **, u_int *, Key *);
30 HostStatus
31 check_host_in_hostfile(const char *, const char *, Key *, Key *, int *);
32 int	 add_host_to_hostfile(const char *, const char *, Key *);
33 int
34 lookup_key_in_hostfile_by_type(const char *, const char *, int , Key *, int *);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* _HOSTFILE_H */
41