From a90ea17abb3f37a50ca190fd4f2320b745dae02e Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Thu, 29 Aug 2013 14:27:25 +0000 Subject: [PATCH] Test if SSL_OP_NO_COMPRESSION is defined before use. OpenSSL < 0.9.9 does not support this option, see upstream commit 566dda07ba16f9d3b9774fd5c8d526d7cc93f179 for reference. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1734 423420c4-83ab-492f-b58f-81f9feb106b5 --- tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcp.c b/tcp.c index aca789a..e8c8f2d 100644 --- a/tcp.c +++ b/tcp.c @@ -318,7 +318,9 @@ tcp_tls_connect(void) } options = 0; +#ifdef SSL_OP_NO_COMPRESSION options |= SSL_OP_NO_COMPRESSION; +#endif // __SSL_OP_NO_COMPRESSION options |= SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; SSL_CTX_set_options(g_ssl_ctx, options); }