velxio/backend/app
David Montero Crespo 530174f31e fix(espidf): enable mbedTLS PSK so ssl_client.cpp links
arduino-esp32 v2.0.17's libraries/WiFiClientSecure/src/ssl_client.cpp:23
wraps its entire body in:

  #if !defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED) \
   && !defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
  #  warning "Please call idf.py menuconfig ..."
  #else
    ssl_init / start_ssl_client / stop_ssl_socket /
    send_ssl_data / get_ssl_receive / data_to_read
  #endif

Our esp-idf-template/sdkconfig.defaults did not enable any PSK key-exchange
mode, so MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED was never auto-set by
mbedtls and ssl_client.cpp compiled to an empty translation unit. The
companion WiFiClientSecure.cpp still compiled and ended up in
libarduino-esp32.a with dangling references, breaking the link of every
sketch that pulls in HTTPClient or WiFiClientSecure (directly or
transitively).

Reproduced against the user's WiFi + HTTPClient example.com sketch on the
prod server and again locally with ESP-IDF v4.4.7 + arduino-esp32 v2.0.17;
the prebuilt sdkconfig that ships with arduino-esp32 itself sets both
flags, so we just align with that.

After the fix the same sketch links cleanly:
  velxio-sketch.bin binary size 0xbf470 bytes ... 25% free

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 12:38:20 -03:00
..
api feat(odoo-mail): sync partner upsert before firing async mails 2026-05-13 02:59:52 +02:00
core feat(auth): welcome email on register + password reset via Odoo mail relay 2026-05-12 17:34:30 -03:00
database
mcp
models feat(user): add plan_id column for agent quota tier management 2026-05-13 03:21:51 -03:00
schemas feat(auth): welcome email on register + password reset via Odoo mail relay 2026-05-12 17:34:30 -03:00
services fix(espidf): enable mbedTLS PSK so ssl_client.cpp links 2026-05-14 12:38:20 -03:00
utils
__init__.py
main.py feat(user): add plan_id column for agent quota tier management 2026-05-13 03:21:51 -03:00