Hello,
Greetings,
I am currently attempting to establish a connection between the LPCXpresso55S16 (acting as a server) and the Raspberry Pi (acting as a client) via DTLS using the mbedtls library. Unfortunately, during the handshake process, I encountered an issue where the ssl_parse_client_key_exchange function returns a negative value, causing the handshake to be stuck indefinitely.
As there are no available SDK examples for a DTLS server and client using mbedtls on the board, I am seeking assistance from anyone who might have a sample server and client example. This will allow me to test it with my board and identify the cause of the error in my original code.
Additionally, I have noticed a particular error in the ssl_buffer_message function, specifically with the line: mbedtls_ssl_handshake_params * const hs = ssl->handshake;. After inspecting the contents of the hs structure, I observed that several of its members lack values, and some are displaying the following message:
"Multiple errors reported.
Failed to execute MI command: -var-create - * &((hs)->alt_out_ctr) Error message from debugger back end: value has been optimized out
Failed to execute MI command: -data-evaluate-expression (hs)->alt_out_ctr Error message from debugger back end: value has been optimized out
Failed to execute MI command: -var-create - * &((hs)->alt_out_ctr) Error message from debugger back end: value has been optimized out
Unable to create variable object."
This error seems to be originating from the ssl_buffer_message function.
If anyone could provide assistance with these issues, I would be deeply grateful. Thank you for your time and consideration.
Best regards,
Ahmed.