mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-06 03:45:32 +00:00
TLS: be sure to always set ssl_version field (#1806)
Useful with asymmetric traffic with (D)TLS <= 1.2
This commit is contained in:
parent
4231f48059
commit
2b65a4e05e
3 changed files with 7 additions and 2 deletions
|
|
@ -1656,6 +1656,11 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
i += 4 + extension_len, offset += 4 + extension_len;
|
||||
} /* for */
|
||||
|
||||
/* If the CH is not available and if "supported_versions" extension is not present in the SH
|
||||
(i.e. (D)TLS <= 1.2), use the version field present in the record layer */
|
||||
if(flow->protos.tls_quic.ssl_version == 0)
|
||||
flow->protos.tls_quic.ssl_version = tls_version;
|
||||
|
||||
ja3_str_len = ndpi_snprintf(ja3_str, JA3_STR_LEN, "%u,", ja3.server.tls_handshake_version);
|
||||
|
||||
for(i=0; (i<ja3.server.num_cipher) && (JA3_STR_LEN > ja3_str_len); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue