eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
242 stars 137 forks source link

packet size check for TLS record #173

Closed jkuwaha closed 1 year ago

jkuwaha commented 1 year ago

nx_secure_tls_session_send() tries to send an invalid TLS record if the specified packet is larger than 16KB. It would be great if _nxe_secure_tls_session_send() returns an error in such case.

yanwucai commented 1 year ago

Packet size checking is added in https://github.com/azure-rtos/netxduo/commit/b53390f94b6f7655059b6a3763c3a016ed61681f.