-
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
Fix dependencies of mbedtls_pk_ec_ro and mbedtls_pk_ec_rw #8320
Fix dependencies of mbedtls_pk_ec_ro and mbedtls_pk_ec_rw #8320
Conversation
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
65c6d13
to
4d0e846
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.
LGTM, but I suggested a small improvement.
library/ssl_tls12_server.c
Outdated
@@ -676,7 +676,11 @@ static int ssl_check_key_curve(mbedtls_pk_context *pk, | |||
uint16_t *curves_tls_id) | |||
{ | |||
uint16_t *curr_tls_id = curves_tls_id; | |||
#if defined(MBEDTLS_PK_USE_PSA_EC_DATA) |
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.
Suggestion: use mbedtls_pk_get_group_id()
.
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.
Nice! I added that function but I totally forgot about it :D
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
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
Description
This PR resolves #8263 by using
!MBEDTLS_PK_USE_PSA_EC_DATA
as guard formbedtls_pk_ec_[ro/rw]
and fixing related issues.PR checklist