Skip to content

mbedtls_sha256 example causes implicit function declaration warning #639

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

Open
lurch opened this issue Apr 26, 2025 · 0 comments
Open

mbedtls_sha256 example causes implicit function declaration warning #639

lurch opened this issue Apr 26, 2025 · 0 comments
Assignees

Comments

@lurch
Copy link
Contributor

lurch commented Apr 26, 2025

E.g.

/opt/actions-runner/_work/pico-examples/pico-examples/pico-examples/sha/mbedtls_sha256/mbedtls_sha256.c: In function 'main':
/opt/actions-runner/_work/pico-examples/pico-examples/pico-examples/sha/mbedtls_sha256/mbedtls_sha256.c:35:14: warning: implicit declaration of function 'mbedtls_sha256_starts_ret'; did you mean 'mbedtls_sha256_starts'? [-Wimplicit-function-declaration]
   35 |     int rc = mbedtls_sha256_starts_ret(&ctx, 0);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
      |              mbedtls_sha256_starts

This seems to be due to https://github.com/Mbed-TLS/mbedtls/blob/development/docs/3.0-migration-guide.md#rename-mbedtls__ret-cryptography-functions-whose-deprecated-variants-have-been-removed (in combination with raspberrypi/pico-sdk#2405 ).

I won't submit a PR myself, because I don't know what our stance is regarding support for backwards-compatibility with MbedTLS 2.x ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants