]> git.kaiwu.me - nginx.git/commitdiff
SSL: compatibility with OpenSSL master branch.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 18 Apr 2017 13:08:46 +0000 (16:08 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 18 Apr 2017 13:08:46 +0000 (16:08 +0300)
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.

src/event/ngx_event_openssl.c

index 148705cccff085eea516f3773ba0f70aa7a19fc0..fdbd0c95d5f92f0538164f9845d6790dd301d521 100644 (file)
@@ -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