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