Add record size checking during handshake
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
diff --git a/library/ssl_misc.h b/library/ssl_misc.h
index 6b799ee..fabb48b 100644
--- a/library/ssl_misc.h
+++ b/library/ssl_misc.h
@@ -441,9 +441,9 @@
#if defined(MBEDTLS_SSL_RECORD_SIZE_LIMIT)
/**
- * \brief Return the record size limit (in bytes) for
+ * \brief Return the RecordSizeLimit (in bytes) for
* the output buffer. This is less than the value requested by the
- * peer (using RFC 8449), since it subtracts the space required for the
+ * peer (see RFC 8449), since it subtracts the space required for the
* content type and padding of the TLSInnerPlaintext struct (RFC 8446).
* Returns MBEDTLS_SSL_OUT_CONTENT_LEN if no limit was requested by the peer.
*