Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tinydtls-dev] Question about the DTLS handshake Hello Request in TinyDTLS

Hi Olef,

One question, why TinyDTLS when sending the Hello Request send  data as well  ?

The RFC [1] state that a Hello Request should be a empty structure.
 
I believe the lines in discussion are those dtls.c:2998

static int
dtls_send_hello_request(dtls_context_t *ctx, dtls_peer_t *peer)
{
  return dtls_send_handshake_msg_hash(ctx, peer, &peer->session,
                      DTLS_HT_HELLO_REQUEST,
                      NULL, 0, 0);
}

The msg_hash should not be included there.
This  is also noticed by Wireshark  which is unable to identify the type of handshake.


Back to the top