# HG changeset patch # User Maxim Dounin # Date 1348768866 0 # Node ID 22a6ef66b6f52696d8eea8111cbd724087110899 # Parent 90bbf2adb2c9eb8348680d067d8d6e5f12df6930 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. diff -r 90bbf2adb2c9 -r 22a6ef66b6f5 src/event/ngx_event_openssl.c --- a/src/event/ngx_event_openssl.c Thu Sep 27 17:59:59 2012 +0000 +++ b/src/event/ngx_event_openssl.c Thu Sep 27 18:01:06 2012 +0000 @@ -94,6 +94,7 @@ OpenSSL_add_all_algorithms(); +#if OPENSSL_VERSION_NUMBER >= 0x0090800fL #ifndef SSL_OP_NO_COMPRESSION { /* @@ -111,6 +112,7 @@ } } #endif +#endif ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);