Use TLS v1.2 in Zend protocols

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-11-03 22:27:44 +01:00
parent 11a78de0c8
commit 9898b749c7
3 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ class Zend_Mail_Protocol_Imap
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

View File

@ -122,7 +122,7 @@ class Zend_Mail_Protocol_Pop3
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

View File

@ -203,7 +203,7 @@ class Zend_Mail_Protocol_Smtp extends Zend_Mail_Protocol_Abstract
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
*/