Skip to content

Commit

Permalink
Add: Add new Report Config data type
Browse files Browse the repository at this point in the history
This adds GMP handlers for the new report config data type.

The new data type will allow configuring parameters of predefined report
formats when exporting reports or setting up alerts.
  • Loading branch information
timopollmeier authored and a-h-abdelsalam committed Feb 20, 2024
1 parent 9a82a34 commit 598fe33
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/gsad.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ params_append_mhd (params_t *params, const char *name, const char *filename,
|| (strncmp (name, "file:", strlen ("file:")) == 0)
|| (strncmp (name, "include_id_list:", strlen ("include_id_list:")) == 0)
|| (strncmp (name, "parameter:", strlen ("parameter:")) == 0)
|| (strncmp (name, "param:", strlen ("param:")) == 0)
|| (strncmp (name,
"param_using_default:", strlen ("param_using_default:"))
== 0)
|| (strncmp (name, "password:", strlen ("password:")) == 0)
|| (strncmp (name, "preference:", strlen ("preference:")) == 0)
|| (strncmp (name, "select:", strlen ("select:")) == 0)
Expand Down Expand Up @@ -822,6 +826,7 @@ exec_gmp_post (http_connection_t *con, gsad_connection_info_t *con_info,
ELSE (create_port_list)
ELSE (create_port_range)
ELSE (create_report)
ELSE (create_report_config)
ELSE (create_scanner)
ELSE (create_schedule)
ELSE (create_task)
Expand All @@ -844,6 +849,7 @@ exec_gmp_post (http_connection_t *con, gsad_connection_info_t *con_info,
ELSE (delete_port_list)
ELSE (delete_port_range)
ELSE (delete_report)
ELSE (delete_report_config)
ELSE (delete_report_format)
ELSE (delete_role)
ELSE (delete_scanner)
Expand Down Expand Up @@ -884,6 +890,7 @@ exec_gmp_post (http_connection_t *con, gsad_connection_info_t *con_info,
ELSE (save_override)
ELSE (save_permission)
ELSE (save_port_list)
ELSE (save_report_config)
ELSE (save_report_format)
ELSE (save_role)
ELSE (save_scanner)
Expand Down Expand Up @@ -1487,6 +1494,8 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
ELSE (export_port_list)
ELSE (export_port_lists)
ELSE (export_preference_file)
ELSE (export_report_config)
ELSE (export_report_configs)
ELSE (export_report_format)
ELSE (export_report_formats)
ELSE (export_result)
Expand Down Expand Up @@ -1569,6 +1578,8 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
ELSE (get_port_lists)
ELSE (get_report)
ELSE (get_reports)
ELSE (get_report_config)
ELSE (get_report_configs)
ELSE (get_report_format)
ELSE (get_report_formats)
ELSE (get_resource_names)
Expand Down
Loading

0 comments on commit 598fe33

Please sign in to comment.