mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
tls13: srv: Refine early data status
The main purpose is to know from the status if early data can be received of not and why. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -1098,6 +1098,16 @@ static int ssl_handshake_init(mbedtls_ssl_context *ssl)
|
||||
return MBEDTLS_ERR_SSL_ALLOC_FAILED;
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
#if defined(MBEDTLS_SSL_SRV_C)
|
||||
MBEDTLS_STATIC_ASSERT(MBEDTLS_SSL_EARLY_DATA_STATUS_UNKNOWN == 0,
|
||||
"MBEDTLS_SSL_EARLY_DATA_STATUS_UNKNOWN not equal to 0");
|
||||
#endif
|
||||
MBEDTLS_STATIC_ASSERT(MBEDTLS_SSL_EARLY_DATA_STATUS_NOT_SENT == 0,
|
||||
"MBEDTLS_SSL_EARLY_DATA_STATUS_NOT_SENT not equal to 0");
|
||||
ssl->early_data_status = 0;
|
||||
#endif
|
||||
|
||||
/* Initialize structures */
|
||||
mbedtls_ssl_session_init(ssl->session_negotiate);
|
||||
ssl_handshake_params_init(ssl->handshake);
|
||||
|
Reference in New Issue
Block a user