From 6c2e72ae5c967c28bb45612d6b9bc87c0c94f835 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Tue, 26 Jun 2018 23:46:47 +0100 Subject: [PATCH] #167 - use correct `verify` option for latest Buzz lib This will disable both peer and host SSL verification by cURL --- Service/OS/AndroidGCMNotification.php | 2 +- Service/OS/AndroidNotification.php | 2 +- Service/OS/MicrosoftNotification.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Service/OS/AndroidGCMNotification.php b/Service/OS/AndroidGCMNotification.php index e8b82b6..d33a06f 100644 --- a/Service/OS/AndroidGCMNotification.php +++ b/Service/OS/AndroidGCMNotification.php @@ -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)); diff --git a/Service/OS/AndroidNotification.php b/Service/OS/AndroidNotification.php index c19e40d..3515acd 100644 --- a/Service/OS/AndroidNotification.php +++ b/Service/OS/AndroidNotification.php @@ -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 = ""; } diff --git a/Service/OS/MicrosoftNotification.php b/Service/OS/MicrosoftNotification.php index 5d9e103..3ebeacf 100644 --- a/Service/OS/MicrosoftNotification.php +++ b/Service/OS/MicrosoftNotification.php @@ -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;