mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
#10230 - Extend available TLS encrypt methods in CakeSocket - formatting
This commit is contained in:
parent
6b17567ea7
commit
5c1f60baba
1 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ class CakeSocket {
|
||||||
'protocol' => 'tcp',
|
'protocol' => 'tcp',
|
||||||
'port' => 80,
|
'port' => 80,
|
||||||
'timeout' => 30,
|
'timeout' => 30,
|
||||||
'cryptoType' => 'tls'
|
'cryptoType' => 'tls'
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -94,14 +94,14 @@ class CakeSocket {
|
||||||
'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
|
'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
|
||||||
'sslv23_client' => STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
|
'sslv23_client' => STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
|
||||||
'tls_client' => STREAM_CRYPTO_METHOD_TLS_CLIENT,
|
'tls_client' => STREAM_CRYPTO_METHOD_TLS_CLIENT,
|
||||||
'tlsv1_1_client' => STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT,
|
'tlsv1_1_client' => STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT,
|
||||||
'tlsv1_2_client' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
|
'tlsv1_2_client' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
|
||||||
'sslv2_server' => STREAM_CRYPTO_METHOD_SSLv2_SERVER,
|
'sslv2_server' => STREAM_CRYPTO_METHOD_SSLv2_SERVER,
|
||||||
'sslv3_server' => STREAM_CRYPTO_METHOD_SSLv3_SERVER,
|
'sslv3_server' => STREAM_CRYPTO_METHOD_SSLv3_SERVER,
|
||||||
'sslv23_server' => STREAM_CRYPTO_METHOD_SSLv23_SERVER,
|
'sslv23_server' => STREAM_CRYPTO_METHOD_SSLv23_SERVER,
|
||||||
'tls_server' => STREAM_CRYPTO_METHOD_TLS_SERVER,
|
'tls_server' => STREAM_CRYPTO_METHOD_TLS_SERVER,
|
||||||
'tlsv1_1_server' => STREAM_CRYPTO_METHOD_TLSv1_1_SERVER,
|
'tlsv1_1_server' => STREAM_CRYPTO_METHOD_TLSv1_1_SERVER,
|
||||||
'tlsv1_2_server' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
|
'tlsv1_2_server' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ class CakeSocket {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->enableCrypto($this->config['cryptoType'], 'client');
|
$this->enableCrypto($this->config['cryptoType'], 'client');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->connected;
|
return $this->connected;
|
||||||
|
|
Loading…
Reference in a new issue