Klaus Demo nginx / 52b59eb
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. Maxim Dounin 8 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9393
9494 OpenSSL_add_all_algorithms();
9595
96 #if OPENSSL_VERSION_NUMBER >= 0x0090800fL
9697 #ifndef SSL_OP_NO_COMPRESSION
9798 {
9899 /*
109110 (void) sk_SSL_COMP_pop(ssl_comp_methods);
110111 }
111112 }
113 #endif
112114 #endif
113115
114116 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);