Menu

#6 Issue when using PSK Identity Hint

2.0
closed
None
2014-12-03
2014-11-26
Sachin
No

While integrating tinyDTLS library with our stack, we ran into an issue which I thought you may help us out with.

In cases (with PSK ciphersuite) where Server is sending ‘PSK Identity Hint’ inside ServerKeyExchange message, DTLS library is not passing the ‘identity hint’ inside ‘desc’ argument in get_psk_info(DTLS_PSK_KEY, desc) callback. Instead, ‘desc’ contains the identity of the client itself. The reason for this is that the call to get_psk_info() inside dtls_send_client_key_exchange() method overwrites the ‘identity hint’ received earlier.
Is this intentional or is this a bug?

TIA
Sachin

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2014-12-03

    This is rather a bug than intended behavior. The psk_identity_hint is stored in the identity field temporarily to save space. Commit 7f19fb9 fixes this by passing the
    psk_identity_hint explicitly in the parameter id of the call-back function.

     
  • Olaf Bergmann

    Olaf Bergmann - 2014-12-03
    • status: open --> closed
    • assigned_to: Olaf Bergmann