libxrdp: added ini settings for bulk compressor
This commit is contained in:
parent
b6fb300954
commit
eb4209e932
@ -86,6 +86,7 @@ struct xrdp_client_info
|
|||||||
int jpeg_prop_len;
|
int jpeg_prop_len;
|
||||||
char jpeg_prop[64];
|
char jpeg_prop[64];
|
||||||
int v3_codec_id;
|
int v3_codec_id;
|
||||||
|
int use_bulk_comp;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -103,6 +103,15 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
|
|||||||
client_info->use_bitmap_comp = 1;
|
client_info->use_bitmap_comp = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (g_strcasecmp(item, "bulk_compression") == 0)
|
||||||
|
{
|
||||||
|
if (g_strcasecmp(value, "yes") == 0 ||
|
||||||
|
g_strcasecmp(value, "true") == 0 ||
|
||||||
|
g_strcasecmp(value, "1") == 0)
|
||||||
|
{
|
||||||
|
client_info->use_bulk_comp = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (g_strcasecmp(item, "crypt_level") == 0)
|
else if (g_strcasecmp(item, "crypt_level") == 0)
|
||||||
{
|
{
|
||||||
if (g_strcasecmp(value, "low") == 0)
|
if (g_strcasecmp(value, "low") == 0)
|
||||||
|
@ -385,8 +385,16 @@ xrdp_sec_process_logon_info(struct xrdp_sec *self, struct stream *s)
|
|||||||
|
|
||||||
if (flags & RDP_COMPRESSION)
|
if (flags & RDP_COMPRESSION)
|
||||||
{
|
{
|
||||||
self->rdp_layer->client_info.rdp_compression = 1;
|
|
||||||
DEBUG(("flag RDP_COMPRESSION found"));
|
DEBUG(("flag RDP_COMPRESSION found"));
|
||||||
|
if (self->rdp_layer->client_info.use_bulk_comp)
|
||||||
|
{
|
||||||
|
DEBUG(("flag RDP_COMPRESSION set"));
|
||||||
|
self->rdp_layer->client_info.rdp_compression = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DEBUG(("flag RDP_COMPRESSION not set"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
in_uint16_le(s, len_domain);
|
in_uint16_le(s, len_domain);
|
||||||
|
Loading…
Reference in New Issue
Block a user