Function

SSLGetSessionState(_:_:)

Retrieves the state of an SSL session.

Declaration

func SSLGetSessionState(_ context: SSLContext, _ state: UnsafeMutablePointer<SSLSessionState>) -> OSStatus

Parameters

context

An SSL session context reference.

state

On return, points to a constant that indicates the state of the SSL session. See SSLSessionState for possible values.

Return Value

A result code. See Secure Transport Result Codes.

See Also

Session State

func SSLHandshake(SSLContext) -> OSStatus

Performs the SSL handshake.

Deprecated
func SSLReHandshake(SSLContext) -> OSStatus

Requests renegotiation of the SSL handshake. Server only.

Deprecated
func SSLClose(SSLContext) -> OSStatus

Terminates the current SSL session.

Deprecated
func SSLSetPeerID(SSLContext, UnsafeRawPointer?, Int) -> OSStatus

Specifies data that is sufficient to uniquely identify the peer of the current session.

Deprecated
enum SSLSessionState

The flags that represent the state of an SSL session.

func SSLSetError(SSLContext, OSStatus) -> OSStatus

Sets the status of a session context.

Deprecated