]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: debug()-print a little info about FIDO-specific key
authordjm@openbsd.org <djm@openbsd.org>
Thu, 27 Aug 2020 09:46:04 +0000 (09:46 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 27 Aug 2020 09:47:35 +0000 (19:47 +1000)
fields via "ssh-keygen -vyf /path/key"

OpenBSD-Commit-ID: cf315c4fe77db43947d111b00155165cb6b577cf

ssh-keygen.c

index 66472427670c51a958298b3bc9eec07036fba880..64cee4de04906934ff6cac78015371014119b2f1 100644 (file)
@@ -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
@@ -815,10 +815,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);
 }