Is it possible perform the DTLS handshake with one UDP socket, then use those credentials on another UDP socket? I have a case where the handshake information is sent to me embedded in TCP, then UDP encrypted packets are sent to me across a different socket.
I am able to get past the handshake (most of the time), but I’m having trouble swapping out the
mbedtls_net_context afterwards. After the handshake, I attempt to
mbedtls_net_connect to the new UDP socket, but it doesn’t seem to recv any packets. I have also tried
mbedtls_net_accept, but it doesn’t seem to pick up a new connection either.
DTLS packets are definitely getting sent.