summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-04-16 10:04:09 +0100
committerColin Watson <cjwatson@debian.org>2010-04-16 10:04:09 +0100
commit78eedc2c60ff4718200f9271d8ee4f437da3a0c5 (patch)
tree13e783343edf688afffb4a8e02dc9685342b98a6 /key.c
parentd1a87e462e1db89f19cd960588d0c6b287cb5ccc (diff)
parentff0095389ba9a9e4599e6051c8d5bae6777c4d64 (diff)
merge 5.5p1
Diffstat (limited to 'key.c')
-rw-r--r--key.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/key.c b/key.c
index f67a799c1..768c55549 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: key.c,v 1.85 2010/03/04 01:44:57 djm Exp $ */ 1/* $OpenBSD: key.c,v 1.86 2010/03/15 19:40:02 stevesk Exp $ */
2/* 2/*
3 * read_bignum(): 3 * read_bignum():
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -802,6 +802,19 @@ key_type(const Key *k)
802} 802}
803 803
804const char * 804const char *
805key_cert_type(const Key *k)
806{
807 switch (k->cert->type) {
808 case SSH2_CERT_TYPE_USER:
809 return "user";
810 case SSH2_CERT_TYPE_HOST:
811 return "host";
812 default:
813 return "unknown";
814 }
815}
816
817const char *
805key_ssh_name(const Key *k) 818key_ssh_name(const Key *k)
806{ 819{
807 switch (k->type) { 820 switch (k->type) {