Added warning to win shadow server
authorArmin Novak <armin.novak@thincast.com>
Thu, 12 Dec 2019 08:19:23 +0000 (09:19 +0100)
committerArmin Novak <armin.novak@thincast.com>
Thu, 12 Dec 2019 08:20:30 +0000 (09:20 +0100)
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

index cd55085..807174f 100644 (file)
@@ -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;
 }