From 904f53a21b287106cb69fc6555db61fabc2089ee Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Fri, 19 Jan 2024 14:18:55 +0100 Subject: [PATCH] Change: Add usage_type parameter to GMP get_reports. get_reports can now be used to get a report by its usage type (scan/audit). --- src/gsad_gmp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gsad_gmp.c b/src/gsad_gmp.c index 42318b118..2872c3a1e 100644 --- a/src/gsad_gmp.c +++ b/src/gsad_gmp.c @@ -8461,12 +8461,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 (); @@ -8494,6 +8495,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");