Set SNI using nw_endpoint_t or nw_parameters_t?

Is there a way to specify an IP address when creating nw_endpoint_t and then separately specify the hostname to use for SNI for a TLS connection when calling nw_connection_create/nw_connection_start?

Thanks

Accepted Reply

Have you tried sec_protocol_options_set_tls_server_name? This is documented to affect trust evaluation so I’m not sure it will affect SNI (but it makes sense that it would :-).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Replies

Have you tried sec_protocol_options_set_tls_server_name? This is documented to affect trust evaluation so I’m not sure it will affect SNI (but it makes sense that it would :-).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"