Function

SSLSetError(_:_:)

Sets the status of a session context.

Declaration

func SSLSetError(_ context: SSLContext, _ status: OSStatus) -> OSStatus

Parameters

context

A session context.

status

A status result for the context, not to be confused with the return result of this function call. See Secure Transport Result Codes.

Return Value

A result code that represents the outcome of this function call, not to be confused with the status parameter. See Secure Transport Result Codes.

Discussion

Call this function after handling the steps of an SSL handshake, such as server certificate validation.

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.