diff options
author | djm@openbsd.org <djm@openbsd.org> | 2014-12-11 05:13:28 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-12-11 19:17:25 +1100 |
commit | 17bf3d81e00f2abb414a4fd271118cf4913f049f (patch) | |
tree | 9278002942db08afad45a482372aa6718e853441 | |
parent | da0277e3717eadf5b15e03379fc29db133487e94 (diff) |
upstream commit
show in debug output which hostkeys are being tried when
attempting hostbased auth; patch from Iain Morgan
-rw-r--r-- | sshconnect2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 68f7f4fd..6884d6be 100644 --- a/sshconnect2.c +++ b/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.210 2014/07/15 15:54:14 millert Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.211 2014/12/11 05:13:28 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1503,10 +1503,14 @@ userauth_hostbased(Authctxt *authctxt) debug("No more client hostkeys for hostbased authentication."); return 0; } + + debug("%s: trying hostkey type %s", __func__, key_type(private)); + if (key_to_blob(private, &blob, &blen) == 0) { key_free(private); return 0; } + /* figure out a name for the client host */ p = get_local_name(packet_get_connection_in()); if (p == NULL) { |