-
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
Remove the dependency on MBEDTLS_TIME_H from the timing module #5708
Remove the dependency on MBEDTLS_TIME_H from the timing module #5708
Conversation
Having such implementation might cause issues for those that expect to have a working implementation. Having a compile-time error is better in such case. Signed-off-by: Andrzej Kurek <[email protected]>
a9bb0d8
to
06cb315
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.
I'm ok with these changes.
I think there are further changes to make (changelog entry, fixes to udp_proxy
) but I won't ask for them here, it'll be easier for me to make a separate PR.
The timing module might include time.h on its own when on a suitable platform, even if MBEDTLS_HAVE_TIME is disabled. Co-authored-by: Tom Cosgrove <[email protected]> Signed-off-by: Andrzej Kurek <[email protected]>
time() is only needed to seed the PRNG non-deterministically. If it isn't available, do seed it, but pick a static seed. Signed-off-by: Andrzej Kurek <[email protected]>
06cb315
to
e756f64
Compare
I added the seed fixes, but the packing dependency is the same as it was -
I would say that this was vague enough to still stand. |
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
Backport: #5718 |
Allow the timing module to include
time.h
if the platform is suitable, even when MBEDTLS_HAVE_TIME is disabled.Remove the dummy timing implementation.
Follow-up after #3624.