Home
last modified time | relevance | path

Searched refs:alpn_len (Results 1 – 3 of 3) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_context_info.c890 uint8_t alpn_len; in print_deserialized_ssl_context() local
893 alpn_len = *ssl++; in print_deserialized_ssl_context()
894 printf_dbg("ALPN length %u\n", (uint32_t) alpn_len); in print_deserialized_ssl_context()
897 CHECK_SSL_END(alpn_len); in print_deserialized_ssl_context()
898 if (alpn_len > 0) { in print_deserialized_ssl_context()
899 if (strlen((const char *) ssl) == alpn_len) { in print_deserialized_ssl_context()
905 ssl += alpn_len; in print_deserialized_ssl_context()
/openthread-latest/third_party/mbedtls/repo/library/
Dssl_tls.c3772 const size_t alpn_len = (session->ticket_alpn == NULL) ? in ssl_tls13_session_save() local
3801 + alpn_len; /* alpn */ in ssl_tls13_session_save()
3856 MBEDTLS_PUT_UINT16_BE(alpn_len, p, 0); in ssl_tls13_session_save()
3859 if (alpn_len > 0) { in ssl_tls13_session_save()
3861 memcpy(p, session->ticket_alpn, alpn_len); in ssl_tls13_session_save()
3862 p += alpn_len; in ssl_tls13_session_save()
3953 size_t alpn_len; in ssl_tls13_session_load() local
3959 alpn_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_session_load()
3962 if (end - p < (long int) alpn_len) { in ssl_tls13_session_load()
3966 if (alpn_len > 0) { in ssl_tls13_session_load()
[all …]
Dssl_tls13_server.c1856 size_t alpn_len; in ssl_tls13_check_early_data_requirements() local
1863 alpn_len = strlen(alpn); in ssl_tls13_check_early_data_requirements()
1868 alpn_len != strlen(ssl->session_negotiate->ticket_alpn) || in ssl_tls13_check_early_data_requirements()
1869 (memcmp(alpn, ssl->session_negotiate->ticket_alpn, alpn_len) != 0)) { in ssl_tls13_check_early_data_requirements()