mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 21:42:27 +01:00 
			
		
		
		
	| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|                  */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user