mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-31 00:32:50 +00:00
fix test fail when WANT_READ/WRITE returned
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
66537f40b6
commit
1443537da3
@ -4910,12 +4910,16 @@ void move_handshake_to_state(int endpoint_type, int state, int need_pass)
|
|||||||
state );
|
state );
|
||||||
if( need_pass )
|
if( need_pass )
|
||||||
{
|
{
|
||||||
TEST_ASSERT( ret == 0 );
|
TEST_ASSERT( ret == 0 ||
|
||||||
|
ret == MBEDTLS_ERR_SSL_WANT_READ ||
|
||||||
|
ret == MBEDTLS_ERR_SSL_WANT_WRITE );
|
||||||
TEST_ASSERT( base_ep.ssl.state == state );
|
TEST_ASSERT( base_ep.ssl.state == state );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TEST_ASSERT( ret != 0 );
|
TEST_ASSERT( ret != 0 &&
|
||||||
|
ret != MBEDTLS_ERR_SSL_WANT_READ &&
|
||||||
|
ret != MBEDTLS_ERR_SSL_WANT_WRITE );
|
||||||
TEST_ASSERT( base_ep.ssl.state != state );
|
TEST_ASSERT( base_ep.ssl.state != state );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user