Skip to content

Conversation

mrdeep1
Copy link
Contributor

@mrdeep1 mrdeep1 commented Mar 24, 2021

Note that this is on the feature/handshake_fragmentation branch. A git rebase develop will update the fragmentation code to be develop ready.

If a fragmented ClientHello is received with no peer, do not handle it.

Check subsequent fragments have the same msg_type, length and message_seq.

Check fragment length + offset is not greater than handshake length.

Check provided data is not less than fragment length

Simplify re-assembly code with better variable names.

Signed-off-by: Jon Shallow [email protected]

@mrdeep1 mrdeep1 changed the title dtls.c: Fix handling ClientHello if no peer and fragment dtls.c: Tidy up fragment handling checking code Mar 26, 2021
If a fragmented ClientHello is received with no peer, do not handle it.

Check subsequent fragments have the same msg_type, length and message_seq.

Check fragment length + offset is not greater than handshake length.

Check provided data is not less than fragment length

Simplify re-assembly code with better variable names.

Signed-off-by: Jon Shallow <[email protected]>
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