diff options
author | Luca Deri <deri@ntop.org> | 2020-07-22 15:58:46 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-07-22 15:58:46 +0200 |
commit | 3cd1ec5c9a165c8c53e49568b2da820222252986 (patch) | |
tree | 741a39a121e6d6222a6c3847f4506bbe7edec625 /example/ndpiReader.c | |
parent | 36af97a14cec89af777b3b87ea2c18cc966b7fa4 (diff) |
Added changes for handlign SSSH cipher detection
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index b8695f5c2..4f1767846 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2513,7 +2513,12 @@ static void printFlowsStats() { ntohs(all_flows[i].flow->dst_port)); print_bin(out, NULL, &bins[i]); - printf("][score: %f]\n", ndpi_bin_similarity(¢roids[j], &bins[i], 0)); + printf("][score: %f]", ndpi_bin_similarity(¢roids[j], &bins[i], 0)); + + if(all_flows[i].flow->ssh_tls.client_requested_server_name[0] != '\0') + fprintf(out, "[%s]", all_flows[i].flow->ssh_tls.client_requested_server_name); + + printf("\n"); num_printed++; } |