summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/key.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-05-04 09:50:22 +0000
committermarkus <markus@openbsd.org>2000-05-04 09:50:22 +0000
commita10d98dfd3f00769ce25e56b80d2c806400f6cd4 (patch)
treef7212e971d47e1cab000ebe003f2a08b5ceee968 /usr.bin/ssh/key.c
parentRemove shared lib items that were left. (diff)
downloadwireguard-openbsd-a10d98dfd3f00769ce25e56b80d2c806400f6cd4.tar.xz
wireguard-openbsd-a10d98dfd3f00769ce25e56b80d2c806400f6cd4.zip
print key type when talking about host keys
Diffstat (limited to 'usr.bin/ssh/key.c')
-rw-r--r--usr.bin/ssh/key.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c
index 583c529010d..1ce08ad7008 100644
--- a/usr.bin/ssh/key.c
+++ b/usr.bin/ssh/key.c
@@ -305,3 +305,16 @@ key_write(Key *key, FILE *f)
}
return success;
}
+char *
+key_type(Key *k)
+{
+ switch (k->type) {
+ case KEY_RSA:
+ return "RSA";
+ break;
+ case KEY_DSA:
+ return "DSA";
+ break;
+ }
+ return "unknown";
+}