Skip to content

Commit

Permalink
Add: New config_id param for get_report
Browse files Browse the repository at this point in the history
When getting a report it is now possible to specify a report
config to apply.
  • Loading branch information
timopollmeier committed Apr 4, 2024
1 parent 55747e6 commit b62149c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7859,6 +7859,7 @@ get_report (gvm_connection_t *connection, credentials_t *credentials,
entity_t entity;
entity_t report_entity;
const char *report_id, *delta_report_id;
const char *config_id;
const char *format_id;
const char *filter;
const char *filter_id;
Expand All @@ -7877,6 +7878,7 @@ get_report (gvm_connection_t *connection, credentials_t *credentials,

delta_report_id = params_value (params, "delta_report_id");
format_id = params_value (params, "report_format_id");
config_id = params_value (params, "report_config_id");

filter = params_value (params, "filter");
filter_id = params_value (params, "filter_id");
Expand All @@ -7896,10 +7898,12 @@ get_report (gvm_connection_t *connection, credentials_t *credentials,
" filt_id=\"%s\""
" report_id=\"%s\""
" delta_report_id=\"%s\""
" config_id=\"%s\""
" format_id=\"%s\"/>",
details, ignore_pagination, lean, filter,
filter_id ? filter_id : FILT_ID_NONE, report_id,
delta_report_id ? delta_report_id : "0", format_id ? format_id : "");
delta_report_id ? delta_report_id : "0", config_id ? config_id : "",
format_id ? format_id : "");

if (ret == -1)
{
Expand Down

0 comments on commit b62149c

Please sign in to comment.