From ebbb7492e77e1d0e9f9f6e12269e723a330e8f63 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Mon, 28 May 2018 10:27:44 -0400 Subject: [PATCH] GUACAMOLE-527: Add warning if no known host keys are provided. --- src/common-ssh/key.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common-ssh/key.c b/src/common-ssh/key.c index 66b8386b..b7c73f08 100644 --- a/src/common-ssh/key.c +++ b/src/common-ssh/key.c @@ -287,6 +287,8 @@ int guac_common_ssh_verify_host_key(LIBSSH2_SESSION* session, guac_client* clien /* No host keys were loaded, so we bail out checking and continue the connection. */ else if (known_hosts == 0) { + guac_client_log(client, GUAC_LOG_WARNING, + "No known host keys provided, host identity will not be verified."); libssh2_knownhost_free(ssh_known_hosts); return known_hosts; }