-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
3 changed files
with
89 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters