We are trying to establish PSK connection with TLS 1.3 for iOS platforms. TLS 1.2 worked fine by using below api's from Network framework.
For that we used API like
sec_protocol_options_add_pre_shared_key
and sec_protocol_options_set_pre_shared_key_selection_block.
Whereas same APIs do not connect for TLS 1.3 PSK with server.
We are setting tls min and max version through
sec_protocol_options_set_min_tls_protocol_version(securityProtocolOptions, .TLSv13) sec_protocol_options_set_max_tls_protocol_version(securityProtocolOptions, .TLSv13)
This results in OPENSSL_internal:NO_SUPPORTED_VERSIONS_ENABLED
and also the cipher suites we set through sec_protocol_options_append_tls_ciphersuite(tlsOptions.securityProtocolOptions,.CHACHA20_POLY1305_SHA256)does
not get reflected in Wireshark too.
And also if we change min_tls_protocol_version to .TLSv12,
tls1.2 connection happens but the cipher suites we set are not at all added in the list of cipher suites in Wireshark.
Any suggestions to get PSK connection successfully with TLS 1.3?