From: Nikita Popov Date: Mon, 3 Jun 2019 16:58:52 +0000 (+0200) Subject: Prevent use of TLS 1.3 in stream_server_reneg_limit.phpt X-Git-Tag: php-7.4.0alpha1~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=117f7720be458cd106f2134e800763ca6f8dd667;p=php Prevent use of TLS 1.3 in stream_server_reneg_limit.phpt TLS 1.3 does not support renegotiation, make sure this test does not use it. --- diff --git a/ext/openssl/tests/stream_server_reneg_limit.phpt b/ext/openssl/tests/stream_server_reneg_limit.phpt index 04d1dc1f7a..47044b53e8 100644 --- a/ext/openssl/tests/stream_server_reneg_limit.phpt +++ b/ext/openssl/tests/stream_server_reneg_limit.phpt @@ -28,6 +28,8 @@ $serverCode = <<<'CODE' $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN; $serverCtx = stream_context_create(['ssl' => [ 'local_cert' => '%s', + // TLS 1.3 does not support renegotiation. + 'max_proto_version' => STREAM_CRYPTO_PROTO_TLSv1_2, 'reneg_limit' => 0, 'reneg_window' => 30, 'reneg_limit_callback' => function($stream) use (&$printed) {