SSLGetConnection(_:_:)
Retrieves an I/O connection—such as a socket or endpoint—for a specific session.
Declaration
func SSLGetConnection(_ context: SSLContext, _ connection: UnsafeMutablePointer<SSLConnectionRef?>) -> OSStatusParameters
- context:
An SSL session context reference.
- connection:
On return, a pointer to a session connection reference. If no connection has been set using the Sslsetconnection(_:_:) function, then this parameter is
NULLon return.
Return Value
A result code. See Secure Transport Result Codes.
Discussion
You can use this function on either the client or server to retrieve the connection associated with a secure session.