mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-25 00:02:42 +00:00
fix coding style issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
f86eb75c58
commit
ef2b98a246
@ -1507,13 +1507,14 @@ int mbedtls_ssl_tls13_generate_application_keys(
|
|||||||
/* randbytes is not used again */
|
/* randbytes is not used again */
|
||||||
mbedtls_platform_zeroize( ssl->handshake->randbytes,
|
mbedtls_platform_zeroize( ssl->handshake->randbytes,
|
||||||
sizeof( ssl->handshake->randbytes ) );
|
sizeof( ssl->handshake->randbytes ) );
|
||||||
|
|
||||||
mbedtls_platform_zeroize( transcript, sizeof( transcript ) );
|
mbedtls_platform_zeroize( transcript, sizeof( transcript ) );
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbedtls_ssl_tls13_compute_handshake_transform( mbedtls_ssl_context *ssl )
|
int mbedtls_ssl_tls13_compute_handshake_transform( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
mbedtls_ssl_key_set traffic_keys;
|
mbedtls_ssl_key_set traffic_keys;
|
||||||
mbedtls_ssl_transform *transform_handshake = NULL;
|
mbedtls_ssl_transform *transform_handshake = NULL;
|
||||||
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
||||||
@ -1543,7 +1544,8 @@ int mbedtls_ssl_tls13_compute_handshake_transform( mbedtls_ssl_context *ssl )
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = mbedtls_ssl_tls13_populate_transform( transform_handshake,
|
ret = mbedtls_ssl_tls13_populate_transform(
|
||||||
|
transform_handshake,
|
||||||
ssl->conf->endpoint,
|
ssl->conf->endpoint,
|
||||||
ssl->session_negotiate->ciphersuite,
|
ssl->session_negotiate->ciphersuite,
|
||||||
&traffic_keys,
|
&traffic_keys,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user