-
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
TLS 1.3:finalize tls13 serialize session save and load #6123
TLS 1.3:finalize tls13 serialize session save and load #6123
Conversation
…save_load TLS 1.3: Add serialize session save load I can see that #6087 (comment) and #6087 (comment) are addressed in #6123. Thus I am ok to merge it as it is.
0c26766
to
e363e22
Compare
library/ssl_tls.c
Outdated
#endif | ||
|
||
return( used ); | ||
return( 0 ); |
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.
Curius as to why we setting the MBEDTLS_CHECK_RETURN_CRITICAL
attribute and then returning always 0?
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.
MBEDTLS_SSL_CHK_BUF_PTR
will return buffer too small error.
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.
So aligned it with the behaviour of ssl_tls13_session_save
of always returning 0 and if anything fails it will be caught on the ssl_session_save
. Got it thanks.
e363e22
to
aff7737
Compare
92d73eb
to
c1d5253
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.
LGTM
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
cb21a0f
to
6f6030b
Compare
Rewrite base on @ronald-cron-arm 's comments |
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
6f6030b
to
e36fdd6
Compare
12f8e96
to
35b1730
Compare
From RFC 8446 and the definition of session, we should check the length. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
35b1730
to
5b7c7ca
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.
A few coding style issues. Otherwise this looks good to me.
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
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. @xkqian please have a look to this version.
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
…ialize_session_save_load
Description
Fix #6122
Address left comments in #6087
Status
READY
Part of adding PSK support in TLS 1.3. No need for a change log.