From: Sergey Kandaurov Date: Tue, 18 Apr 2017 13:08:46 +0000 (+0300) Subject: SSL: compatibility with OpenSSL master branch. X-Git-Tag: release-1.13.0~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e8c579a18716395911201d3d5114c03ee018afc9;p=nginx.git SSL: compatibility with OpenSSL master branch. The SSL_CTRL_SET_CURVES_LIST macro is removed in the OpenSSL master branch. SSL_CTX_set1_curves_list is preserved as compatibility with previous versions. --- diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 148705ccc..fdbd0c95d 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1090,7 +1090,7 @@ ngx_ssl_ecdh_curve(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *name) * maximum interoperability. */ -#ifdef SSL_CTRL_SET_CURVES_LIST +#if (defined SSL_CTX_set1_curves_list || defined SSL_CTRL_SET_CURVES_LIST) /* * OpenSSL 1.0.2+ allows configuring a curve list instead of a single