Do not initialize SSL in freerdp_context_new, it is too early to detect the fips enabled flag

and is redundant since it is initialized later before actually using SSL.
This commit is contained in:
Brent Collins 2017-04-11 11:57:39 -05:00 committed by Armin Novak
parent a0526317ea
commit e47123f05a
1 changed files with 1 additions and 1 deletions

View File

@ -615,6 +615,7 @@ BOOL freerdp_context_new(freerdp* instance)
rdpRdp* rdp; rdpRdp* rdp;
rdpContext* context; rdpContext* context;
BOOL ret = TRUE; BOOL ret = TRUE;
DWORD flags = WINPR_SSL_INIT_DEFAULT;
instance->context = (rdpContext*) calloc(1, instance->ContextSize); instance->context = (rdpContext*) calloc(1, instance->ContextSize);
if (!instance->context) if (!instance->context)
@ -930,7 +931,6 @@ freerdp* freerdp_new()
if (!instance) if (!instance)
return NULL; return NULL;
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
instance->ContextSize = sizeof(rdpContext); instance->ContextSize = sizeof(rdpContext);
instance->SendChannelData = freerdp_send_channel_data; instance->SendChannelData = freerdp_send_channel_data;
instance->ReceiveChannelData = freerdp_channels_data; instance->ReceiveChannelData = freerdp_channels_data;