diff --git a/webui/Zend/Mail/Protocol/Imap.php b/webui/Zend/Mail/Protocol/Imap.php index 6bb2f11..7d6351c 100644 --- a/webui/Zend/Mail/Protocol/Imap.php +++ b/webui/Zend/Mail/Protocol/Imap.php @@ -125,7 +125,7 @@ if ($ssl === 'TLS') { $result = $this->requestAndResponse('STARTTLS'); - $result = $result && stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); + $result = $result && stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT); if (!$result) { /** * @see Zend_Mail_Protocol_Exception diff --git a/webui/Zend/Mail/Protocol/Pop3.php b/webui/Zend/Mail/Protocol/Pop3.php index 9a76228..f3157e7 100644 --- a/webui/Zend/Mail/Protocol/Pop3.php +++ b/webui/Zend/Mail/Protocol/Pop3.php @@ -122,7 +122,7 @@ if ($ssl === 'TLS') { $this->request('STLS'); - $result = stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); + $result = stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT); if (!$result) { /** * @see Zend_Mail_Protocol_Exception diff --git a/webui/Zend/Mail/Protocol/Smtp.php b/webui/Zend/Mail/Protocol/Smtp.php index 9dd3568..efd25eb 100644 --- a/webui/Zend/Mail/Protocol/Smtp.php +++ b/webui/Zend/Mail/Protocol/Smtp.php @@ -203,7 +203,7 @@ if ($this->_secure == 'tls') { $this->_send('STARTTLS'); $this->_expect(220, 180); - if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { + if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) { /** * @see Zend_Mail_Protocol_Exception */