SecTrustGetCertificateCount(_:)
Returns the number of certificates in an evaluated certificate chain.
Declaration
func SecTrustGetCertificateCount(_ trust: SecTrust) -> CFIndexParameters
- trust:
The trust management object for the certificate that has been evaluated. Use the Sectrustcreatewithcertificates(_:_:_:) function to create a trust management object and the Sectrustevaluatewitherror(_:_:) function to evaluate the certificate chain.
Return Value
The number of certificates in the certificate chain.
Discussion
Call the SecTrustEvaluateWithError(_:_:) function before calling this function.