Contents

SecTrustGetCertificateCount(_:)

Returns the number of certificates in an evaluated certificate chain.

Declaration

func SecTrustGetCertificateCount(_ trust: SecTrust) -> CFIndex

Parameters

Return Value

The number of certificates in the certificate chain.

Discussion

Call the SecTrustEvaluateWithError(_:_:) function before calling this function.