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 68f7f4fdd..6884d6be1 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.210 2014/07/15 15:54:14 millert Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.211 2014/12/11 05:13:28 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -1503,10 +1503,14 @@ userauth_hostbased(Authctxt *authctxt) | |||
1503 | debug("No more client hostkeys for hostbased authentication."); | 1503 | debug("No more client hostkeys for hostbased authentication."); |
1504 | return 0; | 1504 | return 0; |
1505 | } | 1505 | } |
1506 | |||
1507 | debug("%s: trying hostkey type %s", __func__, key_type(private)); | ||
1508 | |||
1506 | if (key_to_blob(private, &blob, &blen) == 0) { | 1509 | if (key_to_blob(private, &blob, &blen) == 0) { |
1507 | key_free(private); | 1510 | key_free(private); |
1508 | return 0; | 1511 | return 0; |
1509 | } | 1512 | } |
1513 | |||
1510 | /* figure out a name for the client host */ | 1514 | /* figure out a name for the client host */ |
1511 | p = get_local_name(packet_get_connection_in()); | 1515 | p = get_local_name(packet_get_connection_in()); |
1512 | if (p == NULL) { | 1516 | if (p == NULL) { |