-
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 tls13 client dummy state handlers and improve dispatch test #4942
add tls13 client dummy state handlers and improve dispatch test #4942
Conversation
227a321
to
59352da
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.
Just two things I am not sure about.
8f6329c
to
56f9b87
Compare
ef76e5e
to
311716b
Compare
Only Travis CI raise random fail . |
Signed-off-by: Jerry Yu <[email protected]>
Signed-off-by: Jerry Yu <[email protected]>
It is temporary check. If any change on `mbedtls_ssl_states`, please double check those tests Signed-off-by: Jerry Yu <[email protected]>
Signed-off-by: Jerry Yu <[email protected]>
Signed-off-by: Jerry Yu <[email protected]>
dce27af
to
e86cd65
Compare
Rebased |
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 good to me, considering this is only temporary and things are expected to change in follow-up PRs.
|
Signed-off-by: Jerry Yu <[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.
Only one consistency point other this looks good to me.
Signed-off-by: Jerry Yu <[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.
LGTM
I've checked that the feedback from Gilles either has been addressed, or is no longer relevant for this PR ( |
Description
This PR includes two small changes
Improve TLS1.3 dispatch test
The test is to confirm client/server call correct handshake function. Originally, it depends on the return value, this PR adds two debug output message for client and server. And check if the message exists.
Add dummy handler functions for client states. I am not very sure if it is valuable
This PR adds all states and handlers needed by
MVP
. The states are come from Fix compile errors without 0-RTT, MPS and compatible mode hannestschofenig/mbedtls#359, that PR disable options unneeded byMVP
.I think this PR can reduce conflicts in future and make sure we did not miss anything.
All PR will change
mbedtls_ssl_tls13_handshake_client_step
. So I create them with dummy handlers, future PRs can fill the dummy handlers to reduce conflicts. And if all handlers are filled, that means everything done and a real test forMVP
should be added.Difference with
prototype
:ssl_tls13_client.c
for all states.prototype
did not create local functions, some functions are not inssl_tls13_client.c
ssl_tls13_<direction><state_name>
direction
values:read_
, if the state depends on server input dataprocess_
, base on add tls13 client dummy state handlers and improve dispatch test #4942 (comment) ,read_
is replaced.write_
, if the state will output data to server_
, if it does not send/receive any datastate_name
: the lowercase of state name without prefixStatus
READY