mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Removed duplicate rdp security checks
This commit is contained in:
parent
8205bc5f6b
commit
ad1af95438
@ -1038,8 +1038,7 @@ static DWORD WINAPI test_peer_mainloop(LPVOID arg)
|
||||
if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerCertificate, cert, 1))
|
||||
goto fail;
|
||||
|
||||
settings->RdpSecurity =
|
||||
freerdp_certificate_is_rsa(cert); /* RDP security only works with legacy RSA certificates */
|
||||
settings->RdpSecurity = TRUE;
|
||||
settings->TlsSecurity = TRUE;
|
||||
settings->NlaSecurity = FALSE;
|
||||
settings->EncryptionLevel = ENCRYPTION_LEVEL_CLIENT_COMPATIBLE;
|
||||
|
@ -825,12 +825,6 @@ static BOOL shadow_server_init_certificate(rdpShadowServer* server)
|
||||
if (!freerdp_settings_set_pointer_len(settings, FreeRDP_RdpServerCertificate, cert, 1))
|
||||
goto out_fail;
|
||||
|
||||
const BOOL rdpSecurity = freerdp_certificate_is_rsa(cert);
|
||||
if (!rdpSecurity)
|
||||
{
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_RdpSecurity, FALSE))
|
||||
goto out_fail;
|
||||
}
|
||||
ret = TRUE;
|
||||
out_fail:
|
||||
makecert_context_free(makecert);
|
||||
|
Loading…
Reference in New Issue
Block a user