Skip to content

Commit

Permalink
Merge pull request Redth#369 from coffeesmurf/master
Browse files Browse the repository at this point in the history
Fix for APNS Sandbox notifications that were no longer working
  • Loading branch information
Redth committed May 23, 2014
2 parents 19216ea + 8c89f7e commit 191090c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions PushSharp.Apple/ApplePushChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ void connect()

try
{
stream.AuthenticateAsClient(this.appleSettings.Host, this.certificates, System.Security.Authentication.SslProtocols.Ssl3, false);
//stream.AuthenticateAsClient(this.appleSettings.Host);
stream.AuthenticateAsClient(this.appleSettings.Host, this.certificates, System.Security.Authentication.SslProtocols.Tls, false);
}
catch (System.Security.Authentication.AuthenticationException ex)
{
Expand Down
2 changes: 1 addition & 1 deletion PushSharp.Apple/FeedbackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void Run(ApplePushChannelSettings settings, CancellationToken cancelToken
(sender, cert, chain, sslErrs) => { return true; },
(sender, targetHost, localCerts, remoteCert, acceptableIssuers) => { return certificate; });

stream.AuthenticateAsClient(settings.FeedbackHost, certificates, System.Security.Authentication.SslProtocols.Ssl3, false);
stream.AuthenticateAsClient(settings.FeedbackHost, certificates, System.Security.Authentication.SslProtocols.Tls, false);


//Set up
Expand Down

0 comments on commit 191090c

Please sign in to comment.