Function

SSLSetDatagramHelloCookie(_:_:_:)

Sets the cookie value used in the Datagram Transport Layer Security (DTLS) hello message.

Declaration

func SSLSetDatagramHelloCookie(_ dtlsContext: SSLContext, _ cookie: UnsafeRawPointer?, _ cookieLen: Int) -> OSStatus

Parameters

dtlsContext

The SSL context associated with the connection.

cookie

The cookie value.

cookieLen

The length of the cookie (up to 32 bytes).

Return Value

A result code. See Secure Transport Result Codes.

Discussion

This function should be called only on the server side, and is optional. The default cookie is a zero-length cookie.

See Also

Write Operations

func SSLWrite(SSLContext, UnsafeRawPointer?, Int, UnsafeMutablePointer<Int>) -> OSStatus

Performs a typical application-level write operation.

Deprecated
func SSLGetDatagramWriteSize(SSLContext, UnsafeMutablePointer<Int>) -> OSStatus

Provides the largest packet that the OS guarantees it can send without fragmentation.

Deprecated
func SSLGetMaxDatagramRecordSize(SSLContext, UnsafeMutablePointer<Int>) -> OSStatus

Obtains the maximum datagram record size allowed by the application for a given context.

Deprecated
func SSLSetMaxDatagramRecordSize(SSLContext, Int) -> OSStatus

Sets the maximum datagram record size allowed by the application for a given context.

Deprecated