mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Minor coding style improvement
Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
parent
e4603eece9
commit
94180e708f
@ -788,7 +788,6 @@ static int ssl_write_use_srtp_ext( mbedtls_ssl_context *ssl,
|
|||||||
profile_value ) );
|
profile_value ) );
|
||||||
MBEDTLS_PUT_UINT16_BE( profile_value, p, 0 );
|
MBEDTLS_PUT_UINT16_BE( profile_value, p, 0 );
|
||||||
p += 2;
|
p += 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1321,8 +1320,7 @@ static int ssl_write_client_hello( mbedtls_ssl_context *ssl )
|
|||||||
/* No need to check for space here, because the extension
|
/* No need to check for space here, because the extension
|
||||||
* writing functions already took care of that. */
|
* writing functions already took care of that. */
|
||||||
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
||||||
p += 2;
|
p += 2 + ext_len;
|
||||||
p += ext_len;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl->out_msglen = p - buf;
|
ssl->out_msglen = p - buf;
|
||||||
|
@ -2638,8 +2638,7 @@ static int ssl_write_server_hello( mbedtls_ssl_context *ssl )
|
|||||||
if( ext_len > 0 )
|
if( ext_len > 0 )
|
||||||
{
|
{
|
||||||
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
||||||
p += 2;
|
p += 2 + ext_len;
|
||||||
p += ext_len;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl->out_msglen = p - buf;
|
ssl->out_msglen = p - buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user