Updated tests results

Code cleanup
This commit is contained in:
Luca Deri
2022-05-30 00:54:17 +02:00
parent f25deeccb1
commit 1da9f1a36f
105 changed files with 1324 additions and 1445 deletions
+1 -1
View File
@@ -715,7 +715,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
if(ndpi_is_valid_hostname(flow->host_server_name,
strlen(flow->host_server_name)) == 0) {
char str[64];
char str[128];
snprintf(str, sizeof(str), "Invalid host %s", flow->host_server_name);
ndpi_set_risk(ndpi_struct, flow, NDPI_INVALID_CHARACTERS, str);
+1 -1
View File
@@ -1395,7 +1395,7 @@ static void process_chlo(struct ndpi_detection_module_struct *ndpi_struct,
if(ndpi_is_valid_hostname(flow->host_server_name,
strlen(flow->host_server_name)) == 0) {
char str[64];
char str[128];
snprintf(str, sizeof(str), "Invalid host %s", flow->host_server_name);
ndpi_set_risk(ndpi_struct, flow, NDPI_INVALID_CHARACTERS, str);
+2 -2
View File
@@ -478,7 +478,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi
}
if((time_sec < flow->protos.tls_quic.notBefore) || (time_sec > flow->protos.tls_quic.notAfter)) {
char str[64], b[32], e[32];
char str[96], b[32], e[32];
struct tm result;
time_t theTime;
@@ -492,7 +492,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi
ndpi_set_risk(ndpi_struct, flow, NDPI_TLS_CERTIFICATE_EXPIRED, str); /* Certificate expired */
} else if((time_sec > flow->protos.tls_quic.notBefore)
&& (time_sec > (flow->protos.tls_quic.notAfter - (ndpi_struct->tls_certificate_expire_in_x_days * 86400)))) {
char str[64], b[32], e[32];
char str[96], b[32], e[32];
struct tm result;
time_t theTime;