diff options
author | Luca <deri@ntop.org> | 2021-05-06 21:42:06 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2021-05-06 21:42:06 +0200 |
commit | ae2470fad40d1865c6fd17f686f43555cc47b92b (patch) | |
tree | 520bd1e9f7892418a32fe842b8d1777565f5ce8f /example/ndpiReader.c | |
parent | 808050e6357f0c84826828f1922ac1a29803845b (diff) |
Initial work towards detection via TLS of browser types
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 806fb4a69..1736b4fa3 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1474,6 +1474,11 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa } } +#ifdef EURISTICS_CODE + if(flow->ssh_tls.browser_euristics.is_safari_tls) fprintf(out, "[Safari]"); + if(flow->ssh_tls.browser_euristics.is_firefox_tls) fprintf(out, "[Firefox]"); +#endif + if(flow->ssh_tls.notBefore && flow->ssh_tls.notAfter) { char notBefore[32], notAfter[32]; struct tm a, b; |