How to reset session on client side?
Status: Alpha
Brought to you by:
obgm
Use case:
“dtls_close” seems to send the close notification, but I can’t see, how this resets the session.
“dtls_destroy_peer“ is static, so client side code could not call it.
„dtls_free_context“ will reset all session.
This issue is related to https://sourceforge.net/p/tinydtls/tickets/7/, but points to the client side.
Thanks for pointing this out. I will take a deeper look into the re-handshake for both, client and server side.
Proposal for API extension to allow to reset a peer.
Fixed as suggested in ce2d866 (currently branch develop).