esp-idf-svc icon indicating copy to clipboard operation
esp-idf-svc copied to clipboard

Map ESP-IDF's mbedTLS to rust-native-tls

Open ivmarkov opened this issue 4 years ago • 6 comments

... 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.

ivmarkov avatar Nov 08 '21 08:11 ivmarkov

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.

igrr avatar Nov 08 '21 09:11 igrr

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.

MabezDev avatar Nov 22 '21 11:11 MabezDev

Bump...

bsodmike avatar Nov 04 '22 10:11 bsodmike

See https://github.com/sfackler/rust-native-tls/issues/211#issuecomment-1301049087 for an update

MabezDev avatar Nov 04 '22 10:11 MabezDev

Thanks @MabezDev

bsodmike avatar Nov 04 '22 10:11 bsodmike

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?

juliankrieger avatar Jun 27 '24 15:06 juliankrieger