Function

SSLCreateContext(_:_:_:)

Allocates and returns a new context.

Declaration

func SSLCreateContext(_ alloc: CFAllocator?, _ protocolSide: SSLProtocolSide, _ connectionType: SSLConnectionType) -> SSLContext?

Parameters

alloc

The allocator to use. Pass NULL or kCFAllocatorDefault to use the default allocator.

protocolSide
connectionType

Return Value

A new context.

See Also

Session Context

enum SSLProtocolSide

The flags that indicate whether a context is for the server or client side of a connection.

enum SSLConnectionType

The flags that indicate whether a context is to be used for streaming or datagram-based communication.

class SSLContext

An opaque type that represents an SSL session context object.

func SSLContextGetTypeID() -> CFTypeID

Returns the Core Foundation type ID for context objects.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software