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 /key.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 'key.h')
-rw-r--r-- | key.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ | |||
1 | #ifndef KEY_H | ||
2 | #define KEY_H | ||
3 | |||
4 | typedef struct Key Key; | ||
5 | enum types { | ||
6 | KEY_RSA, | ||
7 | KEY_DSA, | ||
8 | KEY_EMPTY | ||
9 | }; | ||
10 | struct Key { | ||
11 | int type; | ||
12 | RSA *rsa; | ||
13 | DSA *dsa; | ||
14 | }; | ||
15 | |||
16 | Key *key_new(int type); | ||
17 | void key_free(Key *k); | ||
18 | int key_equal(Key *a, Key *b); | ||
19 | char *key_fingerprint(Key *k); | ||
20 | int key_write(Key *key, FILE *f); | ||
21 | int key_read(Key *key, unsigned int bits, char **cpp); | ||
22 | |||
23 | #endif | ||