diff options
author | Luca Deri <deri@ntop.org> | 2020-07-29 22:36:27 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-07-29 22:36:27 +0200 |
commit | a828ac01918575b4436828c1ba5154e1674dfc7f (patch) | |
tree | 406ec97a7b5694399da6a6e2d008d995fbf13e54 /src/include | |
parent | c4b19fd6c5d7bd5649be4f15a974742d064eb89b (diff) |
Tiny changes for TLS block lenght dissection
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_define.h.in | 2 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in index 9c1c0c169..990f84bf4 100644 --- a/src/include/ndpi_define.h.in +++ b/src/include/ndpi_define.h.in @@ -353,7 +353,7 @@ #define NDPI_OPTIMAL_HLL_NUM_BUCKETS 16 -#define NDPI_MAX_NUM_DISSECTED_TLS_BLOCKS 32 +#define NDPI_MAX_NUM_TLS_APPL_BLOCKS 8 #ifdef __APPLE__ diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 58d7b4885..55fa370c9 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -670,7 +670,7 @@ struct ndpi_flow_tcp_struct { u_int8_t hello_processed:1, certificate_processed:1, subprotocol_detected:1, fingerprint_set:1, _pad:4; u_int8_t sha1_certificate_fingerprint[20], num_tls_blocks; - u_int16_t tls_blocks_len[NDPI_MAX_NUM_DISSECTED_TLS_BLOCKS]; + int16_t tls_application_blocks_len[NDPI_MAX_NUM_TLS_APPL_BLOCKS]; /* + = src->dst, - = dst->src */ } tls; /* NDPI_PROTOCOL_POSTGRES */ @@ -947,6 +947,7 @@ typedef enum { typedef enum { ndpi_pref_direction_detect_disable = 0, + ndpi_pref_enable_tls_block_dissection } ndpi_detection_preference; /* ntop extensions */ |