summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_mcs.c
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2014-07-21 07:00:12 +0300
committerspeidy <speidy@gmail.com>2014-07-21 07:00:12 +0300
commit1acdc3085eb260c166db7d575f6dfcb8a9cc2e72 (patch)
treec562c1e234811692bd76fb343073323c876ca02f /libxrdp/xrdp_mcs.c
parent7ab1d887aecf7883b1254cd97ecfee02de45b74a (diff)
downloadxrdp-proprietary-1acdc3085eb260c166db7d575f6dfcb8a9cc2e72.tar.gz
xrdp-proprietary-1acdc3085eb260c166db7d575f6dfcb8a9cc2e72.zip
libxrdp: work on TLS mode, temporary changes
Diffstat (limited to 'libxrdp/xrdp_mcs.c')
-rw-r--r--libxrdp/xrdp_mcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxrdp/xrdp_mcs.c b/libxrdp/xrdp_mcs.c
index 13d190d2..fd8fe3fb 100644
--- a/libxrdp/xrdp_mcs.c
+++ b/libxrdp/xrdp_mcs.c
@@ -630,7 +630,6 @@ static int APP_CC
xrdp_mcs_ber_out_header(struct xrdp_mcs *self, struct stream *s,
int tag_val, int len)
{
- g_writeln("tag_val > 0xff ? %d", tag_val > 0xff);
if (tag_val > 0xff)
{
out_uint16_be(s, tag_val);
@@ -640,7 +639,6 @@ xrdp_mcs_ber_out_header(struct xrdp_mcs *self, struct stream *s,
out_uint8(s, tag_val);
}
- g_writeln("len >= 0x80 ? %d", len >= 0x80);
if (len >= 0x80)
{
out_uint8(s, 0x82);
@@ -721,6 +719,7 @@ xrdp_mcs_send_connect_response(struct xrdp_mcs *self)
make_stream(s);
init_stream(s, 8192);
data_len = (int) (self->server_mcs_data->end - self->server_mcs_data->data);
+ g_writeln("data len = %d , +36= %d", data_len, data_len+36);
xrdp_iso_init(self->iso_layer, s);
//TODO: 36 - tls , 38 - rdp - we should calculate that
xrdp_mcs_ber_out_header(self, s, MCS_CONNECT_RESPONSE, data_len + 36);
@@ -734,6 +733,7 @@ xrdp_mcs_send_connect_response(struct xrdp_mcs *self)
out_uint8a(s, self->server_mcs_data->data, data_len);
s_mark_end(s);
+ g_hexdump(s->data, 150);
if (xrdp_iso_send(self->iso_layer, s) != 0)
{
free_stream(s);