Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtls.c: Tidy up fragment handling checking code #62

Open
wants to merge 1 commit into
base: feature/handshake_fragmentation
Choose a base branch
from

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]

dtls.c Show resolved Hide resolved
@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