Function

SSLSetSessionOption

Specifies options for a specific session.

Declaration

OSStatus SSLSetSessionOption(SSLContextRef context, SSLSessionOption option, Boolean value);

Parameters

context

An SSL session context reference.

option

An SSL session option. Possible values are listed in SSLSessionOption.

value

Set to YES to enable the option, or NO to disable it.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

This function must be called prior to the SSLHandshake function; consequently, this function can be called only when no session is active.

See Also

Context Options

SSLGetSessionOption

Indicates the current setting of Secure Sockets Layer (SSL) session options.

Deprecated
SSLSessionOption

The options that can be set for an SSL session.