Minor coding style improvement
Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
parent
e4603eece9
commit
94180e708f
2 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue