summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh-sk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssh-sk.c b/ssh-sk.c
index 591c643d4..63f1d1da7 100644
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-sk.c,v 1.12 2019/11/14 21:27:30 djm Exp $ */ 1/* $OpenBSD: ssh-sk.c,v 1.13 2019/11/16 22:42:30 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Google LLC 3 * Copyright (c) 2019 Google LLC
4 * 4 *
@@ -264,6 +264,10 @@ sshsk_enroll(int type, const char *provider_path, const char *application,
264 int r = SSH_ERR_INTERNAL_ERROR; 264 int r = SSH_ERR_INTERNAL_ERROR;
265 int alg; 265 int alg;
266 266
267 debug("%s: provider \"%s\", application \"%s\", flags 0x%02x, "
268 "challenge len %zu", __func__, provider_path, application,
269 flags, challenge_buf == NULL ? 0 : sshbuf_len(challenge_buf));
270
267 *keyp = NULL; 271 *keyp = NULL;
268 if (attest) 272 if (attest)
269 sshbuf_reset(attest); 273 sshbuf_reset(attest);
@@ -461,6 +465,9 @@ sshsk_sign(const char *provider_path, const struct sshkey *key,
461 struct sshbuf *inner_sig = NULL, *sig = NULL; 465 struct sshbuf *inner_sig = NULL, *sig = NULL;
462 uint8_t message[32]; 466 uint8_t message[32];
463 467
468 debug("%s: provider \"%s\", key \"%s\", flags 0x%02x", __func__,
469 provider_path, sshkey_type(key), key->sk_flags);
470
464 if (sigp != NULL) 471 if (sigp != NULL)
465 *sigp = NULL; 472 *sigp = NULL;
466 if (lenp != NULL) 473 if (lenp != NULL)