Contents

SSLSetIOFuncs(_:_:_:)

Specifies callback functions that perform the network I/O operations.

Declaration

func SSLSetIOFuncs(_ context: SSLContext, _ readFunc: SSLReadFunc, _ writeFunc: SSLWriteFunc) -> OSStatus

Parameters

  • context:

    An SSL session context reference.

  • readFunc:

    A pointer to your read callback function. See Sslreadfunc for information on defining this function.

  • writeFunc:

    A pointer to your write callback function. See Sslwritefunc for information on defining this function.

Mentioned in

Return Value

A result code. See Secure Transport Result Codes.

Discussion

Secure Transport calls your read and write callback functions to perform network I/O. You must define these functions before calling SSLSetIOFuncs(_:_:_:).

You must call SSLSetIOFuncs(_:_:_:) prior to calling the SSLHandshake(_:) function. SSLSetIOFuncs(_:_:_:) cannot be called while a session is active.