|
|
|
@ -264,16 +264,20 @@ int Ja3IsDisabled(const char *type)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool is_enabled = SSLJA3IsEnabled();
|
|
|
|
bool is_enabled = SSLJA3IsEnabled();
|
|
|
|
if (is_enabled == 0) {
|
|
|
|
if (is_enabled == 0) {
|
|
|
|
SCLogWarning(SC_WARN_JA3_DISABLED, "JA3 is disabled, skipping %s",
|
|
|
|
if (strcmp(type, "rule") != 0) {
|
|
|
|
type);
|
|
|
|
SCLogWarning(SC_WARN_JA3_DISABLED, "JA3 is disabled, skipping %s",
|
|
|
|
|
|
|
|
type);
|
|
|
|
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_NSS
|
|
|
|
#ifndef HAVE_NSS
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
SCLogWarning(SC_WARN_NO_JA3_SUPPORT,
|
|
|
|
if (strcmp(type, "rule") != 0) {
|
|
|
|
"no MD5 calculation support built in (LibNSS), skipping %s",
|
|
|
|
SCLogWarning(SC_WARN_NO_JA3_SUPPORT,
|
|
|
|
type);
|
|
|
|
"no MD5 calculation support built in (LibNSS), skipping %s",
|
|
|
|
|
|
|
|
type);
|
|
|
|
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* HAVE_NSS */
|
|
|
|
#endif /* HAVE_NSS */
|
|
|
|
|