Am 29.04.2020 um 21:44 schrieb Josh McAtee: > Here is my understanding so far. > > With an existing, open connection, I can call 'altcp_tls_wrap'. This > seems to work fine. > > Then when I attempt to write data after that, it fails because > 'altcp_mbedtls_write' checks if the handshake is done, which it is not. > > The handshake is triggered when connecting (from what I can tell) but > since the connection already exists, the handshake doesn't occur. > > Does this mean I need to modify 'altcp_mbedtls_write' to handshake as > well, instead of returning ERR_VAL upon seeing handshake not done? Is > this the correct way to approach this?
Hmm, no, you'd rather need to add a function that initiates the handshake before allowing the upper layers to continue using the connection. I don't know if that can be done hidden in the altcp layers. Regards, Simon _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users