Added check in TLS 1.2+ for reporting a risk when TLS is not used to carry HTTPS

This commit is contained in:
Luca Deri
2020-06-08 14:20:10 +02:00
parent d318285cae
commit 3506a07864
22 changed files with 86 additions and 71 deletions
+6
View File
@@ -1381,6 +1381,12 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
#endif
}
/* Before returning to the caller we need to make a final check */
if((flow->protos.stun_ssl.ssl.ssl_version >= 0x0303) /* >= TLSv1.2 */
&& (flow->protos.stun_ssl.ssl.alpn == NULL) /* No ALPN */) {
NDPI_SET_BIT(flow->risk, NDPI_TLS_NOT_CARRYING_HTTPS);
}
return(2 /* Client Certificate */);
} else {
#ifdef DEBUG_TLS