GUACAMOLE-527: Add warning if no known host keys are provided.

This commit is contained in:
Nick Couchman 2018-05-28 10:27:44 -04:00 committed by Nick Couchman
parent 27c977adb2
commit ebbb7492e7

View File

@ -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. */ /* No host keys were loaded, so we bail out checking and continue the connection. */
else if (known_hosts == 0) { 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); libssh2_knownhost_free(ssh_known_hosts);
return known_hosts; return known_hosts;
} }