Control: tags -1 + patch

Attached a patch, which fixes TLSv1 only behavior for PHP >= 5.6.7
--- Sieve.php.orig	2018-03-03 21:11:40.424325629 +0100
+++ Sieve.php.new	2018-03-03 21:29:28.986632120 +0100
@@ -1212,7 +1212,7 @@
             return $res;
         }
 
-        if (!stream_socket_enable_crypto($this->_sock->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
+        if (!stream_socket_enable_crypto($this->_sock->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) {
             return $this->_pear->raiseError('Failed to establish TLS connection', 2);
         }
 

Reply via email to