mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-22 18:15:14 +00:00
Minor coding style improvement
Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
parent
efb8fae492
commit
24647c5cd2
|
@ -820,7 +820,6 @@ static int ssl_write_use_srtp_ext( mbedtls_ssl_context *ssl,
|
|||
profile_value ) );
|
||||
MBEDTLS_PUT_UINT16_BE( profile_value, p, 0 );
|
||||
p += 2;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1415,8 +1414,7 @@ static int ssl_write_client_hello( mbedtls_ssl_context *ssl )
|
|||
/* No need to check for space here, because the extension
|
||||
* writing functions already took care of that. */
|
||||
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
||||
p += 2;
|
||||
p += ext_len;
|
||||
p += 2 + ext_len;
|
||||
}
|
||||
|
||||
ssl->out_msglen = p - buf;
|
||||
|
|
|
@ -3014,8 +3014,7 @@ static int ssl_write_server_hello( mbedtls_ssl_context *ssl )
|
|||
if( ext_len > 0 )
|
||||
{
|
||||
MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 );
|
||||
p += 2;
|
||||
p += ext_len;
|
||||
p += 2 + ext_len;
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_SSL3)
|
||||
|
|
Loading…
Reference in a new issue