]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: unbreak SK_DEBUG builds
authordjm@openbsd.org <djm@openbsd.org>
Thu, 18 Feb 2021 02:13:58 +0000 (02:13 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 18 Feb 2021 02:17:43 +0000 (13:17 +1100)
from https://github.com/openssh/openssh-portable/pull/225 by
ZenithalHourlyRate

OpenBSD-Commit-ID: 28d7259ce1b04d025411464decfa2f1a097b43eb

ssh-sk.c

index e87b3f3b9ae3494cd4d3866f990351fbc18f7d2c..b9f2312822b87a61d1971b4d71c5575d33e71f80 100644 (file)
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.33 2020/10/18 11:32:02 djm Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.34 2021/02/18 02:13:58 djm Exp $ */
 /*
  * Copyright (c) 2019 Google LLC
  *
@@ -694,8 +694,8 @@ sshsk_sign(const char *provider_path, struct sshkey *key,
 #ifdef DEBUG_SK
        fprintf(stderr, "%s: sig_flags = 0x%02x, sig_counter = %u\n",
            __func__, resp->flags, resp->counter);
-       fprintf(stderr, "%s: hashed message:\n", __func__);
-       sshbuf_dump_data(message, sizeof(message), stderr);
+       fprintf(stderr, "%s: data to sign:\n", __func__);
+       sshbuf_dump_data(data, datalen, stderr);
        fprintf(stderr, "%s: sigbuf:\n", __func__);
        sshbuf_dump(sig, stderr);
 #endif