mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 16:32:32 -04:00
Formatting fix
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
084334c8f2
commit
46a987367c
@ -1665,15 +1665,15 @@ int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl,
|
|||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
||||||
/*
|
/*
|
||||||
* The next two sizes are the minimum and maximum values of
|
* The next two sizes are the minimum and maximum values of
|
||||||
* data_len over all padlen values.
|
* data_len over all padlen values.
|
||||||
*
|
*
|
||||||
* They're independent of padlen, since we previously did
|
* They're independent of padlen, since we previously did
|
||||||
* data_len -= padlen.
|
* data_len -= padlen.
|
||||||
*
|
*
|
||||||
* Note that max_len + maclen is never more than the buffer
|
* Note that max_len + maclen is never more than the buffer
|
||||||
* length, as we previously did in_msglen -= maclen too.
|
* length, as we previously did in_msglen -= maclen too.
|
||||||
*/
|
*/
|
||||||
const size_t max_len = rec->data_len + padlen;
|
const size_t max_len = rec->data_len + padlen;
|
||||||
const size_t min_len = ( max_len > 256 ) ? max_len - 256 : 0;
|
const size_t min_len = ( max_len > 256 ) ? max_len - 256 : 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user