diff --git a/library/ssl_misc.h b/library/ssl_misc.h index fabb48bd8..c8de03609 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -441,18 +441,13 @@ size_t mbedtls_ssl_get_input_max_frag_len(const mbedtls_ssl_context *ssl); #if defined(MBEDTLS_SSL_RECORD_SIZE_LIMIT) /** - * \brief Return the RecordSizeLimit (in bytes) for - * the output buffer. This is less than the value requested by 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. - * - * \sa mbedtls_ssl_get_max_out_record_payload() - * ssl_compute_internal_record_size_limit() + * \brief Get the size limit in bytes for the protected outgoing records + * as defined in RFC 8449 * * \param ssl SSL context * - * \return Current record size limit for the output buffer. + * \return The size limit in bytes for the protected outgoing + * records as defined in RFC 8449. */ size_t mbedtls_ssl_get_output_record_size_limit(const mbedtls_ssl_context *ssl); #endif /* MBEDTLS_SSL_RECORD_SIZE_LIMIT */