diff --git a/src/gsad_gmp.c b/src/gsad_gmp.c index f38f45b58..2550adf70 100644 --- a/src/gsad_gmp.c +++ b/src/gsad_gmp.c @@ -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 (); @@ -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"); diff --git a/src/gsad_validator.c b/src/gsad_validator.c index 87745e475..462be24f3 100644 --- a/src/gsad_validator.c +++ b/src/gsad_validator.c @@ -469,11 +469,11 @@ init_validator () gvm_validator_add (validator, "port_range_id", "^[a-z0-9\\-]+$"); gvm_validator_add ( validator, "resource_type", - "^(alert|asset|cert_bund_adv|config|cpe|credential|cve|dfn_cert_adv|" - "filter|group|host|info|nvt|note|os|ovaldef|override|permission|port_list|" - "report|report_config|report_format|result|role|scanner|schedule|tag|" - "target|task|ticket|" - "tls_certificate|user|vuln|)$"); + "^(alert|asset|audit_report|audit|cert_bund_adv|config|cpe|credential|cve|" + "dfn_cert_adv|filter|group|host|info|nvt|note|os|ovaldef|override|" + "permission|policy|port_list|report|report_config|report_format|result|" + "role|scanner|" + "schedule|tag|target|task|ticket|tls_certificate|user|vuln|)$"); gvm_validator_add (validator, "resource_id", "^[[:alnum:]\\-_.:\\/~]*$"); gvm_validator_add (validator, "resources_action", "^(|add|set|remove)$"); gvm_validator_add (