Function

SSLSetSessionOption(_:_:_:)

Specifies options for a specific session.

Declaration

func SSLSetSessionOption(_ context: SSLContext, _ option: SSLSessionOption, _ value: Bool) -> OSStatus

Parameters

context

An SSL session context reference.

option

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

value

Set to true to enable the option, or false 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

func SSLGetSessionOption(SSLContext, SSLSessionOption, UnsafeMutablePointer<DarwinBoolean>) -> OSStatus

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

Deprecated
enum SSLSessionOption

The options that can be set for an SSL session.