From e6ff9e3efac695d74b284e2f6a33a9018b745297 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 12 Dec 2019 09:19:23 +0100 Subject: [PATCH] Added warning to win shadow server Currently the windows shadow server does not support authentication. Log that fact so everyone using it is notified on each login. --- server/shadow/Win/win_rdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/shadow/Win/win_rdp.c b/server/shadow/Win/win_rdp.c index cd55085..807174f 100644 --- a/server/shadow/Win/win_rdp.c +++ b/server/shadow/Win/win_rdp.c @@ -80,6 +80,7 @@ static BOOL shw_end_paint(rdpContext* context) BOOL shw_desktop_resize(rdpContext* context) { + WLog_WARN(TAG, "Desktop resizing not implemented!"); return TRUE; } @@ -92,18 +93,21 @@ static BOOL shw_surface_frame_marker(rdpContext* context, static BOOL shw_authenticate(freerdp* instance, char** username, char** password, char** domain) { + WLog_WARN(TAG, "Authentication not implemented, access granted to everyone!"); return TRUE; } static DWORD shw_verify_certificate(freerdp* instance, const char* common_name, const char* subject, const char* issuer, const char* fingerprint, BOOL host_mismatch) { + WLog_WARN(TAG, "Certificate checks not implemented, access granted to everyone!"); return 1; } static int shw_verify_x509_certificate(freerdp* instance, BYTE* data, int length, const char* hostname, int port, DWORD flags) { + WLog_WARN(TAG, "Certificate checks not implemented, access granted to everyone!"); return 1; } -- 2.7.4