From dd4ed2c560051aae6e2946456ad875d47f68e89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Fri, 2 Dec 2011 13:43:54 +0100 Subject: [PATCH] [mod_openssl] fix build error if SSL_OP_NO_COMPRESSION isn't defined --- src/modules/mod_openssl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/mod_openssl.c b/src/modules/mod_openssl.c index cccd734..e71207c 100644 --- a/src/modules/mod_openssl.c +++ b/src/modules/mod_openssl.c @@ -665,7 +665,11 @@ static gboolean openssl_setup(liServer *srv, liPlugin* p, liValue *val, gpointer *ciphers = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM", *pemfile = NULL, *ca_file = NULL, *client_ca_file = NULL; long - options = SSL_OP_NO_SSLv2 | SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_NO_COMPRESSION; + options = SSL_OP_NO_SSLv2 | SSL_OP_CIPHER_SERVER_PREFERENCE +#ifdef SSL_OP_NO_COMPRESSION + | SSL_OP_NO_COMPRESSION +#endif + ; guint verify_mode = 0, verify_depth = 1; gboolean