-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add TLS Handshake defragmentation tests #9928
base: development
Are you sure you want to change the base?
Add TLS Handshake defragmentation tests #9928
Conversation
Signed-off-by: Deomid rojer Ryabkov <[email protected]>
Co-authored-by: minosgalanakis <[email protected]> Signed-off-by: Deomid Ryabkov <[email protected]>
Signed-off-by: Deomid rojer Ryabkov <[email protected]>
bfec8af
to
fc9f04e
Compare
Signed-off-by: Deomid rojer Ryabkov <[email protected]>
Except the first Signed-off-by: Deomid rojer Ryabkov <[email protected]>
4a74b6c
to
9fae2db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good, I like the selection of fragment sizes tested. Just two things:
- missing TLS 1.3 as pointed out in a comment;
- we're only testing this when we're the client, should we also have some tests where we're the server (we'll probably want them to use client authentication so that the client has a large message to fragment: its certificate)?
Signed-off-by: Deomid rojer Ryabkov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my feedback. This looks good to me, but the CI disagrees. Can you look into it? We probably need some require
lines...
Several tests are failing with:
(or obviously a variant with different sizes). We might need to adapt this check in the original PR - Cc @rojer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, just have some questions about the conditions we are testing.
c8993e0
to
909e716
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing our comments. Looks good to me on code inspection, but the CI doesn't seem fully happy yet, I'll have a look.
a11d40b
to
d9bf91d
Compare
The first fragment of a fragmented handshake message always starts at the beginning of the buffer so there's no need to store it. Signed-off-by: Deomid rojer Ryabkov <[email protected]>
d9bf91d
to
0e0c80a
Compare
d37f592
to
253d6c9
Compare
Tests uses openssl s_server with a mix of max_send_frag and split_send_frag options. Signed-off-by: Waleed Elmelegy <[email protected]>
* Add tests for the server side. * Remove restriction for TLS 1.2 so that we can test TLS 1.2 & 1.3. * Use latest version of openSSL to make sure -max_send_frag & -split_send_frag flags are supported. Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
…entation tests Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
Signed-off-by: Waleed Elmelegy <[email protected]>
…on tests. Signed-off-by: Minos Galanakis <[email protected]>
Signed-off-by: Minos Galanakis <[email protected]>
Signed-off-by: Minos Galanakis <[email protected]>
…tion tests. Signed-off-by: Minos Galanakis <[email protected]>
Signed-off-by: Minos Galanakis <[email protected]>
TODO: This is an intermediate commit for review purposes. All of the removed cases will need to be validated. Signed-off-by: Minos Galanakis <[email protected]>
…R_LENGTH Signed-off-by: Minos Galanakis <[email protected]>
…enegotiation. Signed-off-by: Minos Galanakis <[email protected]>
253d6c9
to
e05c649
Compare
Description
Fixes #9887
Add TLS Handshake defragmentation tests based on implementation done in #9872 .
PR checklist