Hello TI team,
I wrote a program that exchanges data with different servers via https.
For this program I used the TI https_Client_Get example project.
This sample project works with the TI-RTOS Network Service to transfer data using https GET / POST.
Now I have the problem that our customer has rented a shared IP server and the https request does not send an SNI extension.
If the https request does not use an SNI extension, there will be problems with the certificates.
That's why I talked to the wolfSSL team and they said to me:
Eric Blankenhorn (wolfSSL):
"After speaking with the team, it turns out TI has written an abstraction (TI-RTOS Network Service). We were not involved in that code, so we can't really help with adding custom code to the abstraction layer. Unfortunately you'll need to contact TI support for help. We would be very interested to hear the solution for customizing a TLS connection parameters!"
Now I'm looking for a solution how we can activate the SNI extension. According to wolfSSL
only the function wolfSSL_CTX_UseSNI is required for this.
The transfer parameter ctx is required for this function. However, this structure does not exist in the TI-RTOS Network Service or I cannot access this structure.
#ifdef HAVE_SNI
if (sniHostName)
{
if (wolfSSL_CTX_UseSNI(ctx, 0, sniHostName,(word16) XSTRLEN(sniHostName)) != WOLFSSL_SUCCESS)
{
wolfSSL_CTX_free(ctx); ctx = NULL;
err_sys("UseSNI failed");
}
}
Could you please give me additional help. How can I activate the SNI extension?
My setup is as follows:
TM4C129ENCPDT
TI-RTOS for TivaC Version 2.16.1.14
XDCtools Version: 3.32.0.06_core
wolfSSL Version 4.2.0