Skip to content

Commit

Permalink
[+]: try to add fix for "SSL3_GET_SERVER_CERTIFICATE:certificate veri…
Browse files Browse the repository at this point in the history
…fy failed" (need some testing) v2.1
  • Loading branch information
voku committed May 28, 2016
1 parent e28c22f commit e918222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classes/Swift/Transport/StreamBuffer.php
Expand Up @@ -292,11 +292,11 @@ private function _establishSocketConnection()
}

if (!empty($this->_params['verifySsl'])) {
$options = array_merge_recursive($options, $this->_params['verifySsl']);
$options = array_replace_recursive($options, $this->_params['verifySsl']);
}

if (!empty($this->_params['stream_context_options'])) {
$options = array_merge_recursive($options, $this->_params['stream_context_options']);
$options = array_replace_recursive($options, $this->_params['stream_context_options']);
}

$streamContext = stream_context_create($options);
Expand Down

0 comments on commit e918222

Please sign in to comment.