esp-rs / esp-mbedtls

mbedtls for ESP32 bare-metal
Apache License 2.0
17 stars 7 forks source link

`Session` should have it's buffer passed in from outside #36

Closed GnomedDev closed 1 month ago

GnomedDev commented 1 month ago

Currently, this buffer leads to stack overflows in my project so I would like to allocate it statically. https://github.com/esp-rs/esp-mbedtls/blob/27c781fd7a4178e574072aee7ce8821c9ab07335/esp-mbedtls/src/lib.rs#L686-L687

bjoernQ commented 1 month ago

I agree - letting the user supply buffers is probably a good thing. However, since its generic over the BUFFER_SIZE the user can at least control the size of the buffer already