mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-04 13:20:23 +00:00
Fix type of force_flush parameter
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
9f55f6316e
commit
00d012f2be
library
@ -1232,13 +1232,13 @@ int mbedtls_ssl_fetch_input( mbedtls_ssl_context *ssl, size_t nb_want );
|
|||||||
|
|
||||||
int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl,
|
int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl,
|
||||||
int update_checksum,
|
int update_checksum,
|
||||||
uint8_t force_flush );
|
int force_flush );
|
||||||
static inline int mbedtls_ssl_write_handshake_msg( mbedtls_ssl_context *ssl )
|
static inline int mbedtls_ssl_write_handshake_msg( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
return( mbedtls_ssl_write_handshake_msg_ext( ssl, 1 /* update checksum */, 1 /* force flush */ ) );
|
return( mbedtls_ssl_write_handshake_msg_ext( ssl, 1 /* update checksum */, 1 /* force flush */ ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush );
|
int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, int force_flush );
|
||||||
int mbedtls_ssl_flush_output( mbedtls_ssl_context *ssl );
|
int mbedtls_ssl_flush_output( mbedtls_ssl_context *ssl );
|
||||||
|
|
||||||
int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl );
|
int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl );
|
||||||
|
@ -2157,7 +2157,7 @@ int mbedtls_ssl_flight_transmit( mbedtls_ssl_context *ssl )
|
|||||||
( cur->type == MBEDTLS_SSL_MSG_HANDSHAKE &&
|
( cur->type == MBEDTLS_SSL_MSG_HANDSHAKE &&
|
||||||
cur->p[0] == MBEDTLS_SSL_HS_FINISHED );
|
cur->p[0] == MBEDTLS_SSL_HS_FINISHED );
|
||||||
|
|
||||||
uint8_t const force_flush = ssl->disable_datagram_packing == 1 ?
|
int const force_flush = ssl->disable_datagram_packing == 1 ?
|
||||||
SSL_FORCE_FLUSH : SSL_DONT_FORCE_FLUSH;
|
SSL_FORCE_FLUSH : SSL_DONT_FORCE_FLUSH;
|
||||||
|
|
||||||
/* Swap epochs before sending Finished: we can't do it after
|
/* Swap epochs before sending Finished: we can't do it after
|
||||||
@ -2369,7 +2369,7 @@ void mbedtls_ssl_send_flight_completed( mbedtls_ssl_context *ssl )
|
|||||||
*/
|
*/
|
||||||
int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl,
|
int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl,
|
||||||
int update_checksum,
|
int update_checksum,
|
||||||
uint8_t force_flush )
|
int force_flush )
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
const size_t hs_len = ssl->out_msglen - 4;
|
const size_t hs_len = ssl->out_msglen - 4;
|
||||||
@ -2520,11 +2520,11 @@ int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl,
|
|||||||
* - ssl->out_msglen: length of the record content (excl headers)
|
* - ssl->out_msglen: length of the record content (excl headers)
|
||||||
* - ssl->out_msg: record content
|
* - ssl->out_msg: record content
|
||||||
*/
|
*/
|
||||||
int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
|
int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, int force_flush )
|
||||||
{
|
{
|
||||||
int ret, done = 0;
|
int ret, done = 0;
|
||||||
size_t len = ssl->out_msglen;
|
size_t len = ssl->out_msglen;
|
||||||
uint8_t flush = force_flush;
|
int flush = force_flush;
|
||||||
|
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> write record" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> write record" ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user