mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Replace instances of byte reading macros with PUT
Instances of a group of byte reading macros which are equivilant to MBEDTLS_PUT_UINTx_yz Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
@ -165,10 +165,7 @@ int mbedtls_ssl_cookie_write( void *p_ctx,
|
||||
t = ctx->serial++;
|
||||
#endif
|
||||
|
||||
(*p)[0] = MBEDTLS_BYTE_3( t );
|
||||
(*p)[1] = MBEDTLS_BYTE_2( t );
|
||||
(*p)[2] = MBEDTLS_BYTE_1( t );
|
||||
(*p)[3] = MBEDTLS_BYTE_0( t );
|
||||
MBEDTLS_PUT_UINT32_BE(t, *p, 0);
|
||||
*p += 4;
|
||||
|
||||
#if defined(MBEDTLS_THREADING_C)
|
||||
|
Reference in New Issue
Block a user