mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 12:32:48 +00:00
Revert "tls13: early_data: cli: remove nst_ prefix"
This reverts commit 3781ab40fb24c06ca7401bcecc3e1aa31d669a55. Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
3781ab40fb
commit
0790041dc6
@ -2658,16 +2658,10 @@ static int ssl_tls13_handshake_wrapup(mbedtls_ssl_context *ssl)
|
||||
* } EarlyDataIndication;
|
||||
*/
|
||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||
static int ssl_tls13_parse_early_data_ext(mbedtls_ssl_context *ssl,
|
||||
const unsigned char *buf,
|
||||
const unsigned char *end)
|
||||
static int ssl_tls13_parse_nst_early_data_ext(mbedtls_ssl_context *ssl,
|
||||
const unsigned char *buf,
|
||||
const unsigned char *end)
|
||||
{
|
||||
/* Make sure early data indication extension is received from
|
||||
* NewSessionTicket. */
|
||||
if (!mbedtls_ssl_is_handshake_over(ssl)) {
|
||||
return MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER;
|
||||
}
|
||||
|
||||
mbedtls_ssl_session *session = ssl->session;
|
||||
|
||||
MBEDTLS_SSL_CHK_BUF_READ_PTR(buf, end, 4);
|
||||
@ -2716,11 +2710,11 @@ static int ssl_tls13_parse_new_session_ticket_exts(mbedtls_ssl_context *ssl,
|
||||
switch (extension_type) {
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
case MBEDTLS_TLS_EXT_EARLY_DATA:
|
||||
ret = ssl_tls13_parse_early_data_ext(
|
||||
ret = ssl_tls13_parse_nst_early_data_ext(
|
||||
ssl, p, p + extension_data_len);
|
||||
if (ret != 0) {
|
||||
MBEDTLS_SSL_DEBUG_RET(
|
||||
1, "ssl_tls13_parse_early_data_ext", ret);
|
||||
1, "ssl_tls13_parse_nst_early_data_ext", ret);
|
||||
}
|
||||
break;
|
||||
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
||||
|
Loading…
x
Reference in New Issue
Block a user