Function

SSLCopyCertificateAuthorities

Retrieves the current list of certification authorities.

Declaration

OSStatus SSLCopyCertificateAuthorities(SSLContextRef context, CFArrayRef  _Nullable *certificates);

Parameters

context

An SSL session context reference.

trustedRoots

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

Root Certificates

SSLSetCertificateAuthorities

Adds one or more certificates to a server's list of certification authorities (CAs) acceptable for client authentication.