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

Commits on Mar 27, 2021

  1. dtls.c: Tidy up fragment handling checking code

    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 committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    6632ecb View commit details
    Browse the repository at this point in the history