diff options
author | 2000-05-04 09:50:22 +0000 | |
---|---|---|
committer | 2000-05-04 09:50:22 +0000 | |
commit | a10d98dfd3f00769ce25e56b80d2c806400f6cd4 (patch) | |
tree | f7212e971d47e1cab000ebe003f2a08b5ceee968 /usr.bin/ssh/key.c | |
parent | Remove shared lib items that were left. (diff) | |
download | wireguard-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.c | 13 |
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"; +} |