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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software