summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/monitor.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2019-11-19 22:21:16 +0000
committerDamien Miller <djm@cvs.openbsd.org>2019-11-19 22:21:16 +0000
commit5221e7a230a5e6cf7a52453fb450e6256c0e9231 (patch)
treef074505bc98e3127351000fcfe2d3831e86c77af /usr.bin/ssh/monitor.c
parenta091f3928d000d463629c76356a53596899d1523 (diff)
a little more information from the monitor when signature
verification fails.
Diffstat (limited to 'usr.bin/ssh/monitor.c')
-rw-r--r--usr.bin/ssh/monitor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c
index a4f6d1dfe16..99c1dbba427 100644
--- a/usr.bin/ssh/monitor.c
+++ b/usr.bin/ssh/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.200 2019/10/31 21:23:19 djm Exp $ */
+/* $OpenBSD: monitor.c,v 1.201 2019/11/19 22:21:15 djm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -1187,8 +1187,9 @@ mm_answer_keyverify(struct ssh *ssh, int sock, struct sshbuf *m)
ret = sshkey_verify(key, signature, signaturelen, data, datalen,
sigalg, ssh->compat);
- debug3("%s: %s %p signature %s", __func__, auth_method, key,
- (ret == 0) ? "verified" : "unverified");
+ debug3("%s: %s %p signature %s%s%s", __func__, auth_method, key,
+ (ret == 0) ? "verified" : "unverified",
+ (ret != 0) ? ": " : "", (ret != 0) ? ssh_err(ret) : "");
auth2_record_key(authctxt, ret == 0, key);
free(blob);