mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 23:05:41 +01:00
Introduce FI protection to ssl client handshake step handling
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
ad3c4ffb56
commit
25997053a8
@ -4261,10 +4261,12 @@ int mbedtls_ssl_handshake_client_step( mbedtls_ssl_context *ssl )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ret = MBEDTLS_ERR_PLATFORM_FAULT_DETECTED;
|
||||||
switch( ssl->state )
|
switch( ssl->state )
|
||||||
{
|
{
|
||||||
case MBEDTLS_SSL_HELLO_REQUEST:
|
case MBEDTLS_SSL_HELLO_REQUEST:
|
||||||
ssl->state = MBEDTLS_SSL_CLIENT_HELLO;
|
ssl->state = MBEDTLS_SSL_CLIENT_HELLO;
|
||||||
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -4381,6 +4383,7 @@ int mbedtls_ssl_handshake_client_step( mbedtls_ssl_context *ssl )
|
|||||||
case MBEDTLS_SSL_FLUSH_BUFFERS:
|
case MBEDTLS_SSL_FLUSH_BUFFERS:
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 2, ( "handshake: done" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 2, ( "handshake: done" ) );
|
||||||
ssl->state = MBEDTLS_SSL_HANDSHAKE_WRAPUP;
|
ssl->state = MBEDTLS_SSL_HANDSHAKE_WRAPUP;
|
||||||
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MBEDTLS_SSL_HANDSHAKE_WRAPUP:
|
case MBEDTLS_SSL_HANDSHAKE_WRAPUP:
|
||||||
|
Loading…
Reference in New Issue
Block a user