Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/FreeRDP-old.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libfreerdp-core/secure.c')
-rw-r--r--libfreerdp-core/secure.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfreerdp-core/secure.c b/libfreerdp-core/secure.c
index 06e1e3e..8b6f185 100644
--- a/libfreerdp-core/secure.c
+++ b/libfreerdp-core/secure.c
@@ -258,7 +258,7 @@ static void
sec_decrypt(rdpSec * sec, uint8 * data, int length)
{
#ifndef DISABLE_TLS
- if (sec->tls_connected)
+ if (sec->net->tls_connected)
return;
#endif
@@ -462,7 +462,7 @@ sec_out_client_security_data(rdpSec * sec, rdpSet * settings, STREAM s)
out_uint16_le(s, UDH_CS_SECURITY); /* User Data Header type */
out_uint16_le(s, 12); /* total length */
- if (settings->encryption || sec->tls_connected)
+ if (settings->encryption || sec->net->tls_connected)
encryptionMethods = ENCRYPTION_40BIT_FLAG | ENCRYPTION_128BIT_FLAG;
out_uint32_le(s, encryptionMethods); /* encryptionMethods */