Contents

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.