|
Greenbone Security Assistant
8.0.0
|
GMP communication module of Greenbone Security Assistant daemon. More...
#include "gsad_gmp.h"#include "gsad_base.h"#include "gsad_credentials.h"#include "gsad_http.h"#include "gsad_i18n.h"#include "gsad_params.h"#include "gsad_session.h"#include "gsad_settings.h"#include "utils.h"#include <arpa/inet.h>#include <assert.h>#include <errno.h>#include <fcntl.h>#include <glib.h>#include <gvm/base/cvss.h>#include <gvm/gmp/gmp.h>#include <gvm/util/fileutils.h>#include <gvm/util/serverutils.h>#include <gvm/util/xmlutils.h>#include <microhttpd.h>#include <netdb.h>#include <netinet/in.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include <sys/time.h>#include <sys/un.h>#include <time.h>#include <unistd.h>
Go to the source code of this file.
Data Structures | |
| struct | find_by_value_t |
| Structure to search a key by value. More... | |
Macros | |
| #define | G_LOG_DOMAIN "gsad gmp" |
| GLib log domain. More... | |
| #define | OPENVASMD_ADDRESS "127.0.0.1" |
| Manager (gvmd) address. More... | |
| #define | GSAD_MESSAGE_INVALID |
| Answer for invalid input. More... | |
| #define | GSAD_MESSAGE_INVALID_PARAM(op) |
| Answer for invalid input. More... | |
| #define | GSAD_STATUS_INVALID_REQUEST MHD_HTTP_UNPROCESSABLE_ENTITY |
| HTTP status code for expected failure of gmp requests e.g. if some parameter was missing or invalid. More... | |
| #define | RESULTS_PER_PAGE 100 |
| Initial filtered results per page on the report summary. More... | |
| #define | FILT_ID_NONE "0" |
| filt_id value to use term or built-in default filter. More... | |
| #define | FILT_ID_USER_SETTING "-2" |
| filt_id value to use the filter in the user setting if possible. More... | |
| #define | CHECK_VARIABLE_INVALID(name, op_name) |
| Check if variable is NULL. More... | |
| #define | PARAM_OR_SETTING(value, param, setting_id, cleanup) |
| Get a value from a param or fall back to a setting. More... | |
| #define | EVENT_TYPE_NEW_SECINFO "New SecInfo arrived" |
| #define | EVENT_TYPE_UPDATED_SECINFO "Updated SecInfo arrived" |
| #define | EVENT_TYPE_TASK_RUN_STATUS_CHANGED "Task run status changed" |
| #define | EVENT_TYPE_TICKET_RECEIVED "Ticket received" |
| #define | EVENT_TYPE_ASSIGNED_TICKET_CHANGED "Assigned ticket changed" |
| #define | EVENT_TYPE_OWNED_TICKET_CHANGED "Owned ticket changed" |
| #define | GET_TRASH_RESOURCE(capability, command, name) |
| #define | CHECK_GMPF_RET |
| #define | AUTH_CONF_SETTING(key, value) |
| Generate AUTH_CONF_SETTING element for save_auth_gmp. More... | |
Functions | |
| static int | gmp (gvm_connection_t *connection, credentials_t *credentials, gchar **response, entity_t *entity_return, cmd_response_data_t *response_data, const char *command) |
| Run a single GMP command. More... | |
| static int | gmpf (gvm_connection_t *connection, credentials_t *credentials, gchar **response, entity_t *entity_return, cmd_response_data_t *response_data, const char *format,...) |
| Run a single formatted GMP command. More... | |
| static char * | edit_role (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_role XML, envelope the result. More... | |
| static char * | get_alert (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one alert, envelope the result. More... | |
| static char * | get_alerts (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all alerts, envelope the result. More... | |
| static char * | get_agent (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one agent, envelope the result. More... | |
| static char * | get_agents (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all agents, envelope the result. More... | |
| static char * | get_asset (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Request an asset. More... | |
| static char * | get_assets (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Request assets. More... | |
| static char * | get_tasks (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all tasks, envelope the result. More... | |
| static char * | get_trash (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup trash page XML, envelope the result. More... | |
| static char * | get_config_family (gvm_connection_t *connection, credentials_t *credentials, params_t *params, int edit, cmd_response_data_t *response_data) |
| Get details of a family for a config, envelope the result. More... | |
| static char * | get_config (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, int edit, cmd_response_data_t *response_data) |
| Get a config, envelope the result. More... | |
| static char * | get_configs (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all scan configs, envelope the result. More... | |
| static char * | get_filter (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one filter, envelope the result. More... | |
| static char * | get_filters (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all filters, envelope the result. More... | |
| static char * | get_group (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one group, envelope the result. More... | |
| static char * | get_groups (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all groups, envelope the result. More... | |
| static char * | get_credential (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one credential, envelope the result. More... | |
| static char * | get_credentials (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one or all credentials, envelope the result. More... | |
| static char * | get_notes (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all notes, envelope the result. More... | |
| static char * | get_note (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get a note, envelope the result. More... | |
| static char * | get_overrides (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all overrides, envelope the result. More... | |
| static char * | get_override (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get a override, envelope the result. More... | |
| static char * | get_permission (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one permission, envelope the result. More... | |
| static char * | get_permissions (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all permissions, envelope the result. More... | |
| static char * | get_port_list (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one port_list, envelope the result. More... | |
| static char * | get_port_lists (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all Port Lists, envelope the result. More... | |
| static char * | get_tag (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one tag, envelope the result. More... | |
| static char * | get_tags (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all tags, envelope the result. More... | |
| static char * | get_target (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one target, envelope the result. More... | |
| static char * | get_targets (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all targets, envelope the result. More... | |
| static char * | get_report_format (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one report format, envelope the result. More... | |
| static char * | get_report_formats (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all Report Formats, envelope the result. More... | |
| static char * | get_reports (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all reports, envelope the result. More... | |
| static char * | get_results (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all results, envelope the result. More... | |
| static char * | get_role (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one role, envelope the result. More... | |
| static char * | get_roles (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all roles, envelope the result. More... | |
| static char * | get_scanner (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one scanner, envelope the result. More... | |
| static char * | get_scanners (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all scanners, envelope the result. More... | |
| static char * | get_schedule (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one schedule, envelope the result. More... | |
| static char * | get_schedules (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all schedules, envelope the result. More... | |
| static char * | get_user (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get one user, envelope the result. More... | |
| static char * | get_users (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get all users, envelope the result. More... | |
| static char * | get_vulns (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get multiple vulns, envelope the result. More... | |
| static char * | wizard (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Returns a wizard page. More... | |
| static char * | wizard_get (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Returns a wizard_get page. More... | |
| static int | gmp_success (entity_t entity) |
| Check whether an GMP command failed. More... | |
| static gchar * | response_from_entity (gvm_connection_t *connection, credentials_t *credentials, params_t *params, entity_t entity, const char *action, cmd_response_data_t *response_data) |
| Set redirect or return a basic action_result page based on entity. More... | |
| static gchar * | action_result (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data, const char *action, const char *message, const char *details, const char *id) |
| Generate a enveloped GMP XML containing an action result. More... | |
| int | command_enabled (credentials_t *credentials, const gchar *name) |
| Init the GSA GMP library. More... | |
| void | gmp_init (const gchar *manager_address_unix, const gchar *manager_address_tls, int port_manager) |
| Init the GSA GMP library. More... | |
| static int | filter_exists (gvm_connection_t *connection, const char *filt_id) |
| Check whether a filter exists. More... | |
| static char * | envelope_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, gchar *xml, cmd_response_data_t *response_data) |
| Wrap some XML in an envelope. More... | |
| static int | member (params_t *params, const char *string) |
| Look for a param with name equal to a given string. More... | |
| int | member1 (params_t *params, const char *string) |
| Look for param with value 1 and name equal to given string. More... | |
| static char * | check_modify_config (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *next, const char *fail_next, int *success, cmd_response_data_t *response_data) |
| Check a modify_config response. More... | |
| void | set_http_status_from_entity (entity_t entity, cmd_response_data_t *response_data) |
| Set the HTTP status according to GMP response entity. More... | |
| static int | simple_gmpf (gvm_connection_t *connection, const gchar *message_operation, credentials_t *credentials, gchar **response, cmd_response_data_t *response_data, const char *format,...) |
| Run a single GMP command, preparing a response even on error. More... | |
| static int | setting_get_value (gvm_connection_t *connection, const char *setting_id, gchar **value, cmd_response_data_t *response_data) |
| Get a setting by UUID for the current user of an GMP connection. More... | |
| gchar * | message_invalid (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data, const char *message, const char *op_name) |
| Check a param using the direct response method. More... | |
| char * | get_one (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, const char *extra_xml, const char *extra_attribs, cmd_response_data_t *response_data) |
| Get one resource, envelope the result. More... | |
| static char * | get_many (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, const char *extra_xml, const char *extra_attribs, cmd_response_data_t *response_data) |
| Get all of a particular type of resource, envelope the result. More... | |
| char * | edit_resource (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, const char *extra_get_attribs, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit XML, envelope the result. More... | |
| gchar * | format_file_name (gchar *fname_format, credentials_t *credentials, const char *type, const char *uuid, entity_t resource_entity) |
| Generates a file name for exporting. More... | |
| char * | export_resource (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a resource. More... | |
| static char * | export_many (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of resources. More... | |
| char * | delete_resource (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, gboolean ultimate, cmd_response_data_t *response_data) |
| Delete a resource, get all resources, envelope the result. More... | |
| char * | move_resource_to_trash (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Move a resource to the trashcan. More... | |
| char * | delete_from_trash_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a resource from the trashcan. More... | |
| char * | resource_action (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *type, const char *action, cmd_response_data_t *response_data) |
| Perform action on resource, get next page, envelope result. More... | |
| char * | create_report_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new container task. More... | |
| char * | import_report_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import report, get all reports, envelope the result. More... | |
| char * | create_container_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a container task, serve next page. More... | |
| char * | create_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a task, get all tasks, envelope the result. More... | |
| char * | delete_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a task, get all tasks, envelope the result. More... | |
| char * | save_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save task, get next page, envelope the result. More... | |
| char * | save_container_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save container task, get next page, envelope the result. More... | |
| char * | export_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a task. More... | |
| char * | export_tasks_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of tasks. More... | |
| char * | stop_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Stop a task, get all tasks, envelope the result. More... | |
| char * | resume_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Resume a task, get all tasks, envelope the result. More... | |
| char * | start_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Start a task, get all tasks, envelope the result. More... | |
| char * | move_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Reassign a task to a new GMP slave. More... | |
| char * | get_info (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Requests SecInfo. More... | |
| char * | get_info_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get info, envelope the result. More... | |
| static void | params_toggle_overrides (params_t *params, const char *overrides) |
| Toggle overrides. More... | |
| char * | get_tasks_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all tasks, envelope the result. More... | |
| char * | get_task_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a task, envelope the result. More... | |
| char * | create_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a credential, get all credentials, envelope result. More... | |
| char * | get_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one credential, envelope the result. More... | |
| int | download_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, char **html, char **login, cmd_response_data_t *response_data) |
| Export a Credential in a defined format. More... | |
| char * | export_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a Credential. More... | |
| char * | export_credentials_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of Credentials. More... | |
| char * | get_credentials_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one or all credentials, envelope the result. More... | |
| char * | delete_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete credential, get all credentials, envelope result. More... | |
| char * | save_credential_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save credential, get next page, envelope the result. More... | |
| char * | create_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an agent, get all agents, envelope result. More... | |
| char * | delete_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete agent, get all agents, envelope result. More... | |
| int | download_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, char **html, char **filename, cmd_response_data_t *response_data) |
| Get an agent, envelope the result. More... | |
| char * | save_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a agent, get all agents, envelope the result. More... | |
| char * | get_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one agent, envelope the result. More... | |
| char * | get_agents_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all agents, envelope the result. More... | |
| char * | verify_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify agent, get agents, envelope the result. More... | |
| char * | export_agent_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a agent. More... | |
| char * | export_agents_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of agents. More... | |
| char * | get_aggregate_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an aggregate of resources. More... | |
| static char * | new_alert (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Returns page to create a new alert. More... | |
| char * | new_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new alert. More... | |
| static void | append_alert_event_data (GString *xml, params_t *data, const char *event) |
| Send event data for an alert. More... | |
| static void | append_alert_condition_data (GString *xml, params_t *data, const char *condition) |
| Send condition data for an alert. More... | |
| static void | append_alert_method_data (GString *xml, params_t *data, const char *method, params_t *report_formats) |
| Send method data for an alert. More... | |
| char * | create_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an alert, get all alerts, envelope the result. More... | |
| char * | delete_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete an alert, get all alerts, envelope the result. More... | |
| char * | get_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one alert, envelope the result. More... | |
| char * | get_alerts_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all alerts, envelope the result. More... | |
| char * | edit_alert (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_alert XML, envelope the result. More... | |
| char * | edit_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_alert XML, envelope the result. More... | |
| char * | save_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify an alert, get all alerts, envelope the result. More... | |
| char * | test_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Test an alert, get all alerts envelope the result. More... | |
| char * | export_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export an alert. More... | |
| char * | export_alerts_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of alerts. More... | |
| char * | create_target_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a target, get all targets, envelope the result. More... | |
| char * | clone_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Clone a resource, envelope the result. More... | |
| char * | delete_target_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a target, get all targets, envelope the result. More... | |
| char * | restore_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Restore a resource, get all trash, envelope the result. More... | |
| char * | empty_trashcan_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Empty the trashcan, get all trash, envelope the result. More... | |
| char * | create_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a tag, envelope the result. More... | |
| char * | delete_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete note, get next page, envelope the result. More... | |
| char * | save_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a tag, get all tags, envelope the result. More... | |
| char * | export_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a tag. More... | |
| char * | export_tags_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of tags. More... | |
| char * | get_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one tag, envelope the result. More... | |
| char * | get_tags_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all tags, envelope the result. More... | |
| char * | toggle_tag_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Set tag enabled status. More... | |
| char * | get_target_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one target, envelope the result. More... | |
| char * | get_targets_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all targets, envelope the result. More... | |
| char * | save_target_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a target, get all targets, envelope the result. More... | |
| char * | export_target_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a target. More... | |
| char * | export_targets_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of targets. More... | |
| char * | create_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create config, get all configs, envelope the result. More... | |
| char * | import_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import config, get all configs, envelope the result. More... | |
| char * | get_configs_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all scan configs, envelope the result. More... | |
| char * | get_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a config, envelope the result. More... | |
| static char * | edit_config (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get a config, envelope the result. More... | |
| char * | edit_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a config, envelope the result. More... | |
| char * | sync_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Sync config, get configs, envelope the result. More... | |
| static char * | save_osp_prefs (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *next, const char *fail_next, int *success, cmd_response_data_t *response_data) |
| Save OSP file preferences. More... | |
| char * | save_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save details of an NVT for a config and return the next page. More... | |
| char * | get_config_family_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of a family for a config, envelope the result. More... | |
| char * | edit_config_family_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of a family for editing a config, envelope result. More... | |
| char * | save_config_family_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of an NVT for a config, envelope the result. More... | |
| static char * | get_config_nvt (gvm_connection_t *connection, credentials_t *credentials, params_t *params, int edit, cmd_response_data_t *response_data) |
| Get details of an NVT for a config, envelope the result. More... | |
| char * | get_config_nvt_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of an NVT for a config, envelope the result. More... | |
| char * | edit_config_nvt_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Edit details of an NVT for a config, envelope the result. More... | |
| char * | save_config_nvt_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save NVT prefs for a config, get NVT details, envelope result. More... | |
| char * | delete_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete config, get all configs, envelope the result. More... | |
| char * | export_config_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a config. More... | |
| char * | export_configs_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of scan configs. More... | |
| char * | export_note_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a note. More... | |
| char * | export_notes_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of notes. More... | |
| char * | export_override_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export an override. More... | |
| char * | export_overrides_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of overrides. More... | |
| char * | export_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a Port List. More... | |
| char * | export_port_lists_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of Port Lists. More... | |
| char * | export_preference_file_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a file preference. More... | |
| char * | export_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a report format. More... | |
| char * | export_report_formats_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of Report Formats. More... | |
| char * | delete_report_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete report, get task status, envelope the result. More... | |
| char * | get_report (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Get a report and return the result. More... | |
| char * | get_report_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a report and envelope the result. More... | |
| char * | report_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Run alert for a report. More... | |
| char * | get_reports_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all reports, envelope the result. More... | |
| char * | download_ssl_cert (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an SSL Certificate. More... | |
| char * | download_ca_pub (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a Scanner's CA Certificate. More... | |
| char * | download_key_pub (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a Scanner's Certificate. More... | |
| char * | export_result_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a result. More... | |
| char * | export_results_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of results. More... | |
| char * | get_results_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all results, envelope the result. More... | |
| char * | get_result_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one result, envelope the result. More... | |
| char * | get_notes_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all notes, envelope the result. More... | |
| char * | get_note_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a note, envelope the result. More... | |
| const char * | get_port_from_params (params_t *params) |
| Get a port from request params. More... | |
| const char * | get_hosts_from_params (params_t *params) |
| Get hosts from request params. More... | |
| const char * | get_task_id_from_params (params_t *params) |
| Get task_id from request params. More... | |
| const char * | get_severity_from_params (params_t *params) |
| Get severity from request params. More... | |
| const char * | get_result_id_from_params (params_t *params) |
| Get result_id from request params. More... | |
| char * | create_note_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a note, get report, envelope the result. More... | |
| char * | delete_note_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete note, get next page, envelope the result. More... | |
| char * | save_note_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save note, get next page, envelope the result. More... | |
| char * | get_overrides_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all overrides, envelope the result. More... | |
| char * | get_override_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an override, envelope the result. More... | |
| char * | create_override_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an override, get report, envelope the result. More... | |
| char * | delete_override_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete override, get next page, envelope the result. More... | |
| char * | save_override_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save override, get next page, envelope the result. More... | |
| char * | get_scanners_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all scanners, envelope the result. More... | |
| char * | get_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one scanner, envelope the result. More... | |
| char * | export_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a scanner. More... | |
| char * | export_scanners_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of scanners. More... | |
| char * | verify_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify scanner, get scanners, envelope the result. More... | |
| char * | create_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a scanner, get all scanners, envelope the result. More... | |
| char * | delete_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a scanner, get all scanners, envelope the result. More... | |
| char * | save_scanner_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save scanner, get next page, envelope the result. More... | |
| char * | get_schedule_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one schedule, envelope the result. More... | |
| char * | get_schedules_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all schedules, envelope the result. More... | |
| char * | create_schedule_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a schedule, get all schedules, envelope the result. More... | |
| char * | delete_schedule_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a schedule, get all schedules, envelope the result. More... | |
| char * | get_system_reports_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all system reports, envelope the result. More... | |
| char * | get_system_report_gmp (gvm_connection_t *connection, credentials_t *credentials, const char *url, params_t *params, cmd_response_data_t *response_data) |
| Return system report image. More... | |
| char * | get_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one report format, envelope the result. More... | |
| char * | get_report_formats_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all Report Formats, envelope the result. More... | |
| char * | delete_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete report format, get report formats, envelope the result. More... | |
| char * | import_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import report format, get all report formats, envelope result. More... | |
| char * | save_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save report_format, get next page, envelope the result. More... | |
| char * | verify_report_format_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify report format, get report formats, envelope the result. More... | |
| char * | run_wizard_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Run a wizard and envelope the result. More... | |
| char * | get_trash_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all trash, envelope the result. More... | |
| static int | send_settings_filters (gvm_connection_t *connection, params_t *data, params_t *changed, GString *xml, int *modify_failed_flag, cmd_response_data_t *response_data) |
| Send settings resource filters. More... | |
| char * | save_my_settings_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const gchar *accept_language, cmd_response_data_t *response_data) |
| Returns page with user's settings, for editing. More... | |
| char * | get_group_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one group, envelope the result. More... | |
| char * | get_groups_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all groups, envelope the result. More... | |
| char * | delete_group_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a group, get all groups, envelope the result. More... | |
| char * | create_group_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a group, get all groups, envelope the result. More... | |
| char * | export_group_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a group. More... | |
| char * | export_groups_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of groups. More... | |
| char * | save_group_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a group, return the next page. More... | |
| char * | get_permission_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one permission, envelope the result. More... | |
| char * | get_permissions_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all permissions, envelope the result. More... | |
| char * | delete_permission_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a permission, get all permissions, envelope the result. More... | |
| char * | create_permission_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a permission, get all permissions, envelope the result. More... | |
| char * | create_permissions_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create multiple permission, get next page, envelope the result. More... | |
| char * | export_permission_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a permission. More... | |
| char * | export_permissions_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of permissions. More... | |
| char * | save_permission_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a permission, get all permissions, envelope the result. More... | |
| char * | create_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a port list, get all port lists, envelope the result. More... | |
| char * | create_port_range_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Add a range to a port list, envelope the result. More... | |
| char * | get_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one port_list, envelope the result. More... | |
| char * | get_port_lists_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all port_lists, envelope the result. More... | |
| char * | save_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a port list, get all port list, envelope the result. More... | |
| char * | delete_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a port list, get all port lists, envelope the result. More... | |
| char * | delete_port_range_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a port range, get the port list, envelope the result. More... | |
| char * | import_port_list_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import port list, get all port_lists, envelope the result. More... | |
| char * | delete_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a role, get all roles, envelope the result. More... | |
| char * | create_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a role, get all roles, envelope the result. More... | |
| char * | edit_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_role XML, envelope the result. More... | |
| char * | get_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one role, envelope the result. More... | |
| char * | get_roles_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all roles, envelope the result. More... | |
| char * | export_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a role. More... | |
| char * | export_roles_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of roles. More... | |
| char * | save_role_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a role, return the next page. More... | |
| char * | get_feeds_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get descriptions of the feeds connected to the manager. More... | |
| static char * | sync_feed (gvm_connection_t *connection, credentials_t *credentials, params_t *params, const char *sync_cmd, const char *action, const char *feed_name, cmd_response_data_t *response_data) |
| Synchronize with a feed and envelope the result. More... | |
| char * | sync_feed_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with an NVT feed and envelope the result. More... | |
| char * | sync_scap_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with a SCAP feed and envelope the result. More... | |
| char * | sync_cert_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with a CERT feed and envelope the result. More... | |
| char * | get_filter_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one filter, envelope the result. More... | |
| char * | get_filters_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all filters, envelope the result. More... | |
| char * | create_filter_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a filter, get all filters, envelope the result. More... | |
| char * | delete_filter_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a filter, get all filters, envelope the result. More... | |
| char * | export_filter_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a filter. More... | |
| char * | export_filters_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of filters. More... | |
| char * | save_filter_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a filter, get all filters, envelope the result. More... | |
| char * | export_schedule_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a schedule. More... | |
| char * | export_schedules_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of schedules. More... | |
| char * | save_schedule_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save schedule, get next page, envelope the result. More... | |
| char * | delete_user_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a user, get all users, envelope the result. More... | |
| char * | get_user_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one user, envelope the result. More... | |
| char * | get_users_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all users, envelope the result. More... | |
| char * | create_user_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a user, get all users, envelope the result. More... | |
| char * | get_vulns_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get multiple vulns, envelope the result. More... | |
| char * | auth_settings_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | save_user_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a user, get all users, envelope the result. More... | |
| char * | export_user_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a user. More... | |
| char * | export_users_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of users. More... | |
| char * | cvss_calculator (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | save_auth_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save authentication settings. More... | |
| char * | get_settings_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all user defined settings. More... | |
| char * | save_setting_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save user setting. More... | |
| char * | get_setting_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | wizard_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns a wizard page. More... | |
| char * | wizard_get_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns a wizard_get page. More... | |
| char * | bulk_delete_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete multiple resources, get next page, envelope the result. More... | |
| char * | bulk_export_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export multiple resources. More... | |
| char * | create_host_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a host, serve next page. More... | |
| char * | get_asset_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get asset, envelope the result. More... | |
| char * | get_assets_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get assets, envelope the result. More... | |
| char * | create_asset_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an asset, get report, envelope the result. More... | |
| char * | delete_asset_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete an asset, go to the next page. More... | |
| char * | export_asset_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export an asset. More... | |
| char * | export_assets_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Export a list of assets. More... | |
| char * | save_asset_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify an asset, get all assets, envelope the result. More... | |
| char * | get_tickets_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all tickets, envelope the result. More... | |
| char * | get_ticket_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get single tickets, envelope the result. More... | |
| char * | create_ticket_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a ticket. More... | |
| char * | save_ticket_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a ticket. More... | |
| char * | delete_ticket_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a ticket. More... | |
| char * | renew_session_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | ping_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get assets, envelope the result. More... | |
| int | connect_unix (const gchar *path) |
| Connect to Greenbone Vulnerability Manager daemon. More... | |
| int | gvm_connection_open (gvm_connection_t *connection, const gchar *address, int port) |
| Connect to an address. More... | |
| int | authenticate_gmp (const gchar *username, const gchar *password, gchar **role, gchar **timezone, gchar **severity, gchar **capabilities, gchar **language, gchar **pw_warning) |
| Check authentication credentials. More... | |
| int | login (http_connection_t *con, params_t *params, cmd_response_data_t *response_data, const char *client_address) |
| Login and create a session. More... | |
| int | manager_connect (credentials_t *credentials, gvm_connection_t *connection, cmd_response_data_t *response_data) |
| Connect to Greenbone Vulnerability Manager daemon. More... | |
Variables | |
| int | manager_use_tls = 0 |
| Whether to use TLS for Manager connections. More... | |
| gchar * | manager_address = NULL |
| The address the manager is on. More... | |
| int | manager_port = 9390 |
| The port the manager is on. More... | |
GMP communication module of Greenbone Security Assistant daemon.
This file implements an API for GMP. The functions call the Greenbone Vulnerability Manager via GMP properly.
Definition in file gsad_gmp.c.
| #define AUTH_CONF_SETTING | ( | key, | |
| value | |||
| ) |
Generate AUTH_CONF_SETTING element for save_auth_gmp.
Definition at line 17657 of file gsad_gmp.c.
| #define CHECK_GMPF_RET |
Definition at line 14725 of file gsad_gmp.c.
| #define CHECK_VARIABLE_INVALID | ( | name, | |
| op_name | |||
| ) |
Check if variable is NULL.
| [in] | name | Param name. |
| [in] | op_name | Operation name. |
Definition at line 119 of file gsad_gmp.c.
| #define EVENT_TYPE_ASSIGNED_TICKET_CHANGED "Assigned ticket changed" |
Definition at line 5432 of file gsad_gmp.c.
| #define EVENT_TYPE_NEW_SECINFO "New SecInfo arrived" |
Definition at line 5428 of file gsad_gmp.c.
| #define EVENT_TYPE_OWNED_TICKET_CHANGED "Owned ticket changed" |
Definition at line 5433 of file gsad_gmp.c.
| #define EVENT_TYPE_TASK_RUN_STATUS_CHANGED "Task run status changed" |
Definition at line 5430 of file gsad_gmp.c.
| #define EVENT_TYPE_TICKET_RECEIVED "Ticket received" |
Definition at line 5431 of file gsad_gmp.c.
| #define EVENT_TYPE_UPDATED_SECINFO "Updated SecInfo arrived" |
Definition at line 5429 of file gsad_gmp.c.
| #define FILT_ID_NONE "0" |
filt_id value to use term or built-in default filter.
Definition at line 106 of file gsad_gmp.c.
| #define FILT_ID_USER_SETTING "-2" |
filt_id value to use the filter in the user setting if possible.
Definition at line 111 of file gsad_gmp.c.
| #define G_LOG_DOMAIN "gsad gmp" |
GLib log domain.
Definition at line 65 of file gsad_gmp.c.
| #define GET_TRASH_RESOURCE | ( | capability, | |
| command, | |||
| name | |||
| ) |
Definition at line 13113 of file gsad_gmp.c.
| #define GSAD_MESSAGE_INVALID |
Answer for invalid input.
Definition at line 73 of file gsad_gmp.c.
| #define GSAD_MESSAGE_INVALID_PARAM | ( | op | ) |
Answer for invalid input.
Definition at line 83 of file gsad_gmp.c.
| #define GSAD_STATUS_INVALID_REQUEST MHD_HTTP_UNPROCESSABLE_ENTITY |
HTTP status code for expected failure of gmp requests e.g. if some parameter was missing or invalid.
Definition at line 96 of file gsad_gmp.c.
| #define OPENVASMD_ADDRESS "127.0.0.1" |
Manager (gvmd) address.
Definition at line 70 of file gsad_gmp.c.
| #define PARAM_OR_SETTING | ( | value, | |
| param, | |||
| setting_id, | |||
| cleanup | |||
| ) |
Get a value from a param or fall back to a setting.
Currently the input sanatizing is done in serve_post, exec_gmp_post and exec_gmp_get in gsad.c. This means that the information about what input is suitable for a page is separate from the page handler.
Doing the input sanatizing in the page handler will probably also help in responding with more detailed messages when an input error occurs.
Anything that is printed into the XML directly (usually via g_string_append_printf below) must use something like g_markup_printf_escaped or g_markup_escape_text to ensure that any XML special sequences in the string are escaped.
There are variations in the style of the page handlers that run multiple GMP commands.
Some, like delete_credential_gmp, simply run the GMP commands inside one GMP COMMANDS.
Others, like create_target_gmp, run each command separately and wrap the responses in a unique page tag.
One handler, delete_target_gmp, runs all the commands in a single COMMANDS and also wraps the response in a unique page tag to convey the context to the enveloped XML. This is probably the way to go.
| [out] | value | Variable to assign the value to. |
| [in] | param | The param to try get the value from first. |
| [in] | setting_id | The UUID of the setting to try next. |
| [in] | cleanup | Code to run on failure. |
Definition at line 2206 of file gsad_gmp.c.
| #define RESULTS_PER_PAGE 100 |
Initial filtered results per page on the report summary.
Definition at line 101 of file gsad_gmp.c.
|
static |
Generate a enveloped GMP XML containing an action result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | HTTP request params |
| [out] | response_data | Extra data return for the HTTP response. |
| [in] | action | Name of the action. |
| [in] | message | Status message. |
| [in] | details | Status details (optional). |
| [in] | id | ID of the handled entity (optional). |
Definition at line 965 of file gsad_gmp.c.
References envelope_gmp().
Referenced by check_modify_config(), create_permissions_gmp(), message_invalid(), ping_gmp(), renew_session_gmp(), response_from_entity(), and save_config_nvt_gmp().


|
static |
Send condition data for an alert.
| [in] | xml | XML. |
| [out] | data | Data. |
| [out] | condition | Condition. |
Definition at line 5472 of file gsad_gmp.c.
References params_iterator_init, params_iterator_next(), params_iterator_t, and param::value.
Referenced by create_alert_gmp(), and save_alert_gmp().


|
static |
Send event data for an alert.
| [in] | xml | XML. |
| [out] | data | Data. |
| [out] | event | Event. |
Definition at line 5444 of file gsad_gmp.c.
References EVENT_TYPE_NEW_SECINFO, EVENT_TYPE_TASK_RUN_STATUS_CHANGED, EVENT_TYPE_UPDATED_SECINFO, params_iterator_init, params_iterator_next(), params_iterator_t, str_equal(), and param::value.
Referenced by create_alert_gmp(), and save_alert_gmp().


|
static |
Send method data for an alert.
| [in] | xml | Command XML to append to. |
| [in] | data | Alert method data params. |
| [in] | method | Name of the Alert method. |
| [in] | report_formats | Report formats to use if multiple are supported. |
Definition at line 5522 of file gsad_gmp.c.
References params_iterator_init, params_iterator_next(), params_iterator_t, params_value(), str_equal(), param::value, and param::value_size.
Referenced by create_alert_gmp(), and save_alert_gmp().


| char* auth_settings_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 17238 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), command_enabled(), envelope_gmp(), gmp(), gsad_message(), and params_value().

| int authenticate_gmp | ( | const gchar * | username, |
| const gchar * | password, | ||
| gchar ** | role, | ||
| gchar ** | timezone, | ||
| gchar ** | severity, | ||
| gchar ** | capabilities, | ||
| gchar ** | language, | ||
| gchar ** | pw_warning | ||
| ) |
Check authentication credentials.
| [in] | username | Username. |
| [in] | password | Password. |
| [out] | role | Role. |
| [out] | timezone | Timezone. |
| [out] | severity | Severity class. |
| [out] | capabilities | Capabilities of manager. |
| [out] | language | User Interface Language, or NULL. |
| [out] | pw_warning | Password warning message, NULL if password is OK. |
Definition at line 19273 of file gsad_gmp.c.
References gvm_connection_open(), manager_address, manager_port, and setting_get_value().
Referenced by login().


| char* bulk_delete_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete multiple resources, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18260 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and response_from_entity().

| char* bulk_export_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export multiple resources.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18366 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, export_many(), params_add(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and str_equal().

|
static |
Check a modify_config response.
| [in] | connection | Connection with manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | HTTP request parameters. |
| [in] | next | Next page command on success. |
| [in] | fail_next | Next page command on failure. |
| [out] | success | Whether the command returned a success response. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 570 of file gsad_gmp.c.
References action_result(), cmd_response_data_set_status_code(), gmp_success(), gsad_message(), response_from_entity(), and str_equal().
Referenced by save_config_family_gmp(), save_config_gmp(), save_config_nvt_gmp(), and save_osp_prefs().


| char* clone_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Clone a resource, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6868 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), params_value(), and response_from_entity().

| int command_enabled | ( | credentials_t * | credentials, |
| const gchar * | name | ||
| ) |
Init the GSA GMP library.
| [in] | credentials | Credentials. |
| [in] | name | Command name. |
Definition at line 352 of file gsad_gmp.c.
References credentials_get_user(), and user_get_capabilities().
Referenced by auth_settings_gmp(), edit_alert(), edit_role(), get_alert(), get_alerts(), get_info(), get_system_reports_gmp(), get_user(), and get_users().


| int connect_unix | ( | const gchar * | path | ) |
Connect to Greenbone Vulnerability Manager daemon.
| [in] | path | Path to the Manager socket. |
Definition at line 19196 of file gsad_gmp.c.
Referenced by gvm_connection_open().

| char* create_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an agent, get all agents, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4436 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_filename(), params_value(), params_value_size(), and response_from_entity().

| char* create_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an alert, get all alerts, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5688 of file gsad_gmp.c.
References append_alert_condition_data(), append_alert_event_data(), append_alert_method_data(), CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), EVENT_TYPE_NEW_SECINFO, EVENT_TYPE_UPDATED_SECINFO, gmp(), gsad_message(), params_add(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), str_equal(), and param::value.

| char* create_asset_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an asset, get report, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18674 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* create_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create config, get all configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7884 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_value(), response_from_entity(), and str_equal().

| char* create_container_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a container task, serve next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2401 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* create_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a credential, get all credentials, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3585 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), login(), params_add(), params_value(), response_from_entity(), and str_equal().

| char* create_filter_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a filter, get all filters, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16486 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp_success(), gmpf(), gsad_message(), params_add(), params_value(), response_from_entity(), param::valid, param::valid_utf8, and param::value.

| char* create_group_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a group, get all groups, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14153 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_value(), response_from_entity(), and users.

| char* create_host_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a host, serve next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18420 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* create_note_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a note, get report, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10971 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_hosts_from_params(), get_port_from_params(), get_result_id_from_params(), get_severity_from_params(), get_task_id_from_params(), gmpf(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* create_override_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an override, get report, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11262 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_hosts_from_params(), get_port_from_params(), get_result_id_from_params(), get_severity_from_params(), get_task_id_from_params(), gmpf(), gsad_message(), params_add(), params_original_value(), params_valid(), params_value(), and response_from_entity().

| char* create_permission_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a permission, get all permissions, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14466 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_given(), params_value(), and response_from_entity().

| char* create_permissions_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create multiple permission, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14785 of file gsad_gmp.c.
References action_result(), CHECK_GMPF_RET, CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), str_equal(), and param::value.

| char* create_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a port list, get all port lists, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15372 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* create_port_range_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Add a range to a port list, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15453 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* create_report_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new container task.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | message | If not NULL, display message. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2245 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), message_invalid(), params_given(), params_value(), and response_from_entity().
Referenced by import_report_gmp().


| char* create_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a role, get all roles, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15817 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_value(), response_from_entity(), and users.

| char* create_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a scanner, get all scanners, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11692 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_given(), params_value(), and response_from_entity().

| char* create_schedule_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a schedule, get all schedules, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12038 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* create_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a tag, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7095 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), and param::value.

| char* create_target_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a target, get all targets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6668 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_given(), params_value(), and response_from_entity().

| char* create_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a task, get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2481 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gmp_success(), gsad_message(), message_invalid(), params_add(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_valid(), params_value(), params_values(), response_from_entity(), str_equal(), and param::value.

| char* create_ticket_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a ticket.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18983 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* create_user_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a user, get all users, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17039 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), and param::value.

| char* cvss_calculator | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 17574 of file gsad_gmp.c.
References envelope_gmp(), and params_value().

| char* delete_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete agent, get all agents, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4571 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete an alert, get all alerts, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5824 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_asset_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete an asset, go to the next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18748 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), params_get(), params_value(), response_from_entity(), param::value, and param::value_size.

| char* delete_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete config, get all configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9360 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete credential, get all credentials, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4179 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_filter_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a filter, get all filters, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16578 of file gsad_gmp.c.
References move_resource_to_trash(), params_get(), and param::value.

| char* delete_from_trash_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a resource from the trashcan.
| [in] | connection | Connection to manager. |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2042 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, delete_resource(), and params_value().

| char* delete_group_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a group, get all groups, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14135 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_note_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete note, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11070 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_override_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete override, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11387 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_permission_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a permission, get all permissions, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14448 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a port list, get all port lists, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15689 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_port_range_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a port range, get the port list, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15707 of file gsad_gmp.c.
References delete_resource().

| char* delete_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete report format, get report formats, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12566 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_report_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete report, get task status, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9661 of file gsad_gmp.c.
References delete_resource().

| char* delete_resource | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gboolean | ultimate, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a resource, get all resources, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | ultimate | 0 move to trash, 1 remove entirely. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1915 of file gsad_gmp.c.
References capitalize(), cmd_response_data_set_status_code(), gmp_success(), gsad_message(), message_invalid(), params_given(), params_value(), response_from_entity(), and set_http_status_from_entity().
Referenced by delete_from_trash_gmp(), delete_port_range_gmp(), delete_report_gmp(), and move_resource_to_trash().


| char* delete_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a role, get all roles, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15799 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a scanner, get all scanners, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11788 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_schedule_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a schedule, get all schedules, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12119 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete note, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7210 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_target_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a target, get all targets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6955 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a task, get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2810 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_ticket_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a ticket.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19142 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_user_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a user, get all users, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16843 of file gsad_gmp.c.
References move_resource_to_trash().

| int download_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| char ** | html, | ||
| char ** | filename, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an agent, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | html | Result. Required. |
| [out] | filename | Agent filename return. NULL to skip. Only set on success with agent_id. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4592 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_status_code(), gsad_message(), and params_value().

| char* download_ca_pub | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a Scanner's CA Certificate.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10605 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_status_code(), gsad_message(), and params_value().

| int download_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| char ** | html, | ||
| char ** | login, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a Credential in a defined format.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | html | Result. Required. |
| [out] | login | Login name return. NULL to skip. Only set on success with credential_id. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3917 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_status_code(), gsad_message(), login(), and params_value().

| char* download_key_pub | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a Scanner's Certificate.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10638 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_status_code(), gsad_message(), and params_value().

| char* download_ssl_cert | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an SSL Certificate.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10564 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_status_code(), gsad_message(), and params_value().

| char* edit_alert | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_alert XML, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6182 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), envelope_gmp(), gsad_message(), and params_value().
Referenced by edit_alert_gmp().


| char* edit_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_alert XML, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6410 of file gsad_gmp.c.
References edit_alert().

|
static |
Get a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8290 of file gsad_gmp.c.
References get_config().
Referenced by edit_config_gmp().


| char* edit_config_family_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of a family for editing a config, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8862 of file gsad_gmp.c.
References get_config_family().

| char* edit_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8309 of file gsad_gmp.c.
References edit_config().

| char* edit_config_nvt_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit details of an NVT for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9125 of file gsad_gmp.c.
References get_config_nvt().

| char* edit_resource | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_get_attribs, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit XML, envelope the result.
| [in] | connection | Connection to manager |
| [in] | type | Type or resource to edit. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_get_attribs | Extra attributes for the get_... command. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1421 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().
Referenced by edit_role().


|
static |
Setup edit_role XML, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15896 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), credentials_get_user(), edit_resource(), gmpf(), gsad_message(), params_value(), and user_get_username().
Referenced by edit_role_gmp().


| char* edit_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_role XML, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16020 of file gsad_gmp.c.
References edit_role().

| char* empty_trashcan_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Empty the trashcan, get all trash, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7040 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), and response_from_entity().

|
static |
Wrap some XML in an envelope.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | HTTP request params (UNUSED) |
| [in] | xml | XML string. Freed before exit. |
| [out] | response_data | Extra data return for the HTTP response or NULL. |
Definition at line 443 of file gsad_gmp.c.
References cmd_response_data_set_content_type(), credentials_get_cmd_duration(), credentials_get_language(), credentials_get_user(), ctime_r_strip_newline(), GSAD_CONTENT_TYPE_APP_XML, user_get_capabilities(), user_get_client_address(), user_get_guest(), user_get_password_warning(), user_get_role(), user_get_session_timeout(), user_get_severity(), user_get_timezone(), user_get_token(), user_get_username(), and vendor_version_get().
Referenced by action_result(), auth_settings_gmp(), cvss_calculator(), edit_alert(), edit_resource(), export_preference_file_gmp(), export_resource(), get_aggregate_gmp(), get_config(), get_config_family(), get_config_nvt(), get_feeds_gmp(), get_many(), get_one(), get_report(), get_setting_gmp(), get_settings_gmp(), get_system_reports_gmp(), get_trash(), login(), new_alert(), save_my_settings_gmp(), wizard(), and wizard_get().


| char* export_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a agent.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4981 of file gsad_gmp.c.
References export_resource().

| char* export_agents_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of agents.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5000 of file gsad_gmp.c.
References export_many().

| char* export_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export an alert.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6632 of file gsad_gmp.c.
References export_resource().

| char* export_alerts_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of alerts.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6651 of file gsad_gmp.c.
References export_many().

| char* export_asset_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export an asset.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18835 of file gsad_gmp.c.
References export_resource().

| char* export_assets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of assets.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18854 of file gsad_gmp.c.
References export_many().

| char* export_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a config.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9378 of file gsad_gmp.c.
References export_resource().

| char* export_configs_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of scan configs.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9397 of file gsad_gmp.c.
References export_many().

| char* export_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a Credential.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4103 of file gsad_gmp.c.
References export_resource().

| char* export_credentials_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of Credentials.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4122 of file gsad_gmp.c.
References export_many().

| char* export_filter_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a filter.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16605 of file gsad_gmp.c.
References export_resource().

| char* export_filters_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of filters.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16624 of file gsad_gmp.c.
References export_many().

| char* export_group_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a group.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14254 of file gsad_gmp.c.
References export_resource().

| char* export_groups_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of groups.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14273 of file gsad_gmp.c.
References export_many().

|
static |
Export a list of resources.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1738 of file gsad_gmp.c.
References cmd_response_data_set_content_disposition(), cmd_response_data_set_content_length(), cmd_response_data_set_content_type(), cmd_response_data_set_status_code(), format_file_name(), gmp_success(), GSAD_CONTENT_TYPE_APP_XML, gsad_message(), params_value(), set_http_status_from_entity(), and setting_get_value().
Referenced by bulk_export_gmp(), export_agents_gmp(), export_alerts_gmp(), export_assets_gmp(), export_configs_gmp(), export_credentials_gmp(), export_filters_gmp(), export_groups_gmp(), export_notes_gmp(), export_overrides_gmp(), export_permissions_gmp(), export_port_lists_gmp(), export_report_formats_gmp(), export_results_gmp(), export_roles_gmp(), export_scanners_gmp(), export_schedules_gmp(), export_tags_gmp(), export_targets_gmp(), export_tasks_gmp(), and export_users_gmp().


| char* export_note_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a note.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9414 of file gsad_gmp.c.
References export_resource().

| char* export_notes_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of notes.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9433 of file gsad_gmp.c.
References export_many().

| char* export_override_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export an override.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9450 of file gsad_gmp.c.
References export_resource().

| char* export_overrides_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of overrides.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9469 of file gsad_gmp.c.
References export_many().

| char* export_permission_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a permission.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15228 of file gsad_gmp.c.
References export_resource().

| char* export_permissions_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of permissions.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15247 of file gsad_gmp.c.
References export_many().

| char* export_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a Port List.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9488 of file gsad_gmp.c.
References export_resource().

| char* export_port_lists_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of Port Lists.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9507 of file gsad_gmp.c.
References export_many().

| char* export_preference_file_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a file preference.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9525 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_content_disposition(), cmd_response_data_set_content_length(), cmd_response_data_set_content_type(), cmd_response_data_set_status_code(), envelope_gmp(), GSAD_CONTENT_TYPE_OCTET_STREAM, gsad_message(), and params_value().

| char* export_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a report format.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9622 of file gsad_gmp.c.
References export_resource().

| char* export_report_formats_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of Report Formats.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9642 of file gsad_gmp.c.
References export_many().

| char* export_resource | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a resource.
| [in] | connection | Connection to manager. |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1586 of file gsad_gmp.c.
References cmd_response_data_set_content_disposition(), cmd_response_data_set_content_length(), cmd_response_data_set_content_type(), cmd_response_data_set_status_code(), envelope_gmp(), format_file_name(), gmp_success(), GSAD_CONTENT_TYPE_APP_XML, gsad_message(), GSAD_MESSAGE_INVALID_PARAM, params_value(), set_http_status_from_entity(), and setting_get_value().
Referenced by export_agent_gmp(), export_alert_gmp(), export_asset_gmp(), export_config_gmp(), export_credential_gmp(), export_filter_gmp(), export_group_gmp(), export_note_gmp(), export_override_gmp(), export_permission_gmp(), export_port_list_gmp(), export_report_format_gmp(), export_result_gmp(), export_role_gmp(), export_scanner_gmp(), export_schedule_gmp(), export_tag_gmp(), export_target_gmp(), export_task_gmp(), and export_user_gmp().


| char* export_result_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10673 of file gsad_gmp.c.
References export_resource().

| char* export_results_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of results.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10692 of file gsad_gmp.c.
References export_many().

| char* export_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a role.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16111 of file gsad_gmp.c.
References export_resource().

| char* export_roles_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of roles.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16130 of file gsad_gmp.c.
References export_many().

| char* export_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a scanner.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11590 of file gsad_gmp.c.
References export_resource().

| char* export_scanners_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of scanners.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11608 of file gsad_gmp.c.
References export_many().

| char* export_schedule_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a schedule.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16723 of file gsad_gmp.c.
References export_resource().

| char* export_schedules_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of schedules.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16741 of file gsad_gmp.c.
References export_many().

| char* export_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a tag.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7356 of file gsad_gmp.c.
References export_resource().

| char* export_tags_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of tags.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7375 of file gsad_gmp.c.
References export_many().

| char* export_target_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a target.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7848 of file gsad_gmp.c.
References export_resource().

| char* export_targets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of targets.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7867 of file gsad_gmp.c.
References export_many().

| char* export_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a task.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3160 of file gsad_gmp.c.
References export_resource().

| char* export_tasks_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of tasks.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3179 of file gsad_gmp.c.
References export_many().

| char* export_user_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a user.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17548 of file gsad_gmp.c.
References export_resource().

| char* export_users_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of users.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17567 of file gsad_gmp.c.
References export_many().

|
static |
Check whether a filter exists.
| [in] | connection | Connection to manager. |
| [in] | entity | Response entity. |
Definition at line 408 of file gsad_gmp.c.
References FILT_ID_NONE, FILT_ID_USER_SETTING, gmp_success(), and str_equal().
Referenced by get_many().


| gchar* format_file_name | ( | gchar * | fname_format, |
| credentials_t * | credentials, | ||
| const char * | type, | ||
| const char * | uuid, | ||
| entity_t | resource_entity | ||
| ) |
Generates a file name for exporting.
| [in] | fname_format | Format string. |
| [in] | credentials | Current credentials. |
| [in] | type | Type of resource. |
| [in] | uuid | UUID of resource. |
| [in] | resource_entity | Resource entity to extract extra data from. |
Definition at line 1501 of file gsad_gmp.c.
References credentials_get_user(), and user_get_username().
Referenced by export_many(), export_resource(), and get_report().


|
static |
Get one agent, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4833 of file gsad_gmp.c.
References get_one().
Referenced by get_agent_gmp().


| char* get_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one agent, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4852 of file gsad_gmp.c.
References get_agent().

|
static |
Get all agents, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4870 of file gsad_gmp.c.
References get_many().
Referenced by get_agents_gmp().


| char* get_agents_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all agents, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4889 of file gsad_gmp.c.
References get_agents().

| char* get_aggregate_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an aggregate of resources.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5017 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp(), gmp_success(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), set_http_status_from_entity(), param::valid, and param::value.

|
static |
Get one alert, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5843 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), get_one(), gmp(), and gsad_message().
Referenced by get_alert_gmp().


| char* get_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one alert, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6021 of file gsad_gmp.c.
References get_alert().

|
static |
Get all alerts, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6039 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), get_many(), gmp(), and gsad_message().
Referenced by get_alerts_gmp().


| char* get_alerts_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all alerts, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6164 of file gsad_gmp.c.
References get_alerts().

|
static |
Request an asset.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials for the manager connection. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18507 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), get_one(), gsad_message(), params_add(), params_value(), param::valid, param::valid_utf8, and param::value.
Referenced by get_asset_gmp().


| char* get_asset_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get asset, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18580 of file gsad_gmp.c.
References get_asset().

|
static |
Request assets.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials for the manager connection. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18598 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), get_many(), gsad_message(), params_add(), params_value(), param::valid, param::valid_utf8, and param::value.
Referenced by get_assets_gmp().


| char* get_assets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get assets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18657 of file gsad_gmp.c.
References get_assets().

|
static |
Get a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [in] | edit | 0 for config view page, else config edit page. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8078 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), get_configs(), gsad_message(), and params_value().
Referenced by edit_config(), and get_config_gmp().


|
static |
Get details of a family for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | edit | 0 for config view page, else config edit page. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8712 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().
Referenced by edit_config_family_gmp(), and get_config_family_gmp().


| char* get_config_family_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of a family for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8845 of file gsad_gmp.c.
References get_config_family().

| char* get_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8273 of file gsad_gmp.c.
References get_config().

|
static |
Get details of an NVT for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | edit | 0 for config view page, else config edit page. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8968 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().
Referenced by edit_config_nvt_gmp(), and get_config_nvt_gmp().


| char* get_config_nvt_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of an NVT for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9108 of file gsad_gmp.c.
References get_config_nvt().

|
static |
Get all scan configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8040 of file gsad_gmp.c.
References get_many().
Referenced by get_config(), get_configs_gmp(), and sync_config_gmp().


| char* get_configs_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all scan configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8059 of file gsad_gmp.c.
References get_configs().

|
static |
Get one credential, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | commands | Extra commands to run before the others. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3878 of file gsad_gmp.c.
References get_one().
Referenced by get_credential_gmp().


| char* get_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one credential, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3897 of file gsad_gmp.c.
References get_credential().

|
static |
Get one or all credentials, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | commands | Extra commands to run before the others when credential_id is NULL. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4143 of file gsad_gmp.c.
References get_many().
Referenced by get_credentials_gmp().


| char* get_credentials_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one or all credentials, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4162 of file gsad_gmp.c.
References get_credentials().

| char* get_feeds_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get descriptions of the feeds connected to the manager.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16231 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), and gsad_message().

|
static |
Get one filter, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16413 of file gsad_gmp.c.
References get_one().
Referenced by get_filter_gmp().


| char* get_filter_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one filter, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16432 of file gsad_gmp.c.
References get_filter().

|
static |
Get all filters, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16450 of file gsad_gmp.c.
References get_many().
Referenced by get_filters_gmp().


| char* get_filters_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all filters, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16469 of file gsad_gmp.c.
References get_filters().

|
static |
Get one group, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14062 of file gsad_gmp.c.
References get_one().
Referenced by get_group_gmp().


| char* get_group_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one group, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14081 of file gsad_gmp.c.
References get_group().

|
static |
Get all groups, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14099 of file gsad_gmp.c.
References get_many().
Referenced by get_groups_gmp().


| char* get_groups_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all groups, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14118 of file gsad_gmp.c.
References get_groups().

| const char* get_hosts_from_params | ( | params_t * | params | ) |
Get hosts from request params.
| [in] | params | Request parameters. |
Definition at line 10868 of file gsad_gmp.c.
References params_given(), params_original_value(), params_valid(), and params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_gmp().


| char* get_info | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Requests SecInfo.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials for the manager connection. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3325 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), get_many(), gsad_message(), params_add(), params_value(), simple_gmpf(), param::valid, param::valid_utf8, and param::value.
Referenced by get_info_gmp().


| char* get_info_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get info, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3443 of file gsad_gmp.c.
References get_info().

|
static |
Get all of a particular type of resource, envelope the result.
| [in] | connection | Connection to manager |
| [in] | type | Resource type. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [in] | extra_attribs | Extra attributes for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1152 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), FILT_ID_NONE, FILT_ID_USER_SETTING, filter_exists(), gsad_message(), params_value(), and str_equal().
Referenced by get_agents(), get_alerts(), get_assets(), get_configs(), get_credentials(), get_filters(), get_groups(), get_info(), get_notes(), get_overrides(), get_permissions(), get_port_lists(), get_report_formats(), get_reports(), get_results(), get_roles(), get_scanners(), get_schedules(), get_tags(), get_targets(), get_tasks(), get_tickets_gmp(), get_users(), and get_vulns().


|
static |
Get a note, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10809 of file gsad_gmp.c.
References get_one().
Referenced by get_note_gmp().


| char* get_note_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a note, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10828 of file gsad_gmp.c.
References get_note().

|
static |
Get all notes, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10772 of file gsad_gmp.c.
References get_many().
Referenced by get_notes_gmp().


| char* get_notes_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all notes, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10791 of file gsad_gmp.c.
References get_notes().

| char* get_one | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| const char * | extra_attribs, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one resource, envelope the result.
| [in] | connection | Connection to manager |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [in] | extra_attribs | Extra attributes for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1060 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), envelope_gmp(), gmp_success(), gsad_message(), params_value(), and set_http_status_from_entity().
Referenced by get_agent(), get_alert(), get_asset(), get_credential(), get_filter(), get_group(), get_note(), get_override(), get_permission(), get_port_list(), get_report_format(), get_result_gmp(), get_role(), get_scanner(), get_schedule(), get_tag(), get_target(), get_task_gmp(), get_ticket_gmp(), and get_user().


|
static |
Get a override, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11226 of file gsad_gmp.c.
References get_one().
Referenced by get_override_gmp().


| char* get_override_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an override, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11245 of file gsad_gmp.c.
References get_override().

|
static |
Get all overrides, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11189 of file gsad_gmp.c.
References get_many().
Referenced by get_overrides_gmp().


| char* get_overrides_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all overrides, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11208 of file gsad_gmp.c.
References get_overrides().

|
static |
Get one permission, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14375 of file gsad_gmp.c.
References get_one().
Referenced by get_permission_gmp().


| char* get_permission_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one permission, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14394 of file gsad_gmp.c.
References get_permission().

|
static |
Get all permissions, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14412 of file gsad_gmp.c.
References get_many().
Referenced by get_permissions_gmp().


| char* get_permissions_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all permissions, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14431 of file gsad_gmp.c.
References get_permissions().

| const char* get_port_from_params | ( | params_t * | params | ) |
Get a port from request params.
| [in] | params | Request parameters. |
Definition at line 10842 of file gsad_gmp.c.
References params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_gmp().


|
static |
Get one port_list, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | commands | Extra commands to run before the others. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15537 of file gsad_gmp.c.
References get_one().
Referenced by get_port_list_gmp().


| char* get_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one port_list, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15556 of file gsad_gmp.c.
References get_port_list().

|
static |
Get all Port Lists, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15574 of file gsad_gmp.c.
References get_many().
Referenced by get_port_lists_gmp().


| char* get_port_lists_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all port_lists, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15593 of file gsad_gmp.c.
References get_port_lists().

| char* get_report | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a report and return the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | commands | Extra commands to run before the others. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | error | Set to 1 if error, else 0. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9682 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_content_disposition(), cmd_response_data_set_content_length(), cmd_response_data_set_content_type_string(), cmd_response_data_set_status_code(), envelope_gmp(), FILT_ID_USER_SETTING, format_file_name(), gmp_success(), gsad_message(), params_add(), params_given(), params_valid(), params_value(), RESULTS_PER_PAGE, set_http_status_from_entity(), setting_get_value(), param::valid, param::valid_utf8, and param::value.
Referenced by get_report_gmp().


|
static |
Get one report format, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12490 of file gsad_gmp.c.
References get_one().
Referenced by get_report_format_gmp().


| char* get_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one report format, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12509 of file gsad_gmp.c.
References get_report_format().

|
static |
Get all Report Formats, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12528 of file gsad_gmp.c.
References get_many().
Referenced by get_report_formats_gmp().


| char* get_report_formats_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all Report Formats, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12547 of file gsad_gmp.c.
References get_report_formats().

| char* get_report_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a report and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10397 of file gsad_gmp.c.
References get_report().

|
static |
Get all reports, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10521 of file gsad_gmp.c.
References get_many(), params_toggle_overrides(), and params_value().
Referenced by get_reports_gmp().


| char* get_reports_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all reports, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10547 of file gsad_gmp.c.
References get_reports().

| char* get_result_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one result, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10753 of file gsad_gmp.c.
References get_one().

| const char* get_result_id_from_params | ( | params_t * | params | ) |
Get result_id from request params.
| [in] | params | Request parameters. |
Definition at line 10946 of file gsad_gmp.c.
References params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_gmp().


|
static |
Get all results, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10710 of file gsad_gmp.c.
References get_many(), params_toggle_overrides(), and params_value().
Referenced by get_results_gmp().


| char* get_results_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all results, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10736 of file gsad_gmp.c.
References get_results().

|
static |
Get one role, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16038 of file gsad_gmp.c.
References get_one().
Referenced by get_role_gmp().


| char* get_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one role, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16057 of file gsad_gmp.c.
References get_role().

|
static |
Get all roles, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16075 of file gsad_gmp.c.
References get_many().
Referenced by get_roles_gmp().


| char* get_roles_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all roles, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16094 of file gsad_gmp.c.
References get_roles().

|
static |
Get one scanner, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11554 of file gsad_gmp.c.
References get_one().
Referenced by get_scanner_gmp().


| char* get_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one scanner, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11573 of file gsad_gmp.c.
References get_scanner().

|
static |
Get all scanners, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11517 of file gsad_gmp.c.
References get_many().
Referenced by get_scanners_gmp().


| char* get_scanners_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all scanners, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11536 of file gsad_gmp.c.
References get_scanners().

|
static |
Get one schedule, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11965 of file gsad_gmp.c.
References get_one().
Referenced by get_schedule_gmp().


| char* get_schedule_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one schedule, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11984 of file gsad_gmp.c.
References get_schedule().

|
static |
Get all schedules, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12002 of file gsad_gmp.c.
References get_many().
Referenced by get_schedules_gmp().


| char* get_schedules_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all schedules, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12021 of file gsad_gmp.c.
References get_schedules().

| char* get_setting_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 17959 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().

| char* get_settings_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all user defined settings.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17799 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().

| const char* get_severity_from_params | ( | params_t * | params | ) |
Get severity from request params.
| [in] | params | Request parameters. |
Definition at line 10923 of file gsad_gmp.c.
References params_given(), params_original_value(), params_valid(), and params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_gmp().


| char* get_system_report_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| const char * | url, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return system report image.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | url | URL of report image. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12328 of file gsad_gmp.c.
References cmd_response_data_set_content_length(), cmd_response_data_set_content_type(), GSAD_CONTENT_TYPE_IMAGE_PNG, and params_value().
Referenced by handle_system_report().


| char* get_system_reports_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all system reports, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12137 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), envelope_gmp(), gsad_message(), and params_value().

|
static |
Get one tag, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7393 of file gsad_gmp.c.
References get_one().
Referenced by get_tag_gmp().


| char* get_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one tag, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7412 of file gsad_gmp.c.
References get_tag().

|
static |
Get all tags, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7430 of file gsad_gmp.c.
References get_many().
Referenced by get_tags_gmp().


| char* get_tags_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all tags, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7449 of file gsad_gmp.c.
References get_tags().

|
static |
Get one target, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7535 of file gsad_gmp.c.
References get_one().
Referenced by get_target_gmp().


| char* get_target_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one target, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7554 of file gsad_gmp.c.
References get_target().

|
static |
Get all targets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7572 of file gsad_gmp.c.
References get_many().
Referenced by get_targets_gmp().


| char* get_targets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all targets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7591 of file gsad_gmp.c.
References get_targets().

| char* get_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a task, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3567 of file gsad_gmp.c.
References get_one().

| const char* get_task_id_from_params | ( | params_t * | params | ) |
Get task_id from request params.
| [in] | params | Request parameters. |
Definition at line 10903 of file gsad_gmp.c.
References params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_gmp().


|
static |
Get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3510 of file gsad_gmp.c.
References get_many(), params_toggle_overrides(), and params_value().
Referenced by get_tasks_gmp().


| char* get_tasks_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3550 of file gsad_gmp.c.
References get_tasks().

| char* get_ticket_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get single tickets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18965 of file gsad_gmp.c.
References get_one().

| char* get_tickets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all tickets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18947 of file gsad_gmp.c.
References get_many().

|
static |
Setup trash page XML, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13159 of file gsad_gmp.c.
References envelope_gmp(), and GET_TRASH_RESOURCE.
Referenced by get_trash_gmp().


| char* get_trash_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all trash, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13226 of file gsad_gmp.c.
References get_trash().

|
static |
Get one user, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16862 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), get_one(), gmp(), and gsad_message().
Referenced by get_user_gmp().


| char* get_user_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one user, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16933 of file gsad_gmp.c.
References get_user().

|
static |
Get all users, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16951 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), command_enabled(), get_many(), gmp(), and gsad_message().
Referenced by get_users_gmp(), and save_auth_gmp().


| char* get_users_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all users, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17022 of file gsad_gmp.c.
References get_users().

|
static |
Get multiple vulns, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17229 of file gsad_gmp.c.
References get_many().
Referenced by get_vulns_gmp().


| char* get_vulns_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get multiple vulns, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17211 of file gsad_gmp.c.
References get_vulns().

|
static |
Run a single GMP command.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [out] | response | Response. |
| [out] | entity_return | Response entity. |
| [out] | response_data | Extra data return for the HTTP response. |
| [in] | command | Command. |
Definition at line 706 of file gsad_gmp.c.
Referenced by auth_settings_gmp(), create_agent_gmp(), create_alert_gmp(), create_container_task_gmp(), create_group_gmp(), create_host_gmp(), create_report_gmp(), create_tag_gmp(), create_target_gmp(), create_task_gmp(), create_user_gmp(), get_aggregate_gmp(), get_alert(), get_alerts(), get_user(), get_users(), gmpf(), import_config_gmp(), import_port_list_gmp(), import_report_format_gmp(), move_task_gmp(), new_alert(), run_wizard_gmp(), save_alert_gmp(), save_credential_gmp(), save_setting_gmp(), save_tag_gmp(), save_target_gmp(), save_user_gmp(), simple_gmpf(), and wizard_get().

| void gmp_init | ( | const gchar * | manager_address_unix, |
| const gchar * | manager_address_tls, | ||
| int | port_manager | ||
| ) |
Init the GSA GMP library.
| [in] | manager_address_unix | Manager address when using UNIX socket. |
| [in] | manager_address_tls | Manager address when using TLS-TCP. |
| [in] | port_manager | Manager port. |
Definition at line 368 of file gsad_gmp.c.
References manager_address, manager_port, and manager_use_tls.
|
static |
Check whether an GMP command failed.
| [in] | entity | Response entity. |
Definition at line 656 of file gsad_gmp.c.
Referenced by check_modify_config(), create_filter_gmp(), create_task_gmp(), delete_resource(), export_many(), export_resource(), filter_exists(), get_aggregate_gmp(), get_one(), get_report(), resource_action(), response_from_entity(), save_my_settings_gmp(), save_user_gmp(), send_settings_filters(), and simple_gmpf().

|
static |
Run a single formatted GMP command.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [out] | response | Response. |
| [out] | entity_return | Response entity. |
| [out] | response_data | Extra data return for the HTTP response. |
| [in] | format | Command. |
| [in] | ... | Arguments for format string. |
Definition at line 859 of file gsad_gmp.c.
References gmp().
Referenced by create_asset_gmp(), create_config_gmp(), create_credential_gmp(), create_filter_gmp(), create_note_gmp(), create_override_gmp(), create_permission_gmp(), create_permissions_gmp(), create_port_list_gmp(), create_port_range_gmp(), create_role_gmp(), create_scanner_gmp(), create_schedule_gmp(), create_ticket_gmp(), edit_role(), resource_action(), save_agent_gmp(), save_asset_gmp(), save_auth_gmp(), save_container_task_gmp(), save_group_gmp(), save_note_gmp(), save_override_gmp(), save_permission_gmp(), save_port_list_gmp(), save_report_format_gmp(), save_role_gmp(), save_scanner_gmp(), save_schedule_gmp(), save_task_gmp(), save_ticket_gmp(), verify_agent_gmp(), verify_report_format_gmp(), and verify_scanner_gmp().


| int gvm_connection_open | ( | gvm_connection_t * | connection, |
| const gchar * | address, | ||
| int | port | ||
| ) |
Connect to an address.
| [out] | connection | Connection. |
| [out] | address | Address. |
| [out] | port | Port. |
Definition at line 19235 of file gsad_gmp.c.
References connect_unix(), and manager_use_tls.
Referenced by authenticate_gmp(), and manager_connect().


| char* import_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import config, get all configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7967 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gsad_message(), params_value(), and response_from_entity().

| char* import_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import port list, get all port_lists, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15725 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gsad_message(), params_value(), and response_from_entity().

| char* import_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import report format, get all report formats, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12585 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gsad_message(), params_add(), params_value(), and response_from_entity().

| char* import_report_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import report, get all reports, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2384 of file gsad_gmp.c.
References create_report_gmp().

| int login | ( | http_connection_t * | con, |
| params_t * | params, | ||
| cmd_response_data_t * | response_data, | ||
| const char * | client_address | ||
| ) |
Login and create a session.
| [in] | con | HTTP Connection |
| [in] | params | Request parameters |
| [out] | response_data | Extra data return for the HTTP response |
| [in] | client_address | Client address |
Definition at line 19384 of file gsad_gmp.c.
References authenticate_gmp(), credentials_free(), credentials_new(), envelope_gmp(), GMP_SERVICE_DOWN, handler_create_response(), handler_send_reauthentication(), login(), LOGIN_ERROR, LOGIN_FAILED, params_original_value(), params_value(), user_add(), user_free(), and user_get_cookie().
Referenced by create_credential_gmp(), download_credential_gmp(), login(), save_credential_gmp(), and save_user_gmp().


| int manager_connect | ( | credentials_t * | credentials, |
| gvm_connection_t * | connection, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Connect to Greenbone Vulnerability Manager daemon.
| [in] | credentials | Username and password for authentication. |
| [out] | connection | Connection to Manager on success. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19475 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), credentials_get_user(), gvm_connection_open(), manager_address, manager_port, user_get_password(), and user_get_username().
Referenced by handle_system_report().


|
static |
Look for a param with name equal to a given string.
| [in] | params | Params. |
| [in] | string | String. |
Definition at line 520 of file gsad_gmp.c.
References params_iterator_init, params_iterator_next(), and params_iterator_t.
Referenced by save_config_gmp().


| int member1 | ( | params_t * | params, |
| const char * | string | ||
| ) |
Look for param with value 1 and name equal to given string.
| [in] | params | Params. |
| [in] | string | String. |
Definition at line 542 of file gsad_gmp.c.
References params_iterator_init, params_iterator_next(), params_iterator_t, param::value, and param::value_size.
Referenced by save_config_gmp().


| gchar* message_invalid | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data, | ||
| const char * | message, | ||
| const char * | op_name | ||
| ) |
Check a param using the direct response method.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | response_data | Response data. |
| [in] | message | Message. |
| [in] | op_name | Operation name. |
Definition at line 1004 of file gsad_gmp.c.
References action_result(), cmd_response_data_set_status_code(), and GSAD_STATUS_INVALID_REQUEST.
Referenced by create_report_gmp(), create_task_gmp(), and delete_resource().


| char* move_resource_to_trash | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Move a resource to the trashcan.
| [in] | connection | Connection to manager. |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2022 of file gsad_gmp.c.
References delete_resource().
Referenced by delete_agent_gmp(), delete_alert_gmp(), delete_config_gmp(), delete_credential_gmp(), delete_filter_gmp(), delete_group_gmp(), delete_note_gmp(), delete_override_gmp(), delete_permission_gmp(), delete_port_list_gmp(), delete_report_format_gmp(), delete_role_gmp(), delete_scanner_gmp(), delete_schedule_gmp(), delete_tag_gmp(), delete_target_gmp(), delete_task_gmp(), delete_ticket_gmp(), and delete_user_gmp().


| char* move_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Reassign a task to a new GMP slave.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3250 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gsad_message(), params_value(), and response_from_entity().

|
static |
Returns page to create a new alert.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5211 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp(), and gsad_message().
Referenced by new_alert_gmp().


| char* new_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new alert.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5418 of file gsad_gmp.c.
References new_alert().

|
static |
Toggle overrides.
| [in] | params | Request parameters. |
| [in] | overrides | New overrides value. |
Definition at line 3456 of file gsad_gmp.c.
References params_add(), params_get(), param::valid, param::valid_utf8, param::value, and param::value_size.
Referenced by get_reports(), get_results(), and get_tasks().


| char* ping_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get assets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19179 of file gsad_gmp.c.
References action_result().

| char* renew_session_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 19150 of file gsad_gmp.c.
References action_result(), credentials_get_user(), session_add_user(), user_get_session_timeout(), user_get_token(), and user_renew_session().

| char* report_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Run alert for a report.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10414 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), params_given(), params_value(), and response_from_entity().

| char* resource_action | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | type, | ||
| const char * | action, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Perform action on resource, get next page, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | type | Type of resource. |
| [in] | action | Action to perform. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2068 of file gsad_gmp.c.
References capitalize(), cmd_response_data_set_status_code(), gmp_success(), gmpf(), gsad_message(), params_value(), response_from_entity(), and set_http_status_from_entity().
Referenced by resume_task_gmp(), start_task_gmp(), and stop_task_gmp().


|
static |
Set redirect or return a basic action_result page based on entity.
| [in] | connection | Connection to manager |
Definition at line 1023 of file gsad_gmp.c.
References action_result(), gmp_success(), and set_http_status_from_entity().
Referenced by bulk_delete_gmp(), check_modify_config(), clone_gmp(), create_agent_gmp(), create_alert_gmp(), create_asset_gmp(), create_config_gmp(), create_container_task_gmp(), create_credential_gmp(), create_filter_gmp(), create_group_gmp(), create_host_gmp(), create_note_gmp(), create_override_gmp(), create_permission_gmp(), create_port_list_gmp(), create_port_range_gmp(), create_report_gmp(), create_role_gmp(), create_scanner_gmp(), create_schedule_gmp(), create_tag_gmp(), create_target_gmp(), create_task_gmp(), create_ticket_gmp(), create_user_gmp(), delete_asset_gmp(), delete_resource(), empty_trashcan_gmp(), import_config_gmp(), import_port_list_gmp(), import_report_format_gmp(), move_task_gmp(), report_alert_gmp(), resource_action(), restore_gmp(), run_wizard_gmp(), save_agent_gmp(), save_alert_gmp(), save_asset_gmp(), save_auth_gmp(), save_container_task_gmp(), save_credential_gmp(), save_filter_gmp(), save_group_gmp(), save_note_gmp(), save_override_gmp(), save_permission_gmp(), save_port_list_gmp(), save_report_format_gmp(), save_role_gmp(), save_scanner_gmp(), save_schedule_gmp(), save_setting_gmp(), save_tag_gmp(), save_target_gmp(), save_task_gmp(), save_ticket_gmp(), save_user_gmp(), sync_feed(), test_alert_gmp(), toggle_tag_gmp(), verify_agent_gmp(), verify_report_format_gmp(), and verify_scanner_gmp().

| char* restore_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Restore a resource, get all trash, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6974 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), params_value(), and response_from_entity().

| char* resume_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Resume a task, get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3214 of file gsad_gmp.c.
References resource_action().

| char* run_wizard_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Run a wizard and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13019 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), and param::value.

| char* save_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a agent, get all agents, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4753 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify an alert, get all alerts, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6427 of file gsad_gmp.c.
References append_alert_condition_data(), append_alert_event_data(), append_alert_method_data(), CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), EVENT_TYPE_NEW_SECINFO, EVENT_TYPE_UPDATED_SECINFO, gmp(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), str_equal(), and param::value.

| char* save_asset_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify an asset, get all assets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18871 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_auth_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save authentication settings.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17674 of file gsad_gmp.c.
References AUTH_CONF_SETTING, CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_users(), gmpf(), gsad_message(), GSAD_MESSAGE_INVALID_PARAM, params_given(), params_value(), and response_from_entity().

| char* save_config_family_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of an NVT for a config, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8880 of file gsad_gmp.c.
References check_modify_config(), CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), and params_values().

| char* save_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save details of an NVT for a config and return the next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8453 of file gsad_gmp.c.
References check_modify_config(), CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), member(), member1(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), save_osp_prefs(), param::value, and param::value_size.

| char* save_config_nvt_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save NVT prefs for a config, get NVT details, envelope result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9142 of file gsad_gmp.c.
References action_result(), check_modify_config(), cmd_response_data_set_status_code(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), param::value, and param::value_size.

| char* save_container_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save container task, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3059 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_credential_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save credential, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4197 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), login(), params_given(), params_value(), params_value_bool(), response_from_entity(), and str_equal().

| char* save_filter_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a filter, get all filters, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16641 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), params_value(), and response_from_entity().

| char* save_group_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a group, return the next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14290 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), response_from_entity(), and users.

| char* save_my_settings_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const gchar * | accept_language, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page with user's settings, for editing.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | accept_language | Accept-Language, from browser. |
| [out] | timezone | Timezone. Caller must free. |
| [out] | password | Password. Caller must free. |
| [out] | severity | Severity. Caller must free. |
| [out] | language | Language. Caller must free. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13317 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), credentials_get_user(), envelope_gmp(), gmp_success(), gsad_message(), params_t, params_value(), params_values(), send_settings_filters(), session_add_user(), session_remove_other_sessions(), set_http_status_from_entity(), user_get_token(), user_get_username(), user_set_language(), user_set_password(), user_set_severity(), and user_set_timezone().

| char* save_note_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save note, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11088 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_hosts_from_params(), get_port_from_params(), get_result_id_from_params(), get_severity_from_params(), get_task_id_from_params(), gmpf(), gsad_message(), params_given(), params_value(), and response_from_entity().

|
static |
Save OSP file preferences.
| [in] | connection | Connection. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | next | The next command on success. |
| [in] | fail_next | The next command on failure. |
| [out] | success | Whether the last command was successful. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8386 of file gsad_gmp.c.
References check_modify_config(), cmd_response_data_set_status_code(), gsad_message(), params_value(), param::value, and param::value_size.
Referenced by save_config_gmp().


| char* save_override_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save override, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11405 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_hosts_from_params(), get_port_from_params(), get_result_id_from_params(), get_severity_from_params(), get_task_id_from_params(), gmpf(), gsad_message(), params_given(), params_value(), and response_from_entity().

| char* save_permission_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a permission, get all permissions, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15266 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_given(), params_value(), and response_from_entity().

| char* save_port_list_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a port list, get all port list, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15610 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save report_format, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12661 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), param::value, and param::value_size.

| char* save_role_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a role, return the next page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16147 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), response_from_entity(), and users.

| char* save_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save scanner, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11806 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), is_unix_socket(), params_given(), params_value(), and response_from_entity().

| char* save_schedule_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save schedule, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16759 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_setting_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save user setting.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17872 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_content_type(), cmd_response_data_set_status_code(), gmp(), GSAD_CONTENT_TYPE_APP_XML, gsad_message(), params_given(), params_value(), and response_from_entity().

| char* save_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a tag, get all tags, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7228 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), and param::value.

| char* save_target_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a target, get all targets, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7608 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), params_value(), response_from_entity(), and str_equal().

| char* save_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save task, get next page, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2828 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_valid(), params_value(), params_values(), response_from_entity(), and param::value.

| char* save_ticket_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a ticket.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19059 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* save_user_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a user, get all users, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17313 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), credentials_get_user(), gmp(), gmp_success(), gsad_message(), login(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), response_from_entity(), session_get_user_by_username(), session_remove_other_sessions(), str_equal(), user_get_token(), user_get_username(), user_set_password(), user_set_username(), and param::value.

|
static |
Send settings resource filters.
| [in] | connection | Connection to Manager. |
| [in] | data | Data. |
| [in] | changed | Params indicating which settings changed. |
| [out] | xml | GString to write responses to. |
| [out] | modify_failed_flag | Pointer to an int to set to 1 on failure to modify one of the settings. |
Definition at line 13244 of file gsad_gmp.c.
References gmp_success(), params_iterator_init, params_iterator_next(), params_iterator_t, params_value(), set_http_status_from_entity(), and param::value.
Referenced by save_my_settings_gmp().


| void set_http_status_from_entity | ( | entity_t | entity, |
| cmd_response_data_t * | response_data | ||
| ) |
Set the HTTP status according to GMP response entity.
| [in] | entity | The GMP response entity. |
| [in] | response_data | Response data. |
Definition at line 677 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), and str_equal().
Referenced by delete_resource(), export_many(), export_resource(), get_aggregate_gmp(), get_one(), get_report(), resource_action(), response_from_entity(), save_my_settings_gmp(), send_settings_filters(), setting_get_value(), and simple_gmpf().


|
static |
Get a setting by UUID for the current user of an GMP connection.
| [in] | connection | Connection. |
| [in] | setting_id | UUID of the setting to get. |
| [out] | value | Value of the setting. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 888 of file gsad_gmp.c.
References set_http_status_from_entity().
Referenced by authenticate_gmp(), export_many(), export_resource(), and get_report().


|
static |
Run a single GMP command, preparing a response even on error.
| [in] | connection | Connection to manager |
| [out] | message_operation | Operation for error message |
| [in] | credentials | Username and password for authentication. |
| [out] | response | Response. |
| [out] | response_data | Extra data return for the HTTP response. |
| [in] | format | Command. |
| [in] | ... | Arguments for format string. |
Definition at line 749 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmp(), gmp_success(), gsad_message(), and set_http_status_from_entity().
Referenced by get_info().


| char* start_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Start a task, get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3232 of file gsad_gmp.c.
References resource_action().

| char* stop_task_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Stop a task, get all tasks, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3196 of file gsad_gmp.c.
References resource_action().

| char* sync_cert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with a CERT feed and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16392 of file gsad_gmp.c.
References sync_feed().

| char* sync_config_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Sync config, get configs, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8326 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_configs(), gsad_message(), and params_value().

|
static |
Synchronize with a feed and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [in] | sync_cmd | Name of the GMP command used to sync the feed. |
| [in] | action | Action shown in gsad status messages. |
| [in] | feed_name | Name of the feed shown in error messages. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16299 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), and response_from_entity().
Referenced by sync_cert_gmp(), sync_feed_gmp(), and sync_scap_gmp().


| char* sync_feed_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with an NVT feed and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16356 of file gsad_gmp.c.
References sync_feed().

| char* sync_scap_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with a SCAP feed and envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16374 of file gsad_gmp.c.
References sync_feed().

| char* test_alert_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Test an alert, get all alerts envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6566 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gsad_message(), GSAD_STATUS_INVALID_REQUEST, params_value(), and response_from_entity().

| char* toggle_tag_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Set tag enabled status.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7466 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gsad_message(), params_value(), and response_from_entity().

| char* verify_agent_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify agent, get agents, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4906 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* verify_report_format_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify report format, get report formats, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12939 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

| char* verify_scanner_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify scanner, get scanners, envelope the result.
| [in] | connection | Connection to manager. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11626 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), and response_from_entity().

|
static |
Returns a wizard page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18016 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().
Referenced by wizard_gmp().


|
static |
Returns a wizard_get page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18135 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp(), gsad_message(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.
Referenced by wizard_get_gmp().


| char* wizard_get_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns a wizard_get page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18243 of file gsad_gmp.c.
References wizard_get().

| char* wizard_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns a wizard page.
| [in] | connection | Connection to manager. |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18117 of file gsad_gmp.c.
References wizard().

| gchar* manager_address = NULL |
The address the manager is on.
Definition at line 135 of file gsad_gmp.c.
Referenced by authenticate_gmp(), gmp_init(), and manager_connect().
| int manager_port = 9390 |
The port the manager is on.
Definition at line 140 of file gsad_gmp.c.
Referenced by authenticate_gmp(), gmp_init(), and manager_connect().
| int manager_use_tls = 0 |
Whether to use TLS for Manager connections.
Definition at line 130 of file gsad_gmp.c.
Referenced by gmp_init(), and gvm_connection_open().