Issue when using PSK Identity Hint
Status: Alpha
Brought to you by:
obgm
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
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.