diff options
author | Luca Deri <deri@ntop.org> | 2021-03-09 23:38:29 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-03-09 23:38:29 +0100 |
commit | f6ad16d8f8567c990431a6cd38cf5357d7a60723 (patch) | |
tree | bd2fd550ac2dceca37f08d62dee108fe337c8b5e /example/reader_util.c | |
parent | 8074bc82013c9b14cc59a32fcc7c75a6b56ff8dd (diff) |
Added experiemntal JA3+ implementation that can be used with -z i ndpiReader
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 257b5658f..95c6b04ad 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -402,8 +402,10 @@ static int parse_debug_proto(struct ndpi_detection_module_struct *ndpi_mod, char /* ***************************************************** */ extern char *_debug_protocols; +extern u_int8_t enable_ja3_plus; static int _debug_protocols_ok = 0; + struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * prefs, pcap_t * pcap_handle) { struct ndpi_detection_module_struct * module; @@ -413,7 +415,7 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref set_ndpi_flow_malloc(NULL), set_ndpi_flow_free(NULL); /* TODO: just needed here to init ndpi ndpi_malloc wrapper */ - module = ndpi_init_detection_module(ndpi_no_prefs); + module = ndpi_init_detection_module(enable_ja3_plus ? ndpi_enable_ja3_plus : ndpi_no_prefs); if(module == NULL) { LOG(NDPI_LOG_ERROR, "global structure initialization failed\n"); |