libxrdp: indent, no logic change

ulab-next-nosound
Jay Sorg 10 years ago
parent d1bc5b0bf7
commit 69a551cdf7

@ -51,20 +51,25 @@ xrdp_iso_delete(struct xrdp_iso *self)
/*****************************************************************************/ /*****************************************************************************/
/* returns error */ /* returns error */
static int APP_CC static int APP_CC
xrdp_iso_negotiate_security(struct xrdp_iso *self) { xrdp_iso_negotiate_security(struct xrdp_iso *self)
{
int rv = 0; int rv = 0;
int server_security_layer = self->mcs_layer->sec_layer->rdp_layer->client_info.security_layer; int server_security_layer = self->mcs_layer->sec_layer->rdp_layer->client_info.security_layer;
self->selectedProtocol = server_security_layer; self->selectedProtocol = server_security_layer;
switch (server_security_layer) { switch (server_security_layer)
{
case PROTOCOL_RDP: case PROTOCOL_RDP:
self->rdpNegData = 0; /* no need to send rdp_neg_data back to client */ self->rdpNegData = 0; /* no need to send rdp_neg_data back to client */
break; break;
case PROTOCOL_SSL: case PROTOCOL_SSL:
if (self->requestedProtocol & PROTOCOL_SSL) { if (self->requestedProtocol & PROTOCOL_SSL)
{
self->selectedProtocol = PROTOCOL_SSL; self->selectedProtocol = PROTOCOL_SSL;
} else { }
else
{
self->failureCode = SSL_REQUIRED_BY_SERVER; self->failureCode = SSL_REQUIRED_BY_SERVER;
rv = 1; /* error */ rv = 1; /* error */
} }
@ -72,10 +77,13 @@ xrdp_iso_negotiate_security(struct xrdp_iso *self) {
case PROTOCOL_HYBRID: case PROTOCOL_HYBRID:
case PROTOCOL_HYBRID_EX: case PROTOCOL_HYBRID_EX:
default: default:
if (self->requestedProtocol & PROTOCOL_SSL) { if (self->requestedProtocol & PROTOCOL_SSL)
{
/* thats a patch since we don't support CredSSP for now */ /* thats a patch since we don't support CredSSP for now */
self->selectedProtocol = PROTOCOL_SSL; self->selectedProtocol = PROTOCOL_SSL;
} else { }
else
{
self->selectedProtocol = PROTOCOL_RDP; self->selectedProtocol = PROTOCOL_RDP;
} }
break; break;

Loading…
Cancel
Save