Created
April 2, 2020 07:10
-
-
Save davidmtamas/dcd05774f0262eafc8843acf50f57da8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let domain = domain { | |
let policies = NSMutableArray() | |
policies.add(SecPolicyCreateSSL(true, domain as CFString)) | |
SecTrustSetPolicies(serverTrust, policies) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment