Skip to content

Commit

Permalink
Downgrade server security level in security level test
Browse files Browse the repository at this point in the history
We want to test the client side error here, so make sure the
server side can start up successfully.
  • Loading branch information
nikic committed Jun 18, 2020
1 parent c7fe71c commit 8ba0624
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/openssl/tests/stream_security_level.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ $serverCode = <<<'CODE'
$serverUri = "ssl://127.0.0.1:64322";
$serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
$serverCtx = stream_context_create(['ssl' => [
'local_cert' => '%s'
'local_cert' => '%s',
// Make sure the server side starts up successfully if the default security level is
// higher. We want to test the error at the client side.
'security_level' => 1,
]]);
$server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
Expand Down

0 comments on commit 8ba0624

Please sign in to comment.