ivmarkov / rust-esp32-std-demo

Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
Apache License 2.0
784 stars 105 forks source link

Enable proper TLS #81

Closed svenstaro closed 2 years ago

svenstaro commented 2 years ago

It seems like the original issue for why TLS was disabled in the first place has been resolved with esp-idf 4.4 (which has been released). Is it now feasible to turn on TLS with proper verification and certificates?

ivmarkov commented 2 years ago

Yes, I believe so. I'll turn it on for my own purposes likely in ~ 2 months from now (overwhelmed with other stuff). If you need it sooner, I'll gladly accept a PR!

svenstaro commented 2 years ago

Already tried and it's "easy" to turn on but there's this blocker currently: https://github.com/esp-rs/esp-idf-svc/issues/67

ivmarkov commented 2 years ago

Ok so it is not exposed by esp-idf-svc, sure. But is it also not exposed by esp-idf-sys?

svenstaro commented 2 years ago

It's not exposed as far as I can see. Furthermore, since it's marked extern and it's inline asm I think there's no good way to expose it since it's needed at link time. This is currently a bit over my head.

ivmarkov commented 2 years ago

Dupe of https://github.com/esp-rs/esp-idf-svc/issues/67