Menu

#12 How to reset session on client side?

1.0
closed
None
2015-04-21
2015-03-12
Achim Kraus
No

Use case:

  • The client has established a DTLS session successfully.
  • The server loses the DTLS session (e.g. reboot)
    What should a client then call, to reestablish a new DTLS session?
    On my opinion, the client should try to “reconnect” with a “new session” in epoch 0 (see RFC6347, 4.2.8), but I don’t seem, which tinyDTLS function allows to reset the session.

“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.

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2015-03-24

    Thanks for pointing this out. I will take a deeper look into the re-handshake for both, client and server side.

     
  • Olaf Bergmann

    Olaf Bergmann - 2015-03-24
    • status: open --> accepted
    • assigned_to: Olaf Bergmann
     
  • Achim Kraus

    Achim Kraus - 2015-04-21

    Proposal for API extension to allow to reset a peer.

     
  • Olaf Bergmann

    Olaf Bergmann - 2015-04-21

    Fixed as suggested in ce2d866 (currently branch develop).

     
  • Olaf Bergmann

    Olaf Bergmann - 2015-04-21
    • status: accepted --> closed
     
MongoDB Logo MongoDB