diff options
author | Luca Deri <deri@ntop.org> | 2020-11-08 10:07:35 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-11-08 10:07:35 +0100 |
commit | 89a363aff68b80f81e8f244a5292cdc5de4d5ec0 (patch) | |
tree | c12ea571b12a76170e672de410f859fef8cda649 /src/lib/protocols/tls.c | |
parent | f6cb869c637850e9439fb9a04f392f352d909712 (diff) |
Updated ESNI/SNI alarm generation prolicy
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r-- | src/lib/protocols/tls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 7f9e8d5c0..5c0cc5145 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1539,7 +1539,9 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, /* Add check for missing SNI */ if((flow->protos.stun_ssl.ssl.client_requested_server_name[0] == 0) - && (flow->protos.stun_ssl.ssl.ssl_version >= 0x0302) /* TLSv1.1 */) { + && (flow->protos.stun_ssl.ssl.ssl_version >= 0x0302) /* TLSv1.1 */ + && (flow->protos.stun_ssl.ssl.encrypted_sni.esni == NULL) /* No ESNI */ + ) { /* This is a bit suspicious */ NDPI_SET_BIT(flow->risk, NDPI_TLS_MISSING_SNI); } |