You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
The text was updated successfully, but these errors were encountered: