mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-05 14:26:42 +08:00

This commit adds a macro for buffer bounds checks in the SSL module. It takes the buffer's current and end position as the first argument(s), followed by the needed space; if the available space is too small, it returns an SSL_BUFFER_TOO_SMALL error. Signed-off-by: Ronald Cron <ronald.cron@arm.com>