Hi,
We’re building on AmebaPro2 (RTL8735B) with ameba-rtos-pro2, synced to GitHub main at a40ae29 (25 Nov 2026). We use KVS WebRTC (kvs_webrtc_mmf, V1) and plan to move to kvs_webrtc_v2_mmf (V2).
What we found in the SDK:
- kvs_webrtc_mmf/readme.md (V1) says to set mbedtls-2.16.6 in config.cmake.
- kvs_webrtc_v2_mmf/readme.md (V2) says 2.16.6 or 3.0.0 is supported.
- Commit ad5a6d6 (“remove mbedtls-3.0.0”) deleted 3.0.0. The SDK now contains 2.16.6, 2.28.1, 3.6.5 and 4.1.1, and config.cmake defaults to 2.28.1.
- The DTLS-SRTP code in V1 (dtls_mbedtls.c) and V2 (transport_dtls_mbedtls.c) uses the 3.x API only for exactly MBEDTLS_VERSION_NUMBER == 0x03000000 || == 0x03020100. Every other version falls back to the patched 2.16 API (mbedtls_ssl_conf_dtls_srtp_protection_profiles(conf, list, count), mbedtls_ssl_get_dtls_srtp_protection_profile()).
- In the 2.28.1 config, MBEDTLS_SSL_DTLS_SRTP is disabled.
What we tested (compile only, V1, SDK a40ae29):
- mbedtls-2.28.1: the KVS WebRTC library fails:
- ‘MBEDTLS_SRTP_AES128_CM_HMAC_SHA1_80’ undeclared (crypto.h:97)
- unknown type name ‘mbedtls_ssl_srtp_profile’ (dtls_mbedtls.c:8)
- The rest of the application (MQTT, HTTP, SDK components) compiles.
- mbedtls-3.6.5: the same errors, plus:
- fatal error: mbedtls/net.h: No such file or directory (netio.c:30)
- ‘mbedtls_ssl_export_keys_ext_t’ undeclared (dtls_mbedtls.c:317)
- too few arguments to function ‘mbedtls_pk_check_pair’ (dtls_mbedtls.c:633)
- The rest of the application compiles, including MQTTFreertos.c, which already handles 3.x.
So the KVS WebRTC library is the only part that stops us moving to a maintained mbedTLS. As far as we can tell, 2.16.6 is now the only version that works for KVS WebRTC, both V1 and V2.
Questions:
- Is it correct that 2.16.6 is currently the only mbedTLS version supported for KVS WebRTC, both V1 and V2?
- mbedTLS 2.16 has been end-of-life since 2021, and 2.28 since end of 2024. For a product shipping to customers we want a maintained version (3.6 LTS). Do you plan to support mbedtls-3.6.5 in KVS WebRTC V1 and/or V2? If so, roughly when?
- Has Realtek’s mbedtls-2.16.6 received any security fixes (CVEs) after upstream 2.16.6? If yes, is there a list?
- With 3.6.5 for V2, which config options must be enabled? We expect MBEDTLS_SSL_DTLS_SRTP, key export and MBEDTLS_FS_IO. Are there known RAM or heap differences compared with 2.16.6?
- Is it possible to use 3.6.5 for MQTT/HTTPS and keep 2.16.6 only for WebRTC, or does the SDK allow only one mbedTLS version per build?
- Could the V2 readme be updated, since it still mentions the removed 3.0.0?
Thanks!