summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/key.h
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2001-03-11 15:03:17 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2001-03-11 15:03:17 +0000
commit74142b095c93133fbca8ab0b09aabe0c01902807 (patch)
tree3a0ae661901c962b3720cfb9d0a11c988dc4e6d2 /usr.bin/ssh/key.h
parentb4d04a83569c167c99827d9fea7da31263d66306 (diff)
add improved fingerprint functions. based on work by Carsten
Raskgaard <cara@int.tele.dk> and modified by me. ok markus@.
Diffstat (limited to 'usr.bin/ssh/key.h')
-rw-r--r--usr.bin/ssh/key.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/ssh/key.h b/usr.bin/ssh/key.h
index 23a763439d7..e46c06eab90 100644
--- a/usr.bin/ssh/key.h
+++ b/usr.bin/ssh/key.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.h,v 1.9 2001/01/29 01:58:16 niklas Exp $ */
+/* $OpenBSD: key.h,v 1.10 2001/03/11 15:03:16 jakob Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -36,6 +36,14 @@ enum types {
KEY_DSA,
KEY_UNSPEC
};
+enum fp_type {
+ SSH_FP_SHA1,
+ SSH_FP_MD5
+};
+enum fp_rep {
+ SSH_FP_HEX,
+ SSH_FP_BUBBLEBABBLE
+};
struct Key {
int type;
RSA *rsa;
@@ -46,6 +54,7 @@ Key *key_new(int type);
Key *key_new_private(int type);
void key_free(Key *k);
int key_equal(Key *a, Key *b);
+char *key_fingerprint_ex(Key *k, enum fp_type dgst_type, enum fp_rep dgst_rep);
char *key_fingerprint(Key *k);
char *key_type(Key *k);
int key_write(Key *key, FILE *f);