- (dtucker) Bug #1725: explicitly link libX11 into gnome-ssh-askpass2 using
[openssh-git.git] / hostfile.h
blob1d460c1a915dd572acb8f2a73b9b1553358e0022
1 /* $OpenBSD: hostfile.h,v 1.18 2010/03/04 10:36:03 djm Exp $ */
3 /*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
14 #ifndef HOSTFILE_H
15 #define HOSTFILE_H
17 typedef enum {
18 HOST_OK, HOST_NEW, HOST_CHANGED, HOST_REVOKED, HOST_FOUND
19 } HostStatus;
21 int hostfile_read_key(char **, u_int *, Key *);
22 HostStatus check_host_in_hostfile(const char *, const char *,
23 const Key *, Key *, int *);
24 int add_host_to_hostfile(const char *, const char *, const Key *, int);
25 int lookup_key_in_hostfile_by_type(const char *, const char *,
26 int, Key *, int *);
28 #define HASH_MAGIC "|1|"
29 #define HASH_DELIM '|'
31 #define CA_MARKER "@cert-authority"
32 #define REVOKE_MARKER "@revoked"
34 char *host_hash(const char *, const char *, u_int);
36 #endif