com php-src: Default single_dh_use and honor_cipher _order to true: ext/openssl/xp_ssl.c
| From: | Sara Golemon | Date: | Sun, 18 Jun 2017 23:54:45 +0000 |
| Subject: | com php-src: Default single_dh_use and honor_cipher _order to true: ext/openssl/xp_ssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98094@lists.php.net to get a copy of this message | ||
Commit: 9badf353867c0b1b6aa1db183ecf090573f0dd4d
Author: Niklas Keller <me@kelunik.com> Sun, 18 Jun 2017 19:54:45 -0400
Committer: Sara Golemon <pollita@php.net> Sun, 18 Jun 2017 19:54:45 -0400
Parents: c690916f5babcaddf626ccbfd563ead7617722ba
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9badf353867c0b1b6aa1db183ecf090573f0dd4d
Log:
Default single_dh_use and honor_cipher_order to true
Changed paths:
M ext/openssl/xp_ssl.c
Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index 66e1d59..c56e67f 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -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;
}