diff options
author | Idan Freiberg <speidy@gmail.com> | 2014-07-17 14:29:23 +0300 |
---|---|---|
committer | Idan Freiberg <speidy@gmail.com> | 2014-07-17 14:29:23 +0300 |
commit | 7ab1d887aecf7883b1254cd97ecfee02de45b74a (patch) | |
tree | f67d58c85f7b3ca33d1158efabebd2457b0cb46d /libxrdp/xrdp_iso.c | |
parent | f0b6c6b1d178419ae82ad1c8ea2d74c97cc2f27b (diff) | |
download | xrdp-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.c | 9 |
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; } |