mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-12 01:42:21 +08:00
tls13: early_data: cli: rename early_data parser in nst
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
0790041dc6
commit
b3e207d762
@ -2658,9 +2658,10 @@ static int ssl_tls13_handshake_wrapup(mbedtls_ssl_context *ssl)
|
|||||||
* } EarlyDataIndication;
|
* } EarlyDataIndication;
|
||||||
*/
|
*/
|
||||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_parse_nst_early_data_ext(mbedtls_ssl_context *ssl,
|
static int ssl_tls13_parse_new_session_ticket_early_data_ext(
|
||||||
const unsigned char *buf,
|
mbedtls_ssl_context *ssl,
|
||||||
const unsigned char *end)
|
const unsigned char *buf,
|
||||||
|
const unsigned char *end)
|
||||||
{
|
{
|
||||||
mbedtls_ssl_session *session = ssl->session;
|
mbedtls_ssl_session *session = ssl->session;
|
||||||
|
|
||||||
@ -2710,11 +2711,12 @@ static int ssl_tls13_parse_new_session_ticket_exts(mbedtls_ssl_context *ssl,
|
|||||||
switch (extension_type) {
|
switch (extension_type) {
|
||||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||||
case MBEDTLS_TLS_EXT_EARLY_DATA:
|
case MBEDTLS_TLS_EXT_EARLY_DATA:
|
||||||
ret = ssl_tls13_parse_nst_early_data_ext(
|
ret = ssl_tls13_parse_new_session_ticket_early_data_ext(
|
||||||
ssl, p, p + extension_data_len);
|
ssl, p, p + extension_data_len);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
MBEDTLS_SSL_DEBUG_RET(
|
MBEDTLS_SSL_DEBUG_RET(
|
||||||
1, "ssl_tls13_parse_nst_early_data_ext", ret);
|
1, "ssl_tls13_parse_new_session_ticket_early_data_ext",
|
||||||
|
ret);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user