summaryrefslogtreecommitdiffstats
path: root/libxrdp/libxrdp.c
diff options
context:
space:
mode:
authorIdan Freiberg <speidy@gmail.com>2014-07-15 18:29:40 +0300
committerIdan Freiberg <speidy@gmail.com>2014-07-15 18:29:40 +0300
commitf0b6c6b1d178419ae82ad1c8ea2d74c97cc2f27b (patch)
tree4507c5940fa37c55c717dca7244faea0ed1507a5 /libxrdp/libxrdp.c
parent5fcf6beffa3367b8b313bf4414ffd6b3419c76d1 (diff)
downloadxrdp-proprietary-f0b6c6b1d178419ae82ad1c8ea2d74c97cc2f27b.tar.gz
xrdp-proprietary-f0b6c6b1d178419ae82ad1c8ea2d74c97cc2f27b.zip
libxrdp: started adding TLS support
Diffstat (limited to 'libxrdp/libxrdp.c')
-rw-r--r--libxrdp/libxrdp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c
index e9c3508b..6a79e8fb 100644
--- a/libxrdp/libxrdp.c
+++ b/libxrdp/libxrdp.c
@@ -141,7 +141,11 @@ libxrdp_force_read(struct trans* trans)
s = trans->in_s;
init_stream(s, 32 * 1024);
- if (trans_force_read(trans, 4) != 0)
+ if (trans->do_tls)
+ {
+ /*TLS*/
+ }
+ else if (trans_force_read(trans, 4) != 0) /*TCP*/
{
g_writeln("libxrdp_force_read: error");
return 0;