Change CRYPTO constant as suggested by Sonar Cloud

https://github.com/BirknerAlex/XMPPHP/issues/13
This commit is contained in:
Diogo Cordeiro 2019-11-02 20:36:50 +00:00
parent c7cdcc588a
commit 5b3492b151

View File

@ -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();
}