SSLCopyPeerTrust(_:_:)
Retrieves a trust management object for the certificate used by a session.
Declaration
func SSLCopyPeerTrust(_ context: SSLContext, _ trust: UnsafeMutablePointer<SecTrust?>) -> OSStatusParameters
- context:
An SSL session context reference.
- trust:
On return, a trust management object you can use to evaluate trust for the certificate used by the session. A trust management object includes the certificate to be verified plus the policy or policies to be used in evaluating trust. See Certificate Key And Trust Services for functions to create and evaluate trust management objects. You must call the
CFReleasefunction for this object when you are finished with it.
Return Value
A result code. See Secure Transport Result Codes.
Discussion
This function is valid any time after a handshake attempt.