Skip to content

Fix pk init for mbedTLS >= 3.4.0.#7

Open
cpatulea wants to merge 1 commit intojackjansen:masterfrom
cpatulea:pkinit
Open

Fix pk init for mbedTLS >= 3.4.0.#7
cpatulea wants to merge 1 commit intojackjansen:masterfrom
cpatulea:pkinit

Conversation

@cpatulea
Copy link

Without this, on mbedTLS 3.6.5, createSelfSignedCert() crashes with:

Backtrace: 0x42129956:0x3fcc8b40 0x4212a7f2:0x3fcc8b60 0x42063ef6:0x3fcc8bb0
#0 0x42129956 in mbedtls_pk_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:65
#1 0x4212a7f2 in mbedtls_pk_parse_key at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pkparse.c:1126

This prevents Meshtastic from migrating to IDF v5 (meshtastic/firmware#9122).

Without this, on mbedTLS 3.6.5, createSelfSignedCert() crashes with:

Backtrace: 0x42129956:0x3fcc8b40 0x4212a7f2:0x3fcc8b60 0x42063ef6:0x3fcc8bb0
  #0  0x42129956 in mbedtls_pk_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:65
  meshtastic#1  0x4212a7f2 in mbedtls_pk_parse_key at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pkparse.c:1126

This prevents Meshtastic from migrating to IDF v5 (meshtastic/firmware#9122).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant