Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type filter column to GET_CONFIGS (8.0) #486

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
18 changes: 16 additions & 2 deletions src/schema_formats/XML/GMP.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -8016,6 +8016,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<type>boolean</type>
<summary>Whether new NVTs will be added</summary>
</column>
<column>
<name>type</name>
<type>
<alts>
<alt>0</alt>
<alt>1</alt>
</alts></type>
<summary>The type of the config (0 = OpenVAS, 1 OSP)</summary>
</column>
</filter_keywords>
</attrib>
<attrib>
Expand Down Expand Up @@ -8160,9 +8169,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
</ele>
<ele>
<name>type</name>
<summary>The type the config.</summary>
<summary>The type of the config (0 = OpenVAS, 1 OSP)</summary>
<pattern>
text
<t>
<alts>
<alt>0</alt>
<alt>1</alt>
</alts>
</t>
</pattern>
</ele>
<ele>
Expand Down