summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2010-04-10 02:10:57 +0000
committerDamien Miller <djm@cvs.openbsd.org>2010-04-10 02:10:57 +0000
commit697ebde8366d2951d0d7424d1ebc149edebb2fd0 (patch)
tree1f98a58fb04e44c56017642dad27906a2901a6ad /usr.bin/ssh
parent403d38537e64f6d722b75f947f57e053c35854b8 (diff)
show the key type that we are offering in debug(), helps distinguish
between certs and plain keys as the path to the private key is usually the same.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sshconnect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index 1700487971c..ba5875ed9d1 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.180 2010/02/26 20:29:54 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.181 2010/04/10 02:10:56 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -1392,7 +1392,8 @@ userauth_pubkey(Authctxt *authctxt)
* private key instead
*/
if (id->key && id->key->type != KEY_RSA1) {
- debug("Offering public key: %s", id->filename);
+ debug("Offering %s public key: %s", key_type(id->key),
+ id->filename);
sent = send_pubkey_test(authctxt, id);
} else if (id->key == NULL) {
debug("Trying private key: %s", id->filename);