eclipse / tinydtls

Eclipse tinydtls
https://projects.eclipse.org/projects/iot.tinydtls
Other
105 stars 57 forks source link

dtls.c: fix DTLS_CH_LENGTH_MAX for renegotiation info SCSV #204

Closed obgm closed 1 year ago

obgm commented 1 year ago

To provide sufficient buffer space in dtls_send_client_hello(), the size of the TLS_EMPTY_RENEGOTIATION_INFO_SCSV pseudo cipher suite must be added to DTLS_CH_LENGTH_MAX, resulting in 12 bytes overhead instead of 10.

I think this buffer length adaptation was missing in PR #181.

Change-Id: I089a4bcac4772260fc19ea230d7521dec549e7c1