Function

SSLGetConnection

Retrieves an I/O connection—such as a socket or endpoint—for a specific session.

Declaration

OSStatus SSLGetConnection(SSLContextRef context, SSLConnectionRef  _Nullable *connection);

Parameters

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 NULL on 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.

See Also

I/O Connections

SSLSetConnection

Specifies an I/O connection for a specific session.

Deprecated
SSLConnectionRef

A pointer to an opaque I/O connection object.