Skip to content
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

Any plan to support mbedTLS 3 instead of soon deprecated mbedTLS 2? #2660

Open
lmussier opened this issue Dec 12, 2024 · 1 comment
Open

Comments

@lmussier
Copy link

Is your feature request related to a problem? Please describe.
Hi,

We are currently using the sdk aong side mbedTLS and as you may know mbedTLS 2.X reach its end of life this year (in two weeks in fact).
cf. https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-2.28.9

Describe the solution you'd like
Make mbedTLS 3 usable with the sdk

Describe alternatives you've considered
Change some path to make the compilation pass.
But we've read this https://github.com/Mbed-TLS/mbedtls/blob/development/docs/3.0-migration-guide.md and there is a reason that theere is a major version bump.

@lmussier lmussier changed the title Any plan to support mbedTLS 3 instead of soon deprecated mbedTLS2? Any plan to support mbedTLS 3 instead of soon deprecated mbedTLS 2? Dec 12, 2024
@lmussier
Copy link
Author

For the records the (certainly first) issue is this one :

[ 17%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/httpapi_curl.c.o
/home/lmussier/workspace/azure-iot-sdk-c/c-utility/adapters/httpapi_curl.c: In function ‘ssl_ctx_callback’:
/home/lmussier/workspace/azure-iot-sdk-c/c-utility/adapters/httpapi_curl.c:418:18: error: too few arguments to function ‘mbedtls_pk_parse_key’
  418 |                 (mbedtls_pk_parse_key(&httpHandleData->key, (const unsigned char *)httpHandleData->x509privatekey, (int)(strlen(httpHandleData->x509privatekey) + 1), NULL, 0) == 0) &&
      |                  ^~~~~~~~~~~~~~~~~~~~
In file included from /opt/mbedTLS-3.6.2/usr/local/include/mbedtls/x509.h:17,
                 from /opt/mbedTLS-3.6.2/usr/local/include/mbedtls/x509_crt.h:16,
                 from /home/lmussier/workspace/azure-iot-sdk-c/c-utility/adapters/httpapi_curl.c:26:
/opt/mbedTLS-3.6.2/usr/local/include/mbedtls/pk.h:1106:5: note: declared here
 1106 | int mbedtls_pk_parse_key(mbedtls_pk_context *ctx,
      |     ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [c-utility/CMakeFiles/aziotsharedutil.dir/build.make:762: c-utility/CMakeFiles/aziotsharedutil.dir/adapters/httpapi_curl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2311: c-utility/CMakeFiles/aziotsharedutil.dir/all] Error 2
make: *** [Makefile:146: all] Error 2


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

No branches or pull requests

1 participant