From 5b3492b15189245e41fc24fde53b7cc7d451cbb2 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Sat, 2 Nov 2019 20:36:50 +0000 Subject: [PATCH] Change CRYPTO constant as suggested by Sonar Cloud https://github.com/BirknerAlex/XMPPHP/issues/13 --- XMPPHP/XMPP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index 55b58db..fbbe13f 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -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(); }