Skip to content

Commit

Permalink
Change: Add usage_type parameter to GMP get_reports.
Browse files Browse the repository at this point in the history
get_reports can now be used to get a report by its usage
type (scan/audit).
  • Loading branch information
a-h-abdelsalam committed Jan 19, 2024
1 parent 69f305b commit 1c91257
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -8331,12 +8331,13 @@ char *
get_reports_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
{
const gchar *filter, *filter_id, *details;
const gchar *filter, *filter_id, *details, *usage_type;
gmp_arguments_t *arguments;

filter = params_value (params, "filter");
filter_id = params_value (params, "filter_id");
details = params_value (params, "details");
usage_type = params_value (params, "usage_type");

arguments = gmp_arguments_new ();

Expand Down Expand Up @@ -8364,6 +8365,10 @@ get_reports_gmp (gvm_connection_t *connection, credentials_t *credentials,
{
gmp_arguments_add (arguments, "details", details);
}
if (usage_type)
{
gmp_arguments_add (arguments, "usage_type", usage_type);
}

params_remove (params, "filter");
params_remove (params, "filter_id");
Expand Down

0 comments on commit 1c91257

Please sign in to comment.