[BACK]Return to hostfile.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/hostfile.h, Revision 1.8

1.8     ! itojun      1: /*     $OpenBSD: hostfile.h,v 1.7 2001/02/08 19:30:51 itojun Exp $     */
1.6       niklas      2:
1.3       deraadt     3: /*
1.4       markus      4:  * Author: Tatu Ylonen <ylo@cs.hut.fi>
                      5:  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
                      6:  *                    All rights reserved
1.3       deraadt     7:  *
1.4       markus      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".
1.3       deraadt    13:  */
1.1       markus     14: #ifndef HOSTFILE_H
                     15: #define HOSTFILE_H
1.7       itojun     16:
                     17: int
1.8     ! itojun     18: auth_rsa_read_key(char **, u_int *, BIGNUM *, BIGNUM *);
1.1       markus     19:
                     20: /*
                     21:  * Checks whether the given host is already in the list of our known hosts.
                     22:  * Returns HOST_OK if the host is known and has the specified key, HOST_NEW
                     23:  * if the host is not known, and HOST_CHANGED if the host is known but used
                     24:  * to have a different host key.  The host must be in all lowercase.
                     25:  */
                     26: typedef enum {
                     27:        HOST_OK, HOST_NEW, HOST_CHANGED
                     28: }       HostStatus;
1.5       markus     29:
1.2       markus     30: HostStatus
1.8     ! itojun     31: check_host_in_hostfile(const char *, const char *, Key *, Key *, int *);
1.1       markus     32:
                     33: /*
                     34:  * Appends an entry to the host file.  Returns false if the entry could not
                     35:  * be appended.
                     36:  */
1.8     ! itojun     37: int    add_host_to_hostfile(const char *, const char *, Key *);
1.1       markus     38:
                     39: #endif