]> git.ipfire.org Git - ipfire-2.x.git/commit
ids.cgi: Refactor reading-in rule files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 6 Dec 2017 08:51:46 +0000 (09:51 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:40:51 +0000 (11:40 +0200)
commit3da6e01bcf1aefd1e495f64d251d0e39a94a4fdc
tree3add7b1ece3b80033e9de6091a712779b166c717
parenta70d269a9ad8ed8ee14f0d1de6426bf936750a3f
ids.cgi: Refactor reading-in rule files.

Move the code for reading and parsing the snort rule files
into an own subfunction.

* Drop code for reading in and modifying the snort main config file.
* Rework code for parsing and adding the snort rules to the snortrules hash.
* Drop code for gathering a description for the rule files, which does not
  because of a file layout change and sadly there is not suitable description
  shipped anymore by the snort team.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi