summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-08-27 09:46:05 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-08-27 09:46:05 +0000
commit23f545c2b3de218f838ddd0c6b8b9625f736b2de (patch)
treeeb548d09be2079edb5539f2d0621639d41a336ac
parentd85d5d0b5acbb19d13c83604297fca57df814474 (diff)
debug()-print a little info about FIDO-specific key fields via
"ssh-keygen -vyf /path/key"
-rw-r--r--usr.bin/ssh/ssh-keygen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 7f145c86923..0e169a2aaac 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.418 2020/08/27 01:08:45 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.419 2020/08/27 09:46:04 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -795,10 +795,14 @@ do_print_public(struct passwd *pw)
prv = load_identity(identity_file, &comment);
if ((r = sshkey_write(prv, stdout)) != 0)
error("sshkey_write failed: %s", ssh_err(r));
- sshkey_free(prv);
if (comment != NULL && *comment != '\0')
fprintf(stdout, " %s", comment);
fprintf(stdout, "\n");
+ if (sshkey_is_sk(prv)) {
+ debug("sk_application: \"%s\", sk_flags 0x%02x",
+ prv->sk_application, prv->sk_flags);
+ }
+ sshkey_free(prv);
free(comment);
exit(0);
}