summaryrefslogtreecommitdiff
path: root/key.h
diff options
context:
space:
mode:
Diffstat (limited to 'key.h')
-rw-r--r--key.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/key.h b/key.h
index 23a763439..e46c06eab 100644
--- a/key.h
+++ b/key.h
@@ -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};
39enum fp_type {
40 SSH_FP_SHA1,
41 SSH_FP_MD5
42};
43enum fp_rep {
44 SSH_FP_HEX,
45 SSH_FP_BUBBLEBABBLE
46};
39struct Key { 47struct Key {
40 int type; 48 int type;
41 RSA *rsa; 49 RSA *rsa;
@@ -46,6 +54,7 @@ Key *key_new(int type);
46Key *key_new_private(int type); 54Key *key_new_private(int type);
47void key_free(Key *k); 55void key_free(Key *k);
48int key_equal(Key *a, Key *b); 56int key_equal(Key *a, Key *b);
57char *key_fingerprint_ex(Key *k, enum fp_type dgst_type, enum fp_rep dgst_rep);
49char *key_fingerprint(Key *k); 58char *key_fingerprint(Key *k);
50char *key_type(Key *k); 59char *key_type(Key *k);
51int key_write(Key *key, FILE *f); 60int key_write(Key *key, FILE *f);