]> andersk Git - gssapi-openssh.git/blame - openssh/hostfile.h
http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.2p1-hpn13v6.diff.gz committe...
[gssapi-openssh.git] / openssh / hostfile.h
CommitLineData
9108f8d9 1/* $OpenBSD: hostfile.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */
3c0ef626 2
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
7 *
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".
13 */
14#ifndef HOSTFILE_H
15#define HOSTFILE_H
16
17typedef enum {
41b2f314 18 HOST_OK, HOST_NEW, HOST_CHANGED, HOST_FOUND
3c0ef626 19} HostStatus;
20
e9a17296 21int hostfile_read_key(char **, u_int *, Key *);
6a9b3198 22HostStatus check_host_in_hostfile(const char *, const char *,
cdd66111 23 const Key *, Key *, int *);
996d5e62 24int add_host_to_hostfile(const char *, const char *, const Key *, int);
6a9b3198 25int lookup_key_in_hostfile_by_type(const char *, const char *,
26 int, Key *, int *);
3c0ef626 27
996d5e62 28#define HASH_MAGIC "|1|"
29#define HASH_DELIM '|'
30
31char *host_hash(const char *, const char *, u_int);
32
3c0ef626 33#endif
This page took 0.103476 seconds and 5 git commands to generate.