diff options
Diffstat (limited to 'key.h')
-rw-r--r-- | key.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.h,v 1.9 2001/01/29 01:58:16 niklas Exp $ */ | 1 | /* $OpenBSD: key.h,v 1.10 2001/03/11 15:03:16 jakob Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -36,6 +36,14 @@ enum types { | |||
36 | KEY_DSA, | 36 | KEY_DSA, |
37 | KEY_UNSPEC | 37 | KEY_UNSPEC |
38 | }; | 38 | }; |
39 | enum fp_type { | ||
40 | SSH_FP_SHA1, | ||
41 | SSH_FP_MD5 | ||
42 | }; | ||
43 | enum fp_rep { | ||
44 | SSH_FP_HEX, | ||
45 | SSH_FP_BUBBLEBABBLE | ||
46 | }; | ||
39 | struct Key { | 47 | struct Key { |
40 | int type; | 48 | int type; |
41 | RSA *rsa; | 49 | RSA *rsa; |
@@ -46,6 +54,7 @@ Key *key_new(int type); | |||
46 | Key *key_new_private(int type); | 54 | Key *key_new_private(int type); |
47 | void key_free(Key *k); | 55 | void key_free(Key *k); |
48 | int key_equal(Key *a, Key *b); | 56 | int key_equal(Key *a, Key *b); |
57 | char *key_fingerprint_ex(Key *k, enum fp_type dgst_type, enum fp_rep dgst_rep); | ||
49 | char *key_fingerprint(Key *k); | 58 | char *key_fingerprint(Key *k); |
50 | char *key_type(Key *k); | 59 | char *key_type(Key *k); |
51 | int key_write(Key *key, FILE *f); | 60 | int key_write(Key *key, FILE *f); |