summaryrefslogtreecommitdiff
path: root/other/openssh-2.1.1p4/key.h
diff options
context:
space:
mode:
Diffstat (limited to 'other/openssh-2.1.1p4/key.h')
-rw-r--r--other/openssh-2.1.1p4/key.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/other/openssh-2.1.1p4/key.h b/other/openssh-2.1.1p4/key.h
new file mode 100644
index 0000000..ed3f770
--- /dev/null
+++ b/other/openssh-2.1.1p4/key.h
@@ -0,0 +1,25 @@
1#ifndef KEY_H
2#define KEY_H
3
4typedef struct Key Key;
5enum types {
6 KEY_RSA,
7 KEY_DSA,
8 KEY_EMPTY
9};
10struct Key {
11 int type;
12 RSA *rsa;
13 DSA *dsa;
14};
15
16Key *key_new(int type);
17void key_free(Key *k);
18int key_equal(Key *a, Key *b);
19char *key_fingerprint(Key *k);
20char *key_type(Key *k);
21int key_write(Key *key, FILE *f);
22unsigned int
23key_read(Key *key, char **cpp);
24
25#endif