libfreerdp-core: apply patch from Nicolas Graziano to fix protocol security settings when Standard RDP is negotiated

This commit is contained in:
Marc-André Moreau 2011-10-04 18:54:38 -04:00
parent 6cf2bc1eed
commit 82d5d1b8f1
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,13 @@ boolean nego_connect(rdpNego* nego)
nego->transport->settings->requested_protocols = nego->requested_protocols;
nego->transport->settings->selected_protocol = nego->selected_protocol;
if(nego->selected_protocol == PROTOCOL_RDP)
{
nego->transport->settings->encryption = True;
nego->transport->settings->encryption_method = ENCRYPTION_METHOD_40BIT | ENCRYPTION_METHOD_128BIT | ENCRYPTION_METHOD_FIPS;
nego->transport->settings->encryption_level = ENCRYPTION_LEVEL_CLIENT_COMPATIBLE;
}
return True;
}