Hello
If CONFIG_FOTA_DOWNLOAD_NATIVE_TLS is defined in the function fota_download_object_init() the variable dlc.set_native_tls is set to 1 and then in the function download_client_init() this variable is set to 0 ( memset(client, 0, sizeof(*client)); ).
This causes the condition:
if (dl->set_native_tls) {
type |= SOCK_NATIVE_TLS;
}
to be FALSE in the function client_connect() and native TLS does not work correctly.
Is this the correct implementation?
Best Regards