mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
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.
This commit is contained in:
parent
f4f72f9fb5
commit
52b59ebc74
@ -94,6 +94,7 @@ ngx_ssl_init(ngx_log_t *log)
|
|||||||
|
|
||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_NUMBER >= 0x0090800fL
|
||||||
#ifndef SSL_OP_NO_COMPRESSION
|
#ifndef SSL_OP_NO_COMPRESSION
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -110,6 +111,7 @@ ngx_ssl_init(ngx_log_t *log)
|
|||||||
(void) sk_SSL_COMP_pop(ssl_comp_methods);
|
(void) sk_SSL_COMP_pop(ssl_comp_methods);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);
|
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user