[openssh-commits] [openssh] 05/05: upstream: a little debug() in the security key interface

git+noreply at mindrot.org git+noreply at mindrot.org
Sun Nov 17 09:44:53 AEDT 2019


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 4103a3ec7c68493dbc4f0994a229507e943a86d3
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Sat Nov 16 22:42:30 2019 +0000

    upstream: a little debug() in the security key interface
    
    OpenBSD-Commit-ID: 4c70300609a5c8b19707207bb7ad4109e963b0e8
---
 ssh-sk.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ssh-sk.c b/ssh-sk.c
index 591c643d..63f1d1da 100644
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.12 2019/11/14 21:27:30 djm Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.13 2019/11/16 22:42:30 djm Exp $ */
 /*
  * Copyright (c) 2019 Google LLC
  *
@@ -264,6 +264,10 @@ sshsk_enroll(int type, const char *provider_path, const char *application,
 	int r = SSH_ERR_INTERNAL_ERROR;
 	int alg;
 
+	debug("%s: provider \"%s\", application \"%s\", flags 0x%02x, "
+	    "challenge len %zu", __func__, provider_path, application,
+	    flags, challenge_buf == NULL ? 0 : sshbuf_len(challenge_buf));
+
 	*keyp = NULL;
 	if (attest)
 		sshbuf_reset(attest);
@@ -461,6 +465,9 @@ sshsk_sign(const char *provider_path, const struct sshkey *key,
 	struct sshbuf *inner_sig = NULL, *sig = NULL;
 	uint8_t message[32];
 
+	debug("%s: provider \"%s\", key \"%s\", flags 0x%02x", __func__,
+	    provider_path, sshkey_type(key), key->sk_flags);
+
 	if (sigp != NULL)
 		*sigp = NULL;
 	if (lenp != NULL)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list