Patch patch.diff for OpenSSL related Bug #76420
Patch version 2018-06-06 13:54 UTC
Return to Bug #76420 |
Download this patch
Patch Revisions:
Developer: 24dnlj6zphz@brukerfeil.eu
--- ./ext/openssl/xp_ssl.c 2018-06-06 13:47:21.485978000 +0000
+++ /tmp/xp_ssl.c 2018-06-06 13:33:03.755978000 +0000
@@ -1566,7 +1566,11 @@
return FAILURE;
}
} else {
+#ifdef HAVE_TLS12
+ method = sslsock->is_client ? TLSv1_2_client_method() : TLSv1_2_server_method();
+#else
method = sslsock->is_client ? SSLv23_client_method() : SSLv23_server_method();
+#endif
ssl_ctx_options = php_openssl_get_crypto_method_ctx_flags(method_flags);
if (ssl_ctx_options == -1) {
return FAILURE;
|