aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraouinizied <aouinizied@gmail.com>2020-08-01 01:27:29 +0200
committeraouinizied <aouinizied@gmail.com>2020-08-01 01:27:29 +0200
commit57e28e03eec7bcbd88523b22efb843a3743c3e64 (patch)
treedf5315a0317995c255e4d229bdea2d7f28e2b2b2
parent2ae4c6675d09ddab333f8217774c3df363205113 (diff)
Sync TLS definitions.
-rw-r--r--python/ndpi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/ndpi.py b/python/ndpi.py
index d2b5ab4a1..227db5bb5 100644
--- a/python/ndpi.py
+++ b/python/ndpi.py
@@ -266,7 +266,7 @@ struct tinc_cache_entry {
cc_ndpi_stuctures = """
-#define NDPI_MAX_NUM_DISSECTED_TLS_BLOCKS 32
+#define NDPI_MAX_NUM_TLS_APPL_BLOCKS 8
typedef enum {
NDPI_LOG_ERROR,
@@ -583,7 +583,7 @@ struct ndpi_flow_tcp_struct {
/* NDPI_PROTOCOL_TLS */
uint8_t hello_processed:1, certificate_processed:1, subprotocol_detected:1, fingerprint_set:1, _pad:4;
uint8_t sha1_certificate_fingerprint[20], num_tls_blocks;
- uint16_t tls_blocks_len[NDPI_MAX_NUM_DISSECTED_TLS_BLOCKS];
+ int16_t tls_application_blocks_len[NDPI_MAX_NUM_TLS_APPL_BLOCKS];
} tls;
/* NDPI_PROTOCOL_POSTGRES */
@@ -852,6 +852,7 @@ typedef enum {
typedef enum {
ndpi_pref_direction_detect_disable = 0,
+ ndpi_pref_enable_tls_block_dissection
} ndpi_detection_preference;
/* ntop extensions */