File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -387,15 +387,11 @@ public function baseRead($socket, $check_eof = true)
387
387
{
388
388
// SSL handshake.
389
389
if ($ this ->transport === 'ssl ' && $ this ->_sslHandshakeCompleted !== true ) {
390
- $ ret = stream_socket_enable_crypto ($ socket , true , STREAM_CRYPTO_METHOD_SSLv23_SERVER);
390
+ $ ret = stream_socket_enable_crypto ($ socket , true , STREAM_CRYPTO_METHOD_SSLv2_SERVER |
391
+ STREAM_CRYPTO_METHOD_SSLv3_SERVER | STREAM_CRYPTO_METHOD_SSLv23_SERVER);
391
392
// Negotiation has failed.
392
393
if (false === $ ret ) {
393
- $ error = error_get_last ();
394
- $ error_msg = '' ;
395
- if ($ error ) {
396
- $ error_msg = "{$ error ['message ' ]} in {$ error ['file ' ]} on line {$ error ['line ' ]}" ;
397
- }
398
- echo new \Exception ("SSL handshake fail $ error_msg " );
394
+ echo "\nSSL Handshake fail. \nBuffer: " .bin2hex (fread ($ socket , 8182 ))."\n" ;
399
395
return $ this ->destroy ();
400
396
} elseif (0 === $ ret ) {
401
397
// There isn't enough data and should try again.
You can’t perform that action at this time.
0 commit comments