Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Commit

Permalink
richsage#167 - use correct verify option for latest Buzz lib
Browse files Browse the repository at this point in the history
This will disable both peer and host SSL verification by cURL
  • Loading branch information
NoelLH committed Jun 26, 2018
1 parent aeea503 commit 6c2e72a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Service/OS/AndroidGCMNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct($apiKey, $useMultiCurl, $timeout, $logger, AbstractC
// We'll need to set this per-request if `$client` was provided in constructor.
$this->clientOptions = array(
'timeout' => $timeout,
'verify_peer' => false,
'verify' => false,
);
if (!$client) {
$client = ($useMultiCurl ? new MultiCurl($this->clientOptions) : new Curl($this->clientOptions));
Expand Down
2 changes: 1 addition & 1 deletion Service/OS/AndroidNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($username, $password, $source, $timeout)
$this->source = $source;
$this->clientOptions = array(
'timeout' => $timeout,
'verify_peer' => false,
'verify' => false,
);
$this->authToken = "";
}
Expand Down
2 changes: 1 addition & 1 deletion Service/OS/MicrosoftNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct($timeout, $logger)
{
$options = array(
'timeout' => $timeout,
'verify_peer' => false,
'verify' => false,
);
$this->browser = new Browser(new Curl($options));
$this->logger = $logger;
Expand Down

0 comments on commit 6c2e72a

Please sign in to comment.