aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tls.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-01-07 19:58:43 +0100
committerGitHub <noreply@github.com>2025-01-07 19:58:43 +0100
commit47569042224bc277454ba138d1033d8b334e6be8 (patch)
treefb36f10122d259d5f2633d2a197e2e37108d5d0b /src/lib/protocols/tls.c
parentc34b692a4b33886525c147a94469745609f416ad (diff)
QUIC: remove extraction of user-agent (#2650)
In very old (G)QUIC versions by Google, the user agent was available on plain text. That is not true anymore, since about end of 2021. See: https://github.com/google/quiche/commit/f282c934f4731a9f4be93409c9f3e8687f0566a7
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r--src/lib/protocols/tls.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index 073e22dcd..a1184cf27 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -3163,30 +3163,6 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
if(s_offset+param_len > final_offset)
break;
- if(param_type==0x3129) {
-#ifdef DEBUG_TLS
- printf("UA [%.*s]\n", (int)param_len, &packet->payload[s_offset]);
-#endif
- http_process_user_agent(ndpi_struct, flow, &packet->payload[s_offset], param_len);
- break;
- }
- if(param_type == 0x01) {
- uint64_t max_idle_timeout;
-
- /* max_idle_timeout format changed across draft versions.
- Nowdays, we are interested only in latest draft, so check
- only for the RFC format */
- if(is_quic_ver_greater_than(quic_version, 27)) {
- if(param_len > 0 &&
- quic_len_buffer_still_required(packet->payload[s_offset]) <= (int)param_len) {
- quic_len(&packet->payload[s_offset], &max_idle_timeout);
- flow->protos.tls_quic.quic_idle_timeout_sec = max_idle_timeout / 1000;
-#ifdef DEBUG_TLS
- printf("Max Idle Timeout: %d\n", flow->protos.tls_quic.quic_idle_timeout_sec);
-#endif
- }
- }
- }
s_offset += param_len;
}
} else if(extension_id == 21) { /* Padding */