Skip to content

Set bigger DTLS_MAX_BUF for Contiki/RIOT#19

Merged
obgm merged 1 commit intoeclipse-tinydtls:developfrom
pokgak:pr/bigger_dtls_max_buf
Oct 2, 2019
Merged

Set bigger DTLS_MAX_BUF for Contiki/RIOT#19
obgm merged 1 commit intoeclipse-tinydtls:developfrom
pokgak:pr/bigger_dtls_max_buf

Conversation

@pokgak
Copy link
Copy Markdown
Contributor

@pokgak pokgak commented Oct 2, 2019

This PR fixes the behavior of a server in RIOT built with only PSK support when an ECC client sends a second ClientHello to it.

Problem

The server does not return handshake_failure as described in the 4th paragraph Section 7.4.1.2 of TLS 1.2 RFC because receiving buffer has a size of DTLS_MAX_BUF which is too small to receive a ClientHello from an ECC client.

Testing

A step-by-step guide reproducing this issue on RIOT is described in RIOT-OS/RIOT#12351. I tested by applying this patch after commit dcac93 which is the current version used in RIOT.

I cannot test this with the latest develop because there is error when using latest commit on develop on RIOT but I don't think it is related to this PR.

@obgm
Copy link
Copy Markdown
Contributor

obgm commented Oct 2, 2019

Thanks, you are correct that this buffer size is somewhat small. Please sign the Eclipse ECA so I can merge your change.

@pokgak
Copy link
Copy Markdown
Contributor Author

pokgak commented Oct 2, 2019

Signed the Eclipse ECA.

@obgm
Copy link
Copy Markdown
Contributor

obgm commented Oct 2, 2019

Oh, and the Eclipse policies also require that you add the Signed-off-by footer with the ECA-signed email address to the commit message (usually by running git commit -a -s). You should be able to simply --amend it now.

@pokgak pokgak force-pushed the pr/bigger_dtls_max_buf branch from 02b8aa2 to 865ca38 Compare October 2, 2019 13:47
@pokgak
Copy link
Copy Markdown
Contributor Author

pokgak commented Oct 2, 2019

Added Signed-by footer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants