-
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
Introduce mbedtls_ssl_hs_cb_t typedef #5623
Conversation
eb0a4f2
to
c5c2d8d
Compare
c5c2d8d
to
7cb383f
Compare
7cb383f
to
d865edf
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.
This generally looks good to me, just a couple of niggles about the changelog.
ChangeLog.d/mbedtls_ssl_hs_cb_t.txt
Outdated
@@ -0,0 +1,3 @@ | |||
Features | |||
* Introduce mbedtls_ssl_hs_cb_t typedef. |
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.
It would be useful for the reader, I think, to know what this typedef is used for as well as what it is called.
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.
🚀
ChangeLog.d/mbedtls_ssl_hs_cb_t.txt
Outdated
@@ -0,0 +1,3 @@ | |||
Features | |||
* Introduce mbedtls_ssl_hs_cb_t typedef. | |||
* Inline func for mbedtls_ssl_conf_cert_cb(). |
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.
I don't think this is major enough to warrant an entry in the changelog.
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.
🚀
d865edf
to
227930f
Compare
Inline func for mbedtls_ssl_conf_cert_cb() Signed-off-by: Glenn Strauss <[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
ABI-API is expected, pr-merge failing is OpenCI Failure. |
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
Description
Follow-up PR from discussion with @mpg in #5454.
#5454 (comment)
#5454 (comment)
This PR aims to slightly improve the interface. This PR is lower priority as this is not a fix to anything.
Related question: should all new interfaces which are simple getter/setter functions be inlined in the header when struct definition is visible, even if the inline func uses MBEDTLS_PRIVATE? (e.g. setter/getter for
mbedtls_ssl_config
andmbedtls_ssl_context
are available, butstruct mbedtls_ssl_handshake_params
(library/ssl_misc.h) is not visible.) Note: This should not be done for older interfaces (until possibly after a major version bump) since compiled application code might hold references to the symbols.Status
READY
Requires Backporting
NO
Migrations
NO
Todos