-
Notifications
You must be signed in to change notification settings - Fork 2.7k
unknown type name 'mbedtls_ecp_restart_ctx' #2242
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
Comments
@jwhui Thank you for reporting this issue! You should add I hope this answers your question |
I find it somewhat odd that |
As you can see from my previous comment, |
Hi @jwhui and thanks for your report! Sorry for replying so late. After analyzing the issue, I fully agree with my colleague @RonEld:
|
I'm relabeling as a bug, as I think that's a regression: existing |
@mpg I am not entirely convinced this is a bug. |
@RonEld I think we ruled out alternative implementations of the restartable feature: https://github.com/ARMmbed/mbedtls/blob/development/include/mbedtls/check_config.h#L111 - when we did that, we should have moved the type out of the ALT guard, as it's not ALTable. |
@mpg thank for the reminder! ( I believe I even made that change:) ) |
ARM Internal Ref: IOTSSL-2675 |
Description
mbed TLS build:
Version: 2.14.0
Configuration:
MBEDTLS_ECP_ALT
defined andMBEDTLS_ECP_RESTARTABLE
not definedExpected behavior
Compiles without error.
Actual behavior
error: unknown type name 'mbedtls_ecp_restart_ctx'
Steps to reproduce
MBEDTLS_ECP_ALT
and do not defineMBEDTLS_ECP_RESTARTABLE
in config.library/ecdh.c
.I could simply add
typedef void mbedtls_ecp_restart_ctx;
to my config to fix the above issue, but is that expected?The text was updated successfully, but these errors were encountered: