summaryrefslogtreecommitdiff
path: root/src/analysis/scan/rule.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 16:54:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 16:54:57 (GMT)
commit4fcc35a52ccb025b6d803d85e017931cd2452960 (patch)
treee95920f16c273e41f9cae1ea2f02571c221a514e /src/analysis/scan/rule.h
parent74d062d4ec55d7ac3914bbf64b8b6c5ab52227df (diff)
Extend the ROST grammar with a first batch of new features.
Diffstat (limited to 'src/analysis/scan/rule.h')
-rw-r--r--src/analysis/scan/rule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/scan/rule.h b/src/analysis/scan/rule.h
index e240da9..12a435c 100644
--- a/src/analysis/scan/rule.h
+++ b/src/analysis/scan/rule.h
@@ -33,6 +33,7 @@
#include "pattern.h"
#include "expr.h"
#include "patterns/backend.h"
+#include "../../common/fnv1a.h"
@@ -57,6 +58,9 @@ GType g_scan_rule_get_type(void);
/* Crée une règle de détection statique à l'aide de motifs. */
GScanRule *g_scan_rule_new(const char *);
+/* Indique le nom associé à une règle de détection. */
+const char *g_scan_rule_get_name(const GScanRule *, fnv64_t *);
+
/* Intègre une nouvelle variable locale à une règle. */
void g_scan_rule_add_local_variable(GScanRule *, GSearchPattern *);