summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-09-27 18:01:06 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-09-27 18:01:06 +0000
commit52b59ebc749596f88592f576f5fd2e1010612786 (patch)
tree357b75aeccc6c788d97e54a970902ceedf725479 /src
parentf4f72f9fb58e8ee4ef85e41d0702c7790c712362 (diff)
downloadnginx-52b59ebc749596f88592f576f5fd2e1010612786.tar.gz
nginx-52b59ebc749596f88592f576f5fd2e1010612786.tar.bz2
SSL: added version checks for ssl compression workaround.
The SSL_COMP_get_compression_methods() is only available as an API function in OpenSSL 0.9.8+, require it explicitly to unbreak build with OpenSSL 0.9.7.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 93d3f651b..5e25b0156 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -94,6 +94,7 @@ ngx_ssl_init(ngx_log_t *log)
OpenSSL_add_all_algorithms();
+#if OPENSSL_VERSION_NUMBER >= 0x0090800fL
#ifndef SSL_OP_NO_COMPRESSION
{
/*
@@ -111,6 +112,7 @@ ngx_ssl_init(ngx_log_t *log)
}
}
#endif
+#endif
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);