Skip to content

Commit

Permalink
[mms] Fix BC-breaking regression with self-signed TLS certificates in…
Browse files Browse the repository at this point in the history
…troduced by PHP 5.6.
  • Loading branch information
slusarz committed Jul 1, 2014
1 parent 394efc9 commit 0dcd8ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion framework/Socket_Client/lib/Horde/Socket/Client.php
Expand Up @@ -178,7 +178,17 @@ protected function _connect($host, $port, $timeout, $secure, $retries = 0)
$conn . $host . ':' . $port,
$error_number,
$error_string,
$timeout
$timeout,
STREAM_CLIENT_CONNECT,
/* @todo: As of PHP 5.6, TLS connections require valid certs.
* However, this is BC-breaking to this library. For now, keep
* pre-5.6 behavior. */
stream_context_create(array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false
)
))
);

if ($this->_stream === false) {
Expand Down
4 changes: 2 additions & 2 deletions framework/Socket_Client/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix BC-breaking regression with self-signed TLS certificates introduced by PHP 5.6.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -131,7 +131,7 @@
<date>2014-01-22</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix BC-breaking regression with self-signed TLS certificates introduced by PHP 5.6.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 0dcd8ae

Please sign in to comment.