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
Can you please port this project to support esp-idf v5.2.2 as I am building on Darwin-arm64 ?
Initially it would throw "esp-idf/components/mbedtls/port/include/mbedtls/esp_config.h:29:10: fatal error: mbedtls/mbedtls_config.h: No such file or directory"
After changing the header file in esp_config.h to mbedtls/config.h, it would show more incompatibilities-
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:111:13: error: implicit declaration of function 'mbedtls_ssl_conf_min_tls_version'; did you mean 'mbedtls_ssl_conf_min_version'? [-Werror=implicit-function-declaration]
111 | mbedtls_ssl_conf_min_tls_version(&tls->conf, MBEDTLS_SSL_VERSION_TLS1_2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_conf_min_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:112:13: error: implicit declaration of function 'mbedtls_ssl_conf_max_tls_version'; did you mean 'mbedtls_ssl_conf_max_version'? [-Werror=implicit-function-declaration]
112 | mbedtls_ssl_conf_max_tls_version(&tls->conf, MBEDTLS_SSL_VERSION_TLS1_2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_conf_max_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'esp_mbedtls_read':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:253:9: error: implicit declaration of function 'mbedtls_ssl_get_version_number'; did you mean 'mbedtls_ssl_get_version'? [-Werror=implicit-function-declaration]
253 | if (mbedtls_ssl_get_version_number(&tls->ssl) == MBEDTLS_SSL_VERSION_TLS1_3) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_get_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:253:54: error: 'MBEDTLS_SSL_VERSION_TLS1_3' undeclared (first use in this function); did you mean 'MBEDTLS_SSL_PROTO_TLS1_2'?
253 | if (mbedtls_ssl_get_version_number(&tls->ssl) == MBEDTLS_SSL_VERSION_TLS1_3) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_SSL_PROTO_TLS1_2
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:23: error: 'MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET' undeclared (first use in this function); did you mean 'MBEDTLS_ERR_SSL_BAD_HS_NEW_SESSION_TICKET'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_ERR_SSL_BAD_HS_NEW_SESSION_TICKET
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:78: error: 'mbedtls_ssl_context' has no member named 'MBEDTLS_PRIVATE'
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:95: error: 'state' undeclared (first use in this function); did you mean 'stat'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~
| stat
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:105: error: 'MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET' undeclared (first use in this function); did you mean 'MBEDTLS_SSL_HS_NEW_SESSION_TICKET'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_SSL_HS_NEW_SESSION_TICKET
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'set_pki_context':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:441:19: error: too many arguments to function 'mbedtls_pk_parse_key'
441 | ret = mbedtls_pk_parse_key(pki->pk_key, pki->privkey_pem_buf, pki->privkey_pem_bytes,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/ssl_ciphersuites.h:33,
from /Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/ssl.h:36,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls_errors.h:13,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls.h:11,
from /Users//Dev/esp-idf/components/esp-tls/private_include/esp_tls_mbedtls.h:8,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:16:
/Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/pk.h:575:5: note: declared here
575 | int mbedtls_pk_parse_key( mbedtls_pk_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'esp_mbedtls_init_pk_ctx_for_ds':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:1107:5: error: too few arguments to function 'mbedtls_rsa_init'
1107 | mbedtls_rsa_init(&rsakey);
| ^~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
vkumar-infy
changed the title
mbedtls conflicts when building with the latest esp-idf 5.4 version
mbedtls conflicts when building with the latest esp-idf 5.2.2 release
Jun 7, 2024
Can you please port this project to support esp-idf v5.2.2 as I am building on Darwin-arm64 ?
Initially it would throw "esp-idf/components/mbedtls/port/include/mbedtls/esp_config.h:29:10: fatal error: mbedtls/mbedtls_config.h: No such file or directory"
After changing the header file in esp_config.h to mbedtls/config.h, it would show more incompatibilities-
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:111:13: error: implicit declaration of function 'mbedtls_ssl_conf_min_tls_version'; did you mean 'mbedtls_ssl_conf_min_version'? [-Werror=implicit-function-declaration]
111 | mbedtls_ssl_conf_min_tls_version(&tls->conf, MBEDTLS_SSL_VERSION_TLS1_2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_conf_min_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:112:13: error: implicit declaration of function 'mbedtls_ssl_conf_max_tls_version'; did you mean 'mbedtls_ssl_conf_max_version'? [-Werror=implicit-function-declaration]
112 | mbedtls_ssl_conf_max_tls_version(&tls->conf, MBEDTLS_SSL_VERSION_TLS1_2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_conf_max_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'esp_mbedtls_read':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:253:9: error: implicit declaration of function 'mbedtls_ssl_get_version_number'; did you mean 'mbedtls_ssl_get_version'? [-Werror=implicit-function-declaration]
253 | if (mbedtls_ssl_get_version_number(&tls->ssl) == MBEDTLS_SSL_VERSION_TLS1_3) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mbedtls_ssl_get_version
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:253:54: error: 'MBEDTLS_SSL_VERSION_TLS1_3' undeclared (first use in this function); did you mean 'MBEDTLS_SSL_PROTO_TLS1_2'?
253 | if (mbedtls_ssl_get_version_number(&tls->ssl) == MBEDTLS_SSL_VERSION_TLS1_3) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_SSL_PROTO_TLS1_2
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:23: error: 'MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET' undeclared (first use in this function); did you mean 'MBEDTLS_ERR_SSL_BAD_HS_NEW_SESSION_TICKET'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_ERR_SSL_BAD_HS_NEW_SESSION_TICKET
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:78: error: 'mbedtls_ssl_context' has no member named 'MBEDTLS_PRIVATE'
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:95: error: 'state' undeclared (first use in this function); did you mean 'stat'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~
| stat
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:254:105: error: 'MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET' undeclared (first use in this function); did you mean 'MBEDTLS_SSL_HS_NEW_SESSION_TICKET'?
254 | while (ret == MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET || tls->ssl.MBEDTLS_PRIVATE(state) == MBEDTLS_SSL_TLS1_3_NEW_SESSION_TICKET) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBEDTLS_SSL_HS_NEW_SESSION_TICKET
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'set_pki_context':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:441:19: error: too many arguments to function 'mbedtls_pk_parse_key'
441 | ret = mbedtls_pk_parse_key(pki->pk_key, pki->privkey_pem_buf, pki->privkey_pem_bytes,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/ssl_ciphersuites.h:33,
from /Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/ssl.h:36,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls_errors.h:13,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls.h:11,
from /Users//Dev/esp-idf/components/esp-tls/private_include/esp_tls_mbedtls.h:8,
from /Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:16:
/Users//Dev/esp-idf/components/mbedtls/mbedtls/include/mbedtls/pk.h:575:5: note: declared here
575 | int mbedtls_pk_parse_key( mbedtls_pk_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c: In function 'esp_mbedtls_init_pk_ctx_for_ds':
/Users//Dev/esp-idf/components/esp-tls/esp_tls_mbedtls.c:1107:5: error: too few arguments to function 'mbedtls_rsa_init'
1107 | mbedtls_rsa_init(&rsakey);
| ^~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: