mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Default single_dh_use and honor_cipher_order to true
This commit is contained in:
parent
c690916f5b
commit
9badf35386
@ -1252,12 +1252,12 @@ static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx) /* {{{ */
|
||||
|
||||
set_server_dh_param(stream, ctx);
|
||||
zv = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "single_dh_use");
|
||||
if (zv != NULL && zend_is_true(zv)) {
|
||||
if (zv == NULL || zend_is_true(zv)) {
|
||||
ssl_ctx_options |= SSL_OP_SINGLE_DH_USE;
|
||||
}
|
||||
|
||||
zv = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "honor_cipher_order");
|
||||
if (zv != NULL && zend_is_true(zv)) {
|
||||
if (zv == NULL || zend_is_true(zv)) {
|
||||
ssl_ctx_options |= SSL_OP_CIPHER_SERVER_PREFERENCE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user