Skip to content

Instantly share code, notes, and snippets.

@davidmtamas
Created April 2, 2020 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmtamas/c8def5aa002619cf2a60facf83067943 to your computer and use it in GitHub Desktop.
Save davidmtamas/c8def5aa002619cf2a60facf83067943 to your computer and use it in GitHub Desktop.
// Check if the trust is valid
var secResult = SecTrustResultType.invalid
let status = SecTrustEvaluate(serverTrust, &secResult)
guard status == errSecSuccess else { return false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment