Skip to content

mbedtls_sha256 example causes implicit function declaration warning #639

Open
@lurch

Description

@lurch

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 ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions