mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Merge branch 'PHP-5.6'
This commit is contained in:
commit
a0cc25bbfb
@ -1166,12 +1166,14 @@ static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC)
|
||||
ssl_ctx_options |= SSL_OP_SINGLE_DH_USE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_ECDH
|
||||
if (SUCCESS == php_stream_context_get_option(
|
||||
stream->context, "ssl", "single_ecdh_use", &val) &&
|
||||
zend_is_true(*val TSRMLS_CC)
|
||||
) {
|
||||
ssl_ctx_options |= SSL_OP_SINGLE_ECDH_USE;
|
||||
}
|
||||
#endif
|
||||
|
||||
SSL_CTX_set_options(ctx, ssl_ctx_options);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user