summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Czechowski <lukasz.czechowski@thaumatec.com>2024-05-21 16:21:21 +0200
committerMarius Vlad <marius.vlad0@gmail.com>2024-08-14 07:48:09 +0000
commit3ecdd0486c3f532bfc7e89368a84c7af51b502be (patch)
tree1afc504b46a961f0ce1c26ed17c3132f1c30e816
parent58a0abcb587201880a2b7d3d171b4e8bcde09bd1 (diff)
vnc: Enable password authentication in non-TLS mode
If VNC is enabled without specifying server certificate and key, TLS won't be activated. Use regular passsword authentication instead. Signed-off-by: Lukasz Czechowski <lukasz.czechowski@thaumatec.com>
-rw-r--r--libweston/backend-vnc/vnc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libweston/backend-vnc/vnc.c b/libweston/backend-vnc/vnc.c
index 8d036e57..6cea3988 100644
--- a/libweston/backend-vnc/vnc.c
+++ b/libweston/backend-vnc/vnc.c
@@ -1266,6 +1266,13 @@ vnc_backend_create(struct weston_compositor *compositor,
weston_log("TLS support activated\n");
} else {
+ ret = nvnc_enable_auth(backend->server, NVNC_AUTH_REQUIRE_AUTH,
+ vnc_handle_auth, NULL);
+ if (ret) {
+ weston_log("Failed to enable authentication\n");
+ goto err_output;
+ }
+
weston_log(
"warning: VNC enabled without Transport Layer "
"Security!\n");