aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-07-29 22:36:27 +0200
committerLuca Deri <deri@ntop.org>2020-07-29 22:36:27 +0200
commita828ac01918575b4436828c1ba5154e1674dfc7f (patch)
tree406ec97a7b5694399da6a6e2d008d995fbf13e54 /src/lib/ndpi_main.c
parentc4b19fd6c5d7bd5649be4f15a974742d064eb89b (diff)
Tiny changes for TLS block lenght dissection
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 3ca766772..db84efa00 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -596,6 +596,10 @@ int ndpi_set_detection_preferences(struct ndpi_detection_module_struct *ndpi_str
ndpi_str->direction_detect_disable = (u_int8_t) value;
break;
+ case ndpi_pref_enable_tls_block_dissection:
+ ndpi_str->num_tls_blocks_to_follow = NDPI_MAX_NUM_TLS_APPL_BLOCKS;
+ break;
+
default:
return(-1);
}
@@ -6370,6 +6374,7 @@ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndp
case NDPI_PROTOCOL_TLS:
if((!flow->l4.tcp.tls.certificate_processed)
|| (flow->l4.tcp.tls.num_tls_blocks <= ndpi_str->num_tls_blocks_to_follow)) {
+ // printf("*** %u/%u\n", flow->l4.tcp.tls.num_tls_blocks, ndpi_str->num_tls_blocks_to_follow);
return(1); /* TODO: add check for TLS 1.3 */
}
break;