diff options
author | Damien Miller <djm@mindrot.org> | 2010-03-22 05:58:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-03-22 05:58:24 +1100 |
commit | 1cfbfaf4a003749657035b832c30e176dc26d491 (patch) | |
tree | 493c9fc2d02682fdd54c5f46a8bdf6ba0107cd87 /ssh-keygen.c | |
parent | 5a5d94b12f389d24d5fec30a6bd8c8211a65cf43 (diff) |
- stevesk@cvs.openbsd.org 2010/03/15 19:40:02
[key.c key.h ssh-keygen.c]
also print certificate type (user or host) for ssh-keygen -L
ok djm kettenis
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index dd662c907..37e516ff2 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.184 2010/03/07 22:16:01 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.185 2010/03/15 19:40:02 stevesk Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1393,7 +1393,8 @@ do_show_cert(struct passwd *pw) | |||
1393 | SSH_FP_MD5, SSH_FP_HEX); | 1393 | SSH_FP_MD5, SSH_FP_HEX); |
1394 | 1394 | ||
1395 | printf("%s:\n", identity_file); | 1395 | printf("%s:\n", identity_file); |
1396 | printf(" %s certificate %s\n", key_type(key), key_fp); | 1396 | printf(" %s %s certificate %s\n", key_type(key), |
1397 | key_cert_type(key), key_fp); | ||
1397 | printf(" Signed by %s CA %s\n", | 1398 | printf(" Signed by %s CA %s\n", |
1398 | key_type(key->cert->signature_key), ca_fp); | 1399 | key_type(key->cert->signature_key), ca_fp); |
1399 | printf(" Key ID \"%s\"\n", key->cert->key_id); | 1400 | printf(" Key ID \"%s\"\n", key->cert->key_id); |