blob: 0244fdb53ea49f7556bfd838ff04d041200c6bcb [file] [log] [blame]
Damien Miller5b2aea92001-12-21 12:47:09 +11001/* $OpenBSD: hostfile.h,v 1.10 2001/12/18 10:04:21 jakob Exp $ */
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Millere4340be2000-09-16 13:29:08 +11003/*
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 */
Damien Miller450a7a12000-03-26 13:04:51 +100014#ifndef HOSTFILE_H
15#define HOSTFILE_H
16
Damien Miller450a7a12000-03-26 13:04:51 +100017typedef enum {
18 HOST_OK, HOST_NEW, HOST_CHANGED
19} HostStatus;
Ben Lindstrom46c16222000-12-22 01:43:59 +000020
Damien Miller5b2aea92001-12-21 12:47:09 +110021int hostfile_read_key(char **, u_int *, Key *);
Damien Miller4af51302000-04-16 11:18:38 +100022HostStatus
Ben Lindstrom16ae3d02001-07-04 04:02:36 +000023check_host_in_hostfile(const char *, const char *, Key *, Key *, int *);
Ben Lindstrom4cc240d2001-07-04 04:46:56 +000024int add_host_to_hostfile(const char *, const char *, Key *);
Damien Miller450a7a12000-03-26 13:04:51 +100025
26#endif