mirror of https://github.com/neutrinolabs/xrdp
Don't select SSL protocol if no keys, fall back to RDP for "hybrid"
If both the client and the server are configured to allow both RDP and SSL connections, the server is free to choose RDP in absense of the SSL keys.
This commit is contained in:
parent
d73f20499e
commit
d3c36b0376
|
@ -98,7 +98,9 @@ xrdp_iso_negotiate_security(struct xrdp_iso *self)
|
|||
case PROTOCOL_HYBRID:
|
||||
case PROTOCOL_HYBRID_EX:
|
||||
default:
|
||||
if (self->requestedProtocol & PROTOCOL_SSL)
|
||||
if ((self->requestedProtocol & PROTOCOL_SSL) &&
|
||||
g_file_exist(client_info->certificate) &&
|
||||
g_file_exist(client_info->key_file))
|
||||
{
|
||||
/* that's a patch since we don't support CredSSP for now */
|
||||
self->selectedProtocol = PROTOCOL_SSL;
|
||||
|
|
Loading…
Reference in New Issue