aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-05-28 17:44:18 +0200
committerLuca Deri <deri@ntop.org>2020-05-28 17:44:18 +0200
commit9c3bfeca80a5064ce5ac689002a9f518d0cb3347 (patch)
treee845e6d58531680c7466603b3118289042a3fa21 /example/ndpiReader.c
parentf6038c358a71ab43bd1e1b53103659f62ea5adce (diff)
Added support for Encrypted TLS SNI dissection
https://datatracker.ietf.org/doc/draft-ietf-tls-sni-encryption/
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index e5dc807b5..87546d89e 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1244,6 +1244,11 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->ssh_tls.tls_issuerDN) fprintf(out, "[Issuer: %s]", flow->ssh_tls.tls_issuerDN);
if(flow->ssh_tls.tls_subjectDN) fprintf(out, "[Subject: %s]", flow->ssh_tls.tls_subjectDN);
+ if(flow->ssh_tls.encrypted_sni.esni) {
+ fprintf(out, "[ESNI: %s]", flow->ssh_tls.encrypted_sni.esni);
+ fprintf(out, "[ESNI Cipher: %s]", ndpi_cipher2str(flow->ssh_tls.encrypted_sni.cipher_suite));
+ }
+
if((flow->detected_protocol.master_protocol == NDPI_PROTOCOL_TLS)
|| (flow->detected_protocol.app_protocol == NDPI_PROTOCOL_TLS)) {
if(flow->ssh_tls.sha1_cert_fingerprint_set) {