summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-02-26 00:16:59 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-02-26 00:16:59 +0000
commit8527578cce1720407725512450604c175cecc5e9 (patch)
tree97f42e3cd2964cff18d6a13941c2e1f4b3e4666f /usr.bin
parent9f835a19c08ae8f3efb136133cf3bf7d38e8035b (diff)
a bit more debugging behind #ifdef DEBUG_SK
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-sk.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-sk.c b/usr.bin/ssh/ssh-sk.c
index 75a9c22605d..d764161a192 100644
--- a/usr.bin/ssh/ssh-sk.c
+++ b/usr.bin/ssh/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.34 2021/02/18 02:13:58 djm Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.35 2021/02/26 00:16:58 djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -652,7 +652,12 @@ sshsk_sign(const char *provider_path, struct sshkey *key,
r = SSH_ERR_INVALID_FORMAT; /* XXX sshsk_open return code? */
goto out;
}
-
+#ifdef DEBUG_SK
+ fprintf(stderr, "%s: sk_flags = 0x%02x, sk_application = \"%s\"\n",
+ __func__, key->sk_flags, key->sk_application);
+ fprintf(stderr, "%s: sk_key_handle:\n", __func__);
+ sshbuf_dump(key->sk_key_handle, stderr);
+#endif
if ((r = skp->sk_sign(alg, data, datalen, key->sk_application,
sshbuf_ptr(key->sk_key_handle), sshbuf_len(key->sk_key_handle),
key->sk_flags, pin, opts, &resp)) != 0) {