Function

SSLCopyALPNProtocols

Gets the list of supported application layer protocols.

Declaration

OSStatus SSLCopyALPNProtocols(SSLContextRef context, CFArrayRef  _Nullable *protocols);

Parameters

context

The session context.

protocols

A pointer the function uses to return an array of ASCII-encoded strings representing the supported protocols, such as http/1.1. See RFC 7301 for more details.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

You must set the protocols parameter to NULL on input, or the operation fails. If the function has data to provide, it allocates memory for an array and returns it using protocols. Otherwise, protocols remains NULL on output.

See Also

Application Layer Protocols

SSLSetALPNProtocols

Sets the list of supported applicaiton layer protocols.

Deprecated