diff options
Diffstat (limited to 'src/analysis/scan/rule.c')
-rw-r--r-- | src/analysis/scan/rule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/analysis/scan/rule.c b/src/analysis/scan/rule.c index 7719e8a..4ef1e3c 100644 --- a/src/analysis/scan/rule.c +++ b/src/analysis/scan/rule.c @@ -525,6 +525,7 @@ void g_scan_rule_check(GScanRule *rule, GEngineBackend *backend, GScanContext *c * * * Paramètres : rule = règle de détection à considérer. * * context = contexte de l'analyse à mener. * +* full = force un affichage complet des résultats. * * fd = canal d'écriture. * * * * Description : Affiche une règle au format texte. * @@ -535,12 +536,13 @@ void g_scan_rule_check(GScanRule *rule, GEngineBackend *backend, GScanContext *c * * ******************************************************************************/ -void g_scan_rule_output_to_text(const GScanRule *rule, GScanContext *context, int fd) +void g_scan_rule_output_to_text(const GScanRule *rule, GScanContext *context, bool full, int fd) { size_t i; /* Boucle de parcours */ - for (i = 0; i < rule->bytes_used; i++) - g_search_pattern_output_to_text(rule->bytes_locals[i], context, fd); + if (full) + for (i = 0; i < rule->bytes_used; i++) + g_search_pattern_output_to_text(rule->bytes_locals[i], context, fd); if (g_scan_context_has_match_for_rule(context, rule->name)) { |