com php-src: Hide setting server ECDH curve for OpenSSL 1.1: ext/openssl/xp_ssl.c
| From: | Jakub Zelenka | Date: | Sun, 17 Jul 2016 16:46:14 +0000 |
| Subject: | com php-src: Hide setting server ECDH curve for OpenSSL 1.1: ext/openssl/xp_ssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93250@lists.php.net to get a copy of this message | ||
Commit: 069d20a33bd45c41257caa5da013f7a42be4467c
Author: Jakub Zelenka <bukka@php.net> Sun, 6 Mar 2016 12:35:45 +0000
Parents: 1123c85d7900b1a3822f29ea65df04dcceda37ce
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=069d20a33bd45c41257caa5da013f7a42be4467c
Log:
Hide setting server ECDH curve for OpenSSL 1.1
It seems to be done automatically
Changed paths:
M ext/openssl/xp_ssl.c
Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index 9500437..f2e23da 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -1179,7 +1179,7 @@ static int set_server_dh_param(php_stream * stream, SSL_CTX *ctx) /* {{{ */
/* }}} */
#endif
-#ifdef HAVE_ECDH
+#if defined(HAVE_ECDH) && OPENSSL_VERSION_NUMBER < 0x10100000L
static int set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx) /* {{{ */
{
zval *zvcurve;
@@ -1222,7 +1222,7 @@ static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx) /* {{{
*/
zval *zv;
long ssl_ctx_options = SSL_CTX_get_options(ctx);
-#ifdef HAVE_ECDH
+#if defined(HAVE_ECDH) && OPENSSL_VERSION_NUMBER < 0x10100000L
if (set_server_ecdh_curve(stream, ctx) == FAILURE) {
return FAILURE;
}