esp-idf-svc
esp-idf-svc copied to clipboard
Map ESP-IDF's mbedTLS to rust-native-tls
... or alternatively, map ESP-IDF's partial OpenSSL implementation to rust-openssl.
Both solutions would require a lot of work and will likely result in patches against one of these upstream crates.
Just a note, esp-idf will drop support for OpenSSL wrapper in 5.0 release. If it is necessary for rust, there is an option to extract the wrapper into a separate component, and maintain it as part for esp-rs organization.
I think our best bet is to add support for mbedtls to rust-native-tls. There is rust-mbedtls, however we probably need to PR some changes so that it it's possible to link against the mbedtls component in esp-idf instead of building from source.
I'll look into building rust-mbedtls against esp-idf, and I'll also open an issue upstream in rust-native-tls to make sure they are open to the implementation.
Bump...
See https://github.com/sfackler/rust-native-tls/issues/211#issuecomment-1301049087 for an update
Thanks @MabezDev
Is this issue still open? Brian Smith seems to have added support for little endian architectures in Ring a couple of weeks ago. See more here: https://www.reddit.com/r/rust/comments/1d7zzb8/which_tls_crate_do_you_recommend_to_use_for_an/
It seems like this commit (https://github.com/briansmith/ring/commit/ed5b2a86cccfe30e670b33536fc7e494fb5e9e19) is not yet included in a release and I've not yet tried it, but it seems like ring should then work on esp32 systems?