Sets the server name to request in the TLS handshake.


func sec_protocol_options_set_tls_server_name(_ options: sec_protocol_options_t, _ server_name: UnsafePointer<Int8>)

See Also

Configuring TLS Handshake Options

typealias sec_protocol_options_t

An object that contains security options to use for TLS handshakes.

protocol OS_sec_protocol_options

An interface that supports the object containing security options to use for TLS handshakes.

func sec_protocol_options_add_tls_application_protocol(sec_protocol_options_t, UnsafePointer<Int8>)

Adds an Application-Layer Protocol Negotiation (ALPN) value to present in the TLS handshake.

func sec_protocol_options_add_tls_ciphersuite(sec_protocol_options_t, SSLCipherSuite)

Adds a supported TLS ciphersuite to the configuration.

func sec_protocol_options_add_tls_ciphersuite_group(sec_protocol_options_t, SSLCiphersuiteGroup)

Adds a supported TLS ciphersuite group to the configuration.


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