From 4d3da7819c55ac1a31ca2bf8651a7f581716e393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Mon, 8 Dec 2025 12:29:05 +0100 Subject: [PATCH] bind: adjust hostkey error messages to be more precise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavol Žáčik Reviewed-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/bind.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bind.c b/src/bind.c index 3063019d..97feaac2 100644 --- a/src/bind.c +++ b/src/bind.c @@ -247,11 +247,11 @@ int ssh_bind_listen(ssh_bind sshbind) rc = ssh_bind_import_keys(sshbind); if (rc == SSH_ERROR) { if (!sshbind->gssapi_key_exchange) { - ssh_set_error(sshbind, SSH_FATAL, "No hostkeys found"); + ssh_set_error(sshbind, SSH_FATAL, "No usable hostkeys found"); return SSH_ERROR; } SSH_LOG(SSH_LOG_DEBUG, - "No hostkeys found: Using \"null\" hostkey algorithm"); + "No usable hostkeys found: Using \"null\" hostkey algorithm"); } } @@ -528,11 +528,11 @@ int ssh_bind_accept_fd(ssh_bind sshbind, ssh_session session, socket_t fd) rc = ssh_bind_import_keys(sshbind); if (rc == SSH_ERROR) { if (!sshbind->gssapi_key_exchange) { - ssh_set_error(sshbind, SSH_FATAL, "No hostkeys found"); + ssh_set_error(sshbind, SSH_FATAL, "No usable hostkeys found"); return SSH_ERROR; } SSH_LOG(SSH_LOG_DEBUG, - "No hostkeys found: Using \"null\" hostkey algorithm"); + "No usable hostkeys found: Using \"null\" hostkey algorithm"); } }