Disabled debug traces
This commit is contained in:
@@ -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 */);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user