From 8436990b756ae3bc7b527e3238989cef9cbdb1d3 Mon Sep 17 00:00:00 2001 From: lns Date: Sun, 24 Sep 2023 21:15:50 +0200 Subject: Added HAProxy protocol. * new special subprotocol parameter: NDPI_PROTOCOL_CALL_EXCLUDED * fixed tests/do.sh.in failure print Signed-off-by: lns --- src/lib/protocols/tls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols/tls.c') diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index bedc3be59..4263edeaf 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1509,7 +1509,8 @@ static void ndpi_int_tls_add_connection(struct ndpi_detection_module_struct *ndp ndpi_set_detected_protocol(ndpi_struct, flow, protocol, protocol, NDPI_CONFIDENCE_DPI); - tlsInitExtraPacketProcessing(ndpi_struct, flow); + if(!flow->extra_packets_func) + tlsInitExtraPacketProcessing(ndpi_struct, flow); } /* **************************************** */ @@ -2543,7 +2544,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, } } else if(extension_id == 65037 /* ECH: latest drafts */) { #ifdef DEBUG_TLS - printf("Client TLS: ECH version 0x%x\n", extension_id; + printf("Client TLS: ECH version 0x%x\n", extension_id); #endif /* Beginning with draft-08, the version is the same as the code point for the "encrypted_client_hello" extension. */ -- cgit v1.2.3