Disabled debug traces

This commit is contained in:
Luca Deri
2019-05-11 00:53:02 +02:00
parent a00ad9fc92
commit 3b185a00fa
+4
View File
@@ -514,7 +514,9 @@ int getSSLcertificate(struct ndpi_detection_module_struct *ndpi_struct,
j += snprintf(&flow->protos.stun_ssl.ssl.ja3_server[j], j += snprintf(&flow->protos.stun_ssl.ssl.ja3_server[j],
sizeof(flow->protos.stun_ssl.ssl.ja3_server)-j, "%02x", md5_hash[i]); sizeof(flow->protos.stun_ssl.ssl.ja3_server)-j, "%02x", md5_hash[i]);
#ifdef CERTIFICATE_DEBUG
printf("[JA3] Server: %s \n", flow->protos.stun_ssl.ssl.ja3_server); printf("[JA3] Server: %s \n", flow->protos.stun_ssl.ssl.ja3_server);
#endif
return(1 /* Server Certificate */); return(1 /* Server Certificate */);
} }
@@ -673,7 +675,9 @@ int getSSLcertificate(struct ndpi_detection_module_struct *ndpi_struct,
j += snprintf(&flow->protos.stun_ssl.ssl.ja3_client[j], j += snprintf(&flow->protos.stun_ssl.ssl.ja3_client[j],
sizeof(flow->protos.stun_ssl.ssl.ja3_client)-j, "%02x", md5_hash[i]); sizeof(flow->protos.stun_ssl.ssl.ja3_client)-j, "%02x", md5_hash[i]);
#ifdef CERTIFICATE_DEBUG
printf("[JA3] Client: %s \n", flow->protos.stun_ssl.ssl.ja3_client); printf("[JA3] Client: %s \n", flow->protos.stun_ssl.ssl.ja3_client);
#endif
return(2 /* Client Certificate */); return(2 /* Client Certificate */);
} }