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 Aug 22, 2024
1 parent 1896ae3 commit da4b7fe
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 @@ -8465,12 +8465,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 @@ -8498,6 +8499,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 da4b7fe

Please sign in to comment.