if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
+ /* try to enable JA3 */
+ SSLEnableJA3();
+
/* Check if JA3 is disabled */
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
+ /* try to enable JA3 */
+ SSLEnableJA3();
+
/* Check if JA3 is disabled */
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
+ /* try to enable JA3 */
+ SSLEnableJA3();
+
/* Check if JA3 is disabled */
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
+ /* try to enable JA3 */
+ SSLEnableJA3();
+
/* Check if JA3 is disabled */
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
*/
#include "suricata-common.h"
+#include "app-layer-ssl.h"
#include "util-validate.h"
#include "util-ja3.h"
*/
int Ja3IsDisabled(const char *type)
{
- int is_enabled = 0;
-
- /* Check if JA3 is enabled */
- ConfGetBool("app-layer.protocols.tls.ja3-fingerprints", &is_enabled);
-
+ bool is_enabled = SSLJA3IsEnabled();
if (is_enabled == 0) {
SCLogWarning(SC_WARN_JA3_DISABLED, "JA3 is disabled, skipping %s",
type);