Skip to content

Commit

Permalink
Need to check for tvOS 12.0 as well as macOS 10.14 and iOS 12.0 befor…
Browse files Browse the repository at this point in the history
…e attempting use of SecTrustEvaluateWithError() API.
  • Loading branch information
billabt committed Nov 23, 2019
1 parent f88330d commit d0397b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SSLService/SSLService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ public class SSLService: SSLServiceDelegate {
SSLCopyPeerTrust(sslContext, &self.trust)

#if swift(>=4.2)
if #available(macOS 10.14, iOS 12.0, *) {
if #available(macOS 10.14, iOS 12.0, tvOS 12.0, *) {
// Verify against a local embedded certificate...
if let trust = self.trust, let paths = configuration.embeddedServerCertPaths {

Expand Down

0 comments on commit d0397b1

Please sign in to comment.