From ca5ffc498873805c07a29c6d8af3e995963c055d Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Tue, 25 Oct 2022 17:06:29 +0200 Subject: TLS: improve handling of ALPN(s) (#1784) Tell "Advertised" ALPN list from "Negotiated" ALPN; the former is extracted from the CH, the latter from the SH. Add some entries to the known ALPN list. Fix printing of "TLS Supported Versions" field. --- src/include/ndpi_typedefs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 5b8a9c52b..33ccd93ec 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1404,7 +1404,7 @@ struct ndpi_flow_struct { } softether; struct { - char *server_names, *alpn, *tls_supported_versions, *issuerDN, *subjectDN; + char *server_names, *advertised_alpns, *negotiated_alpn, *tls_supported_versions, *issuerDN, *subjectDN; u_int32_t notBefore, notAfter; char ja3_client[33], ja3_server[33]; u_int16_t server_cipher; @@ -1578,11 +1578,11 @@ struct ndpi_flow_struct { #if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__) #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L -_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 200, - "Size of the struct member protocols increased to more than 200 bytes, " +_Static_assert(sizeof(((struct ndpi_flow_struct *)0)->protos) <= 208, + "Size of the struct member protocols increased to more than 208 bytes, " "please check if this change is necessary."); -_Static_assert(sizeof(struct ndpi_flow_struct) <= 920, - "Size of the flow struct increased to more than 920 bytes, " +_Static_assert(sizeof(struct ndpi_flow_struct) <= 928, + "Size of the flow struct increased to more than 928 bytes, " "please check if this change is necessary."); #endif #endif -- cgit v1.2.3