mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:01:58 +01:00
Use TLS v1.2 in Zend protocols
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
11a78de0c8
commit
9898b749c7
@ -125,7 +125,7 @@ class Zend_Mail_Protocol_Imap
|
|||||||
|
|
||||||
if ($ssl === 'TLS') {
|
if ($ssl === 'TLS') {
|
||||||
$result = $this->requestAndResponse('STARTTLS');
|
$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) {
|
if (!$result) {
|
||||||
/**
|
/**
|
||||||
* @see Zend_Mail_Protocol_Exception
|
* @see Zend_Mail_Protocol_Exception
|
||||||
|
@ -122,7 +122,7 @@ class Zend_Mail_Protocol_Pop3
|
|||||||
|
|
||||||
if ($ssl === 'TLS') {
|
if ($ssl === 'TLS') {
|
||||||
$this->request('STLS');
|
$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) {
|
if (!$result) {
|
||||||
/**
|
/**
|
||||||
* @see Zend_Mail_Protocol_Exception
|
* @see Zend_Mail_Protocol_Exception
|
||||||
|
@ -203,7 +203,7 @@ class Zend_Mail_Protocol_Smtp extends Zend_Mail_Protocol_Abstract
|
|||||||
if ($this->_secure == 'tls') {
|
if ($this->_secure == 'tls') {
|
||||||
$this->_send('STARTTLS');
|
$this->_send('STARTTLS');
|
||||||
$this->_expect(220, 180);
|
$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
|
* @see Zend_Mail_Protocol_Exception
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user