summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_iso.c
diff options
context:
space:
mode:
authorIdan Freiberg <speidy@gmail.com>2014-07-17 14:29:23 +0300
committerIdan Freiberg <speidy@gmail.com>2014-07-17 14:29:23 +0300
commit7ab1d887aecf7883b1254cd97ecfee02de45b74a (patch)
treef67d58c85f7b3ca33d1158efabebd2457b0cb46d /libxrdp/xrdp_iso.c
parentf0b6c6b1d178419ae82ad1c8ea2d74c97cc2f27b (diff)
downloadxrdp-proprietary-7ab1d887aecf7883b1254cd97ecfee02de45b74a.tar.gz
xrdp-proprietary-7ab1d887aecf7883b1254cd97ecfee02de45b74a.zip
libxrdp: work on TLS support
Diffstat (limited to 'libxrdp/xrdp_iso.c')
-rw-r--r--libxrdp/xrdp_iso.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libxrdp/xrdp_iso.c b/libxrdp/xrdp_iso.c
index b15be2ad..33570e19 100644
--- a/libxrdp/xrdp_iso.c
+++ b/libxrdp/xrdp_iso.c
@@ -416,7 +416,14 @@ xrdp_iso_send(struct xrdp_iso *self, struct stream *s)
out_uint8(s, ISO_PDU_DT);
out_uint8(s, 0x80);
- if (trans_force_write_s(self->trans, s) != 0)
+ if (self->trans->do_tls)
+ {
+ if (xrdp_tls_force_write_s(self->trans, s) != 0)
+ {
+ return 1;
+ }
+ }
+ else if (trans_force_write_s(self->trans, s) != 0)
{
return 1;
}