Contents

SSLCopyCertificateAuthorities(_:_:)

Retrieves the current list of certification authorities.

Declaration

func SSLCopyCertificateAuthorities(_ context: SSLContext, _ certificates: UnsafeMutablePointer<CFArray?>) -> OSStatus

Parameters

  • context:

    An SSL session context reference.

  • certificates:

    On return, a pointer to a value of type CFArrayRef. This array contains values of type SecCertificateRef representing the current set of certification authorities (specified with the Sslsetcertificateauthorities(_:_:_:) function). Returns a NULL array if Sslsetcertificateauthorities(_:_:_:) has not been called. You must call the CFRelease function to release this array when you are finished with it.

Return Value

A result code. See Secure Transport Result Codes.

See Also

Related Documentation