Change CRYPTO constant as suggested by Sonar Cloud
https://github.com/BirknerAlex/XMPPHP/issues/13
This commit is contained in:
parent
c7cdcc588a
commit
5b3492b151
@ -447,7 +447,7 @@ class XMPP extends XMLStream
|
||||
protected function tls_proceed_handler($xml)
|
||||
{
|
||||
$this->log->log("Starting TLS encryption");
|
||||
stream_socket_enable_crypto($this->socket, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT);
|
||||
stream_socket_enable_crypto($this->socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user