On 2021-06-08 12:28 a.m., Gilles Peskine via mbed-tls wrote:
Hi Ron,
The code you've shown so far only consists of setup functions that populate fields in the configuration structure, then in the context structure. Communication has not started yet. mbedtls_ssl_set_bio in particular is a very simple setter function.
Where does the code actually hang? Have some messages already been exchanged on the network at that point? Can you get a stack trace?
Best regards,
Hi Gilles,
Thank you for the response!
I've inserted print statements after each of the setup functions and can see that it never gets past mbedtls_ssl_set_bio. The messages that have been exchanged, include the complete bring up and login of the control channel, on the data channel, I call mbedtls_x509_crt_init mbedtls_pk_init mbedtls_entropy_init mbedtls_ctr_drbg_init mbedtls_ssl_init mbedtls_ssl_config_init followed by the certificate and key file got parsing, seeding of the RNG and that's where the previously mentioned procedure with mbedtls_ssl_config_defaults() starts. I unfortunately do not have a debugger available on that platform and hence getting a stack trace won't be so straight forward. Do you have any pointers as to what could be the issue potentially?
Thank you,
Ron
mbed-tls@lists.trustedfirmware.org