diff options
| author | Daniel Lowrey <rdlowrey@php.net> | 2014-03-03 18:57:33 -0700 |
|---|---|---|
| committer | Daniel Lowrey <rdlowrey@php.net> | 2014-03-05 10:03:11 -0700 |
| commit | 27849c998a77a093449dec4b051dfc266d5123ec (patch) | |
| tree | 1c6374721ba1ce4025cf32209fdd57a812ea4e62 /ext/openssl/tests/tlsv1.2_wrapper.phpt | |
| parent | 36d3c83abdb299dbbae784b081245c067914f19c (diff) | |
| download | php-git-27849c998a77a093449dec4b051dfc266d5123ec.tar.gz | |
Refactor + reorganize openssl files
- All streams-related code now lives in xp_ssl.c. Previously
stream code was split across both openssl.c and xp_ssl.c
- Folded superfluous php_openssl_structs.h into xp_ssl.c
- Server-specific options now set on SSL_CTX instead of SSL
- Deprecate SNI_server_name ctx option
- Miscellaneous refactoring
Diffstat (limited to 'ext/openssl/tests/tlsv1.2_wrapper.phpt')
| -rw-r--r-- | ext/openssl/tests/tlsv1.2_wrapper.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/tests/tlsv1.2_wrapper.phpt b/ext/openssl/tests/tlsv1.2_wrapper.phpt index ca967d18b4..42980cf661 100644 --- a/ext/openssl/tests/tlsv1.2_wrapper.phpt +++ b/ext/openssl/tests/tlsv1.2_wrapper.phpt @@ -17,7 +17,7 @@ $serverCode = <<<'CODE' phpt_notify(); for ($i=0; $i < 3; $i++) { - @stream_socket_accept($server, 1); + @stream_socket_accept($server, 3); } CODE; @@ -30,13 +30,13 @@ $clientCode = <<<'CODE' phpt_wait(); - $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx); + $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); var_dump($client); - $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx); + $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); var_dump($client); - $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx); + $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx); var_dump($client); CODE; |
