sepfy / libpeer

WebRTC Library for IoT/Embedded Device using C
MIT License
804 stars 108 forks source link

Compatibility with ESP-IDF version>5.0.2 #61

Closed maherahmed closed 2 weeks ago

maherahmed commented 7 months ago

In ESP-IDF versions > 5.0.2, a newer mbedtls version is used, which means:

  1. RSA_KEY_LENGTH of less than 1024 bit is no longer accepted. (Although this could be altered from mbedtls/config.h).
  2. mbedtls_x509write_crt_set_serial is deprecated in favor of mbedtls_x509write_crt_set_serial_raw.

Therefore this pull request is:

  1. Increasing the RSA_KEY_LENGTH to 1024 when ESP-IDF versions > 5.0.2.
  2. Using mbedtls_x509write_crt_set_serial_raw instead of mbedtls_x509write_crt_set_serial when ESP-IDF versions > 5.0.2.
BrentHuang commented 3 months ago

where is the file 'esp_idf_version.h'?

sepfy commented 2 weeks ago

Hello, because this PR failed to compile under linux, it cannot be merged. Sorry for that