summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authortomek <eustachy.kapusta@gmail.com>2014-11-30 20:41:13 +0100
committertomek <eustachy.kapusta@gmail.com>2014-11-30 20:41:13 +0100
commit0019af675ad697bc28bd52d6025ff1c95b461f77 (patch)
treec4b1cee5e8f2534983686b9518871de1b6b8db5c /src/common
parentf03023297b7efc5e93ba258b5940b76967bbfc20 (diff)
Fix compilation on Windows
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ssl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c
index f490929a..21b30da3 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -44,6 +44,10 @@
 #define SSL_OP_SINGLE_ECDH_USE 0
 #endif
 
+#ifndef SSL_OP_NO_COMPRESSION
+#define SSL_OP_NO_COMPRESSION 0
+#endif
+
 /* globals */
 static struct chiper_info chiper_info;		/* static buffer for _SSL_get_cipher_info() */
 static char err_buf[256];			/* generic error buffer */
@@ -90,9 +94,7 @@ _SSL_context_init (void (*info_cb_func), int server)
 	SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_BOTH);
 	SSL_CTX_set_timeout (ctx, 300);
 	SSL_CTX_set_options (ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3
-#ifdef SSL_OP_NO_COMPRESSION
 							  |SSL_OP_NO_COMPRESSION
-#endif
 							  |SSL_OP_SINGLE_DH_USE|SSL_OP_SINGLE_ECDH_USE
 							  |SSL_OP_NO_TICKET
 							  |SSL_OP_CIPHER_SERVER_PREFERENCE);