Lines Matching refs:p
51 unsigned char *p = buf; in ssl_tls13_write_supported_versions_ext() local
65 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 5 + versions_len); in ssl_tls13_write_supported_versions_ext()
67 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_SUPPORTED_VERSIONS, p, 0); in ssl_tls13_write_supported_versions_ext()
68 MBEDTLS_PUT_UINT16_BE(versions_len + 1, p, 2); in ssl_tls13_write_supported_versions_ext()
69 p += 4; in ssl_tls13_write_supported_versions_ext()
72 *p++ = versions_len; in ssl_tls13_write_supported_versions_ext()
78 mbedtls_ssl_write_version(p, MBEDTLS_SSL_TRANSPORT_STREAM, in ssl_tls13_write_supported_versions_ext()
84 mbedtls_ssl_write_version(p + 2, MBEDTLS_SSL_TRANSPORT_STREAM, in ssl_tls13_write_supported_versions_ext()
130 const unsigned char *p = buf; in ssl_tls13_parse_alpn_ext() local
150 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_alpn_ext()
151 protocol_name_list_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_alpn_ext()
152 p += 2; in ssl_tls13_parse_alpn_ext()
154 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, protocol_name_list_len); in ssl_tls13_parse_alpn_ext()
155 protocol_name_list_end = p + protocol_name_list_len; in ssl_tls13_parse_alpn_ext()
157 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, protocol_name_list_end, 1); in ssl_tls13_parse_alpn_ext()
158 protocol_name_len = *p++; in ssl_tls13_parse_alpn_ext()
161 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, protocol_name_list_end, protocol_name_len); in ssl_tls13_parse_alpn_ext()
164 memcmp(p, *alpn, protocol_name_len) == 0) { in ssl_tls13_parse_alpn_ext()
269 unsigned char *p = buf; in ssl_tls13_write_key_share_ext() local
282 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 6); in ssl_tls13_write_key_share_ext()
283 p += 6; in ssl_tls13_write_key_share_ext()
303 client_shares = p; in ssl_tls13_write_key_share_ext()
308 unsigned char *group = p; in ssl_tls13_write_key_share_ext()
316 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 4); in ssl_tls13_write_key_share_ext()
317 p += 4; in ssl_tls13_write_key_share_ext()
319 ssl, group_id, p, end, &key_exchange_len); in ssl_tls13_write_key_share_ext()
320 p += key_exchange_len; in ssl_tls13_write_key_share_ext()
339 client_shares_len = p - client_shares; in ssl_tls13_write_key_share_ext()
355 *out_len = p - buf; in ssl_tls13_write_key_share_ext()
382 const unsigned char *p = buf; in ssl_tls13_parse_hrr_key_share_ext() local
391 MBEDTLS_SSL_DEBUG_BUF(3, "key_share extension", p, end - buf); in ssl_tls13_parse_hrr_key_share_ext()
394 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_hrr_key_share_ext()
395 selected_group = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_hrr_key_share_ext()
471 const unsigned char *p = buf; in ssl_tls13_parse_key_share_ext() local
478 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_key_share_ext()
479 group = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_key_share_ext()
480 p += 2; in ssl_tls13_parse_key_share_ext()
498 ret = mbedtls_ssl_tls13_read_public_xxdhe_share(ssl, p, end - p); in ssl_tls13_parse_key_share_ext()
535 const unsigned char *p = buf; in ssl_tls13_parse_cookie_ext() local
539 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_cookie_ext()
540 cookie_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_cookie_ext()
541 p += 2; in ssl_tls13_parse_cookie_ext()
543 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, cookie_len); in ssl_tls13_parse_cookie_ext()
544 MBEDTLS_SSL_DEBUG_BUF(3, "cookie extension", p, cookie_len); in ssl_tls13_parse_cookie_ext()
556 memcpy(handshake->cookie, p, cookie_len); in ssl_tls13_parse_cookie_ext()
568 unsigned char *p = buf; in ssl_tls13_write_cookie_ext() local
581 MBEDTLS_SSL_CHK_BUF_PTR(p, end, handshake->cookie_len + 6); in ssl_tls13_write_cookie_ext()
585 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_COOKIE, p, 0); in ssl_tls13_write_cookie_ext()
586 MBEDTLS_PUT_UINT16_BE(handshake->cookie_len + 2, p, 2); in ssl_tls13_write_cookie_ext()
587 MBEDTLS_PUT_UINT16_BE(handshake->cookie_len, p, 4); in ssl_tls13_write_cookie_ext()
588 p += 6; in ssl_tls13_write_cookie_ext()
591 memcpy(p, handshake->cookie, handshake->cookie_len); in ssl_tls13_write_cookie_ext()
616 unsigned char *p = buf; in ssl_tls13_write_psk_key_exchange_modes_ext() local
633 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 7); in ssl_tls13_write_psk_key_exchange_modes_ext()
637 MBEDTLS_PUT_UINT16_BE(MBEDTLS_TLS_EXT_PSK_KEY_EXCHANGE_MODES, p, 0); in ssl_tls13_write_psk_key_exchange_modes_ext()
642 p += 5; in ssl_tls13_write_psk_key_exchange_modes_ext()
645 *p++ = MBEDTLS_SSL_TLS1_3_PSK_MODE_ECDHE; in ssl_tls13_write_psk_key_exchange_modes_ext()
652 *p++ = MBEDTLS_SSL_TLS1_3_PSK_MODE_PURE; in ssl_tls13_write_psk_key_exchange_modes_ext()
662 *out_len = p - buf; in ssl_tls13_write_psk_key_exchange_modes_ext()
901 unsigned char *p = buf; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() local
926 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 6); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
927 p += 6; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
943 ret = ssl_tls13_write_identity(ssl, p, end, in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
948 ret = ssl_tls13_write_identity(ssl, p, end, identity, identity_len, in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
955 p += output_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
963 ret = ssl_tls13_write_identity(ssl, p, end, identity, identity_len, 0, in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
969 p += output_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
980 MBEDTLS_SSL_CHK_BUF_PTR(p, end, l_binders_len); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
988 MBEDTLS_PUT_UINT16_BE(p - buf - 4 + l_binders_len, buf, 2); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
989 MBEDTLS_PUT_UINT16_BE(p - buf - 6, buf, 4); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
991 *out_len = (p - buf) + l_binders_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
994 MBEDTLS_SSL_DEBUG_BUF(3, "pre_shared_key identities", buf, p - buf); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
1003 unsigned char *p = buf; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext() local
1012 MBEDTLS_SSL_CHK_BUF_PTR(p, end, 2); in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1013 p += 2; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1018 ret = ssl_tls13_write_binder(ssl, p, end, in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1025 p += output_len; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1031 ret = ssl_tls13_write_binder(ssl, p, end, in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1038 p += output_len; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1046 MBEDTLS_PUT_UINT16_BE(p - buf - 2, buf, 0); in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1048 MBEDTLS_SSL_DEBUG_BUF(3, "pre_shared_key binders", buf, p - buf); in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1140 unsigned char *p = buf; in mbedtls_ssl_tls13_write_client_hello_exts() local
1154 ret = ssl_tls13_write_supported_versions_ext(ssl, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1158 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1163 ret = ssl_tls13_write_cookie_ext(ssl, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1167 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1171 ssl, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1175 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1180 ret = ssl_tls13_write_key_share_ext(ssl, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1184 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1202 ssl, 0, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1206 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1225 ret = ssl_tls13_write_psk_key_exchange_modes_ext(ssl, p, end, &ext_len); in mbedtls_ssl_tls13_write_client_hello_exts()
1229 p += ext_len; in mbedtls_ssl_tls13_write_client_hello_exts()
1232 *out_len = p - buf; in mbedtls_ssl_tls13_write_client_hello_exts()
1339 const unsigned char *p = buf; in ssl_tls13_is_supported_versions_ext_present() local
1351 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, MBEDTLS_SERVER_HELLO_RANDOM_LEN + 3); in ssl_tls13_is_supported_versions_ext_present()
1352 p += MBEDTLS_SERVER_HELLO_RANDOM_LEN + 2; in ssl_tls13_is_supported_versions_ext_present()
1353 legacy_session_id_echo_len = *p; in ssl_tls13_is_supported_versions_ext_present()
1361 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, legacy_session_id_echo_len + 4); in ssl_tls13_is_supported_versions_ext_present()
1362 p += legacy_session_id_echo_len + 4; in ssl_tls13_is_supported_versions_ext_present()
1365 ssl, p, end, in ssl_tls13_is_supported_versions_ext_present()
1549 const unsigned char *p = *buf; in ssl_tls13_check_server_hello_session_id_echo() local
1552 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 1); in ssl_tls13_check_server_hello_session_id_echo()
1553 legacy_session_id_echo_len = *p++; in ssl_tls13_check_server_hello_session_id_echo()
1555 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, legacy_session_id_echo_len); in ssl_tls13_check_server_hello_session_id_echo()
1559 memcmp(ssl->session_negotiate->id, p, legacy_session_id_echo_len) != 0) { in ssl_tls13_check_server_hello_session_id_echo()
1563 MBEDTLS_SSL_DEBUG_BUF(3, "Received Session ID", p, in ssl_tls13_check_server_hello_session_id_echo()
1572 p += legacy_session_id_echo_len; in ssl_tls13_check_server_hello_session_id_echo()
1573 *buf = p; in ssl_tls13_check_server_hello_session_id_echo()
1598 const unsigned char *p = buf; in ssl_tls13_parse_server_hello() local
1618 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, MBEDTLS_SERVER_HELLO_RANDOM_LEN + 6); in ssl_tls13_parse_server_hello()
1620 MBEDTLS_SSL_DEBUG_BUF(4, "server hello", p, end - p); in ssl_tls13_parse_server_hello()
1621 MBEDTLS_SSL_DEBUG_BUF(3, "server hello, version", p, 2); in ssl_tls13_parse_server_hello()
1629 if (mbedtls_ssl_read_version(p, ssl->conf->transport) != in ssl_tls13_parse_server_hello()
1637 p += 2; in ssl_tls13_parse_server_hello()
1646 memcpy(&handshake->randbytes[MBEDTLS_CLIENT_HELLO_RANDOM_LEN], p, in ssl_tls13_parse_server_hello()
1649 p, MBEDTLS_SERVER_HELLO_RANDOM_LEN); in ssl_tls13_parse_server_hello()
1651 p += MBEDTLS_SERVER_HELLO_RANDOM_LEN; in ssl_tls13_parse_server_hello()
1657 if (ssl_tls13_check_server_hello_session_id_echo(ssl, &p, end) != 0) { in ssl_tls13_parse_server_hello()
1668 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_server_hello()
1669 cipher_suite = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_server_hello()
1670 p += 2; in ssl_tls13_parse_server_hello()
1715 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 1); in ssl_tls13_parse_server_hello()
1716 if (p[0] != MBEDTLS_SSL_COMPRESS_NULL) { in ssl_tls13_parse_server_hello()
1721 p++; in ssl_tls13_parse_server_hello()
1731 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_server_hello()
1732 extensions_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_server_hello()
1733 p += 2; in ssl_tls13_parse_server_hello()
1736 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extensions_len); in ssl_tls13_parse_server_hello()
1737 extensions_end = p + extensions_len; in ssl_tls13_parse_server_hello()
1739 MBEDTLS_SSL_DEBUG_BUF(3, "server hello extensions", p, extensions_len); in ssl_tls13_parse_server_hello()
1746 while (p < extensions_end) { in ssl_tls13_parse_server_hello()
1751 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, 4); in ssl_tls13_parse_server_hello()
1752 extension_type = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_server_hello()
1753 extension_data_len = MBEDTLS_GET_UINT16_BE(p, 2); in ssl_tls13_parse_server_hello()
1754 p += 4; in ssl_tls13_parse_server_hello()
1756 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, extension_data_len); in ssl_tls13_parse_server_hello()
1757 extension_data_end = p + extension_data_len; in ssl_tls13_parse_server_hello()
1769 p, extension_data_end); in ssl_tls13_parse_server_hello()
1780 p, in ssl_tls13_parse_server_hello()
1792 ssl, p, extension_data_end)) != 0) { in ssl_tls13_parse_server_hello()
1809 p, extension_data_end); in ssl_tls13_parse_server_hello()
1812 p, extension_data_end); in ssl_tls13_parse_server_hello()
1827 p += extension_data_len; in ssl_tls13_parse_server_hello()
2075 const unsigned char *p = buf; in ssl_tls13_parse_encrypted_extensions() local
2079 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_encrypted_extensions()
2080 extensions_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_encrypted_extensions()
2081 p += 2; in ssl_tls13_parse_encrypted_extensions()
2083 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extensions_len); in ssl_tls13_parse_encrypted_extensions()
2084 extensions_end = p + extensions_len; in ssl_tls13_parse_encrypted_extensions()
2086 MBEDTLS_SSL_DEBUG_BUF(3, "encrypted extensions", p, extensions_len); in ssl_tls13_parse_encrypted_extensions()
2090 while (p < extensions_end) { in ssl_tls13_parse_encrypted_extensions()
2100 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, 4); in ssl_tls13_parse_encrypted_extensions()
2101 extension_type = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_encrypted_extensions()
2102 extension_data_len = MBEDTLS_GET_UINT16_BE(p, 2); in ssl_tls13_parse_encrypted_extensions()
2103 p += 4; in ssl_tls13_parse_encrypted_extensions()
2105 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, extension_data_len); in ssl_tls13_parse_encrypted_extensions()
2120 ssl, p, (size_t) extension_data_len)) != 0) { in ssl_tls13_parse_encrypted_extensions()
2145 ssl, p, p + extension_data_len); in ssl_tls13_parse_encrypted_extensions()
2161 p += extension_data_len; in ssl_tls13_parse_encrypted_extensions()
2179 if (p != end) { in ssl_tls13_parse_encrypted_extensions()
2403 const unsigned char *p = buf; in ssl_tls13_parse_certificate_request() local
2413 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 1); in ssl_tls13_parse_certificate_request()
2414 certificate_request_context_len = (size_t) p[0]; in ssl_tls13_parse_certificate_request()
2415 p += 1; in ssl_tls13_parse_certificate_request()
2418 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, certificate_request_context_len); in ssl_tls13_parse_certificate_request()
2420 p, certificate_request_context_len); in ssl_tls13_parse_certificate_request()
2428 memcpy(handshake->certificate_request_context, p, in ssl_tls13_parse_certificate_request()
2430 p += certificate_request_context_len; in ssl_tls13_parse_certificate_request()
2437 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_certificate_request()
2438 extensions_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_certificate_request()
2439 p += 2; in ssl_tls13_parse_certificate_request()
2441 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extensions_len); in ssl_tls13_parse_certificate_request()
2442 extensions_end = p + extensions_len; in ssl_tls13_parse_certificate_request()
2446 while (p < extensions_end) { in ssl_tls13_parse_certificate_request()
2450 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, 4); in ssl_tls13_parse_certificate_request()
2451 extension_type = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_certificate_request()
2452 extension_data_len = MBEDTLS_GET_UINT16_BE(p, 2); in ssl_tls13_parse_certificate_request()
2453 p += 4; in ssl_tls13_parse_certificate_request()
2455 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, extensions_end, extension_data_len); in ssl_tls13_parse_certificate_request()
2468 ret = mbedtls_ssl_parse_sig_alg_ext(ssl, p, in ssl_tls13_parse_certificate_request()
2469 p + extension_data_len); in ssl_tls13_parse_certificate_request()
2483 p += extension_data_len; in ssl_tls13_parse_certificate_request()
2490 if (p != end) { in ssl_tls13_parse_certificate_request()
2773 const unsigned char *p = buf; in ssl_tls13_parse_new_session_ticket_exts() local
2778 while (p < end) { in ssl_tls13_parse_new_session_ticket_exts()
2783 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 4); in ssl_tls13_parse_new_session_ticket_exts()
2784 extension_type = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_new_session_ticket_exts()
2785 extension_data_len = MBEDTLS_GET_UINT16_BE(p, 2); in ssl_tls13_parse_new_session_ticket_exts()
2786 p += 4; in ssl_tls13_parse_new_session_ticket_exts()
2788 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extension_data_len); in ssl_tls13_parse_new_session_ticket_exts()
2801 ssl, p, p + extension_data_len); in ssl_tls13_parse_new_session_ticket_exts()
2817 p += extension_data_len; in ssl_tls13_parse_new_session_ticket_exts()
2846 unsigned char *p = buf; in ssl_tls13_parse_new_session_ticket() local
2859 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 9); in ssl_tls13_parse_new_session_ticket()
2861 session->ticket_lifetime = MBEDTLS_GET_UINT32_BE(p, 0); in ssl_tls13_parse_new_session_ticket()
2871 session->ticket_age_add = MBEDTLS_GET_UINT32_BE(p, 4); in ssl_tls13_parse_new_session_ticket()
2876 *ticket_nonce_len = p[8]; in ssl_tls13_parse_new_session_ticket()
2877 p += 9; in ssl_tls13_parse_new_session_ticket()
2879 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, *ticket_nonce_len); in ssl_tls13_parse_new_session_ticket()
2880 *ticket_nonce = p; in ssl_tls13_parse_new_session_ticket()
2882 p += *ticket_nonce_len; in ssl_tls13_parse_new_session_ticket()
2885 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_new_session_ticket()
2886 ticket_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_new_session_ticket()
2887 p += 2; in ssl_tls13_parse_new_session_ticket()
2888 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, ticket_len); in ssl_tls13_parse_new_session_ticket()
2889 MBEDTLS_SSL_DEBUG_BUF(3, "received ticket", p, ticket_len); in ssl_tls13_parse_new_session_ticket()
2902 memcpy(ticket, p, ticket_len); in ssl_tls13_parse_new_session_ticket()
2903 p += ticket_len; in ssl_tls13_parse_new_session_ticket()
2911 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2); in ssl_tls13_parse_new_session_ticket()
2912 extensions_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_new_session_ticket()
2913 p += 2; in ssl_tls13_parse_new_session_ticket()
2914 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, extensions_len); in ssl_tls13_parse_new_session_ticket()
2916 MBEDTLS_SSL_DEBUG_BUF(3, "ticket extension", p, extensions_len); in ssl_tls13_parse_new_session_ticket()
2918 ret = ssl_tls13_parse_new_session_ticket_exts(ssl, p, p + extensions_len); in ssl_tls13_parse_new_session_ticket()