shadow: fix RDP security

This commit is contained in:
Marc-André Moreau 2014-08-15 13:50:22 -04:00
parent 78d43ced3d
commit df146fe70d
3 changed files with 11 additions and 0 deletions

View File

@ -115,6 +115,8 @@ if(WITH_X11)
endif()
endif()
include_directories(${OPENSSL_INCLUDE_DIR})
set(${MODULE_PREFIX}_SRCS
shadow_client.c
shadow_client.h

View File

@ -53,6 +53,8 @@ void shadow_client_context_new(freerdp_peer* peer, rdpShadowClient* client)
settings->CertificateFile = _strdup(server->CertificateFile);
settings->PrivateKeyFile = _strdup(server->PrivateKeyFile);
settings->RdpKeyFile = _strdup(settings->PrivateKeyFile);
client->inLobby = TRUE;
client->mayView = server->mayView;
client->mayInteract = server->mayInteract;

View File

@ -21,6 +21,7 @@
#endif
#include <winpr/crt.h>
#include <winpr/ssl.h>
#include <winpr/wnd.h>
#include <winpr/path.h>
#include <winpr/cmdline.h>
@ -30,6 +31,10 @@
#include <winpr/tools/makecert.h>
#ifdef _WIN32
#include <openssl/applink.c>
#endif
#ifndef _WIN32
#include <sys/select.h>
#include <sys/signal.h>
@ -420,6 +425,8 @@ int shadow_server_init(rdpShadowServer* server)
{
int status;
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
WTSRegisterWtsApiFunctionTable(FreeRDP_InitWtsApi());
server->StopEvent = CreateEvent(NULL, TRUE, FALSE, NULL);