From 5614c78402850e1d09e3976c97bdd178511aeba1 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 29 Jul 2015 14:02:33 +0200 Subject: [PATCH] Force TLS instead of SSL See https://developer.apple.com/news/?id=10222014a --- CHANGELOG.md | 2 ++ library/ZendService/Apple/Apns/Client/Feedback.php | 4 ++-- library/ZendService/Apple/Apns/Client/Message.php | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84b02bc..96ae04c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,3 +25,5 @@ All notable changes to this project will be documented in this file, in reverse possible infinity fread in certain PHP versions. - [#28](https://github.com/zendframework/ZendService_Apple_Apns/pull/28) Fixed docblocks that prevented proper code completion in some editors. +- [#29](https://github.com/zendframework/ZendService_Apple_Apns/pull/29) Force + TLS vs. SSL due to [Apple moving to TLS](https://developer.apple.com/news/?id=10222014a). diff --git a/library/ZendService/Apple/Apns/Client/Feedback.php b/library/ZendService/Apple/Apns/Client/Feedback.php index 5d9c133..3261415 100644 --- a/library/ZendService/Apple/Apns/Client/Feedback.php +++ b/library/ZendService/Apple/Apns/Client/Feedback.php @@ -23,8 +23,8 @@ class Feedback extends AbstractClient * @var array */ protected $uris = array( - 'ssl://feedback.sandbox.push.apple.com:2196', - 'ssl://feedback.push.apple.com:2196' + 'tls://feedback.sandbox.push.apple.com:2196', + 'tls://feedback.push.apple.com:2196' ); /** diff --git a/library/ZendService/Apple/Apns/Client/Message.php b/library/ZendService/Apple/Apns/Client/Message.php index 7bae595..a18077b 100644 --- a/library/ZendService/Apple/Apns/Client/Message.php +++ b/library/ZendService/Apple/Apns/Client/Message.php @@ -30,8 +30,8 @@ class Message extends AbstractClient * @var array */ protected $uris = array( - 'ssl://gateway.sandbox.push.apple.com:2195', - 'ssl://gateway.push.apple.com:2195', + 'tls://gateway.sandbox.push.apple.com:2195', + 'tls://gateway.push.apple.com:2195', ); /**