mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-03 19:20:18 +00:00
tls13:server:Add base framework for serverhello
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
38b8aa4f63
commit
5b64ae9bad
@ -727,6 +727,15 @@ cleanup:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* StateHanler: MBEDTLS_SSL_SERVER_HELLO
|
||||||
|
*/
|
||||||
|
static int ssl_tls13_write_server_hello( mbedtls_ssl_context *ssl )
|
||||||
|
{
|
||||||
|
((void) ssl);
|
||||||
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TLS 1.3 State Machine -- server side
|
* TLS 1.3 State Machine -- server side
|
||||||
*/
|
*/
|
||||||
@ -758,6 +767,10 @@ int mbedtls_ssl_tls13_handshake_server_step( mbedtls_ssl_context *ssl )
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MBEDTLS_SSL_SERVER_HELLO:
|
||||||
|
ret = ssl_tls13_write_server_hello( ssl );
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "invalid state %d", ssl->state ) );
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "invalid state %d", ssl->state ) );
|
||||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user