From c5c9e140b9d667d6c67f1f09ed2a25375d6aec70 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Wed, 17 Apr 2019 11:39:43 +0200 Subject: [PATCH] Add type filter column to GET_CONFIGS This allows filtering and sorting configs by type and also adds documentation of the numeric values. --- src/manage_sql.c | 2 +- src/schema_formats/XML/GMP.xml.in | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/manage_sql.c b/src/manage_sql.c index 848353360..0867cf89d 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -37428,7 +37428,7 @@ sync_config (const char *config_id) */ #define CONFIG_ITERATOR_FILTER_COLUMNS \ { GET_ITERATOR_FILTER_COLUMNS, "nvt_selector", "families_total", \ - "nvts_total", "families_trend", "nvts_trend", NULL } + "nvts_total", "families_trend", "nvts_trend", "type", NULL } /** * @brief Scan config iterator columns. diff --git a/src/schema_formats/XML/GMP.xml.in b/src/schema_formats/XML/GMP.xml.in index 231940160..c590700f2 100644 --- a/src/schema_formats/XML/GMP.xml.in +++ b/src/schema_formats/XML/GMP.xml.in @@ -8016,6 +8016,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. boolean Whether new NVTs will be added + + type + + + 0 + 1 + + The type of the config (0 = OpenVAS, 1 OSP) + @@ -8160,9 +8169,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. type - The type the config. + The type of the config (0 = OpenVAS, 1 OSP) - text + + + 0 + 1 + +