Patch mysqlnd_tls_1_2_workaround.diff for MySQLi related Bug #74445
Patch version 2017-05-17 11:49 UTC
Return to Bug #74445 |
Download this patch
Patch Revisions:
Developer: johannes@php.net
diff --git a/ext/mysqlnd/mysqlnd_vio.c b/ext/mysqlnd/mysqlnd_vio.c
index ef097c9..63f7920 100644
--- a/ext/mysqlnd/mysqlnd_vio.c
+++ b/ext/mysqlnd/mysqlnd_vio.c
@@ -557,7 +557,7 @@ MYSQLND_METHOD(mysqlnd_vio, enable_ssl)(MYSQLND_VIO * const net)
}
}
php_stream_context_set(net_stream, context);
- if (php_stream_xport_crypto_setup(net_stream, STREAM_CRYPTO_METHOD_TLS_CLIENT, NULL) < 0 ||
+ if (php_stream_xport_crypto_setup(net_stream, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, NULL) < 0 ||
php_stream_xport_crypto_enable(net_stream, 1) < 0)
{
DBG_ERR("Cannot connect to MySQL by using SSL");
|