Function

SSLCreateContext

Allocates and returns a new context.

Declaration

SSLContextRef SSLCreateContext(CFAllocatorRef alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType);

Parameters

alloc

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

protocolSide
connectionType

Return Value

A new context. Use CFRelease to release this object's memory when you are done with it.

See Also

Session Context

SSLProtocolSide

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

SSLConnectionType

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

SSLContextRef

An opaque type that represents an SSL session context object.

SSLContextGetTypeID

Returns the Core Foundation type ID for context objects.