Function

SSLSetError

Sets the status of a session context.

Declaration

OSStatus SSLSetError(SSLContextRef context, OSStatus status);

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

SSLHandshake

Performs the SSL handshake.

Deprecated
SSLReHandshake

Requests renegotiation of the SSL handshake. Server only.

Deprecated
SSLClose

Terminates the current SSL session.

Deprecated
SSLSetPeerID

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

Deprecated
SSLGetPeerID

Retrieves the current peer ID data.

Deprecated
SSLGetSessionState

Retrieves the state of an SSL session.

Deprecated
SSLSessionState

The flags that represent the state of an SSL session.

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