drogue-iot / embedded-tls

An Rust TLS 1.3 implementation for embedded devices.
Apache License 2.0
172 stars 22 forks source link

Make max fragment length optional and send in client hello #111

Closed bugadani closed 1 year ago

bugadani commented 1 year ago

One needs to be careful with this as servers may end up sending fragmented records (cc #110), but this setting can place a guarantee on the upper bounds of the size of the read/write buffer. One caveat is that the plaintext fragment length =/= record length so the buffers actually need some overhead.

Includes some minor improvements extracted from #109