diff options
author | Damien Miller <djm@mindrot.org> | 2000-03-26 13:04:51 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-03-26 13:04:51 +1000 |
commit | 450a7a1ff40fe7c2d84c93b83cf2df53445d807d (patch) | |
tree | db6d08bdea65edd34ba2e323a31e2b1ca5e5fbd4 /hostfile.h | |
parent | 2c9279fa667827384fceb243f890cba1dbe480de (diff) |
- OpenBSD CVS update
- [auth-krb4.c]
-Wall
- [auth-rh-rsa.c auth-rsa.c hostfile.c hostfile.h key.c key.h match.c]
[match.h ssh.c ssh.h sshconnect.c sshd.c]
initial support for DSA keys. ok deraadt@, niels@
- [cipher.c cipher.h]
remove unused cipher_attack_detected code
- [scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8]
Fix some formatting problems I missed before.
- [ssh.1 sshd.8]
fix spelling errors, From: FreeBSD
- [ssh.c]
switch to raw mode only if he _get_ a pty (not if we _want_ a pty).
Diffstat (limited to 'hostfile.h')
-rw-r--r-- | hostfile.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hostfile.h b/hostfile.h new file mode 100644 index 000000000..64fe185da --- /dev/null +++ b/hostfile.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef HOSTFILE_H | ||
2 | #define HOSTFILE_H | ||
3 | |||
4 | /* | ||
5 | * Checks whether the given host is already in the list of our known hosts. | ||
6 | * Returns HOST_OK if the host is known and has the specified key, HOST_NEW | ||
7 | * if the host is not known, and HOST_CHANGED if the host is known but used | ||
8 | * to have a different host key. The host must be in all lowercase. | ||
9 | */ | ||
10 | typedef enum { | ||
11 | HOST_OK, HOST_NEW, HOST_CHANGED | ||
12 | } HostStatus; | ||
13 | HostStatus | ||
14 | check_host_in_hostfile(const char *filename, const char *host, Key *key, Key *found); | ||
15 | |||
16 | /* | ||
17 | * Appends an entry to the host file. Returns false if the entry could not | ||
18 | * be appended. | ||
19 | */ | ||
20 | int add_host_to_hostfile(const char *filename, const char *host, Key *key); | ||
21 | |||
22 | #endif | ||