From 5a0d1f028a80a6a88b550c3494a95033eb11c79d Mon Sep 17 00:00:00 2001 From: Idan Freiberg Date: Wed, 23 Jul 2014 15:42:19 +0300 Subject: [PATCH] libxrdp: work on TLS mode --- libxrdp/xrdp_sec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index d5e19f76..0bb2688c 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -1002,12 +1002,12 @@ xrdp_sec_recv(struct xrdp_sec *self, struct stream *s, int *chan) return 1; } - //TODO: HACK, we should recognize packets with sec header: client info, and license. + /* TODO: HACK, we should recognize packets without security header + However, client info packet and license packet always have security header. */ if (s->data[17] == 0x13) /* confirm active pdu */ { g_writeln("CONFIRM ACTIVE ARRIVED"); - in_uint8s(s, 6); - return 3; + return 0; } if (s->data[17] == 0x17 || s->data[16] == 0x17) /* rdp data pdu */