|
Greenbone Security Assistant
9.0.1
|
GMP communication module of Greenbone Security Assistant daemon. More...
#include "gsad_gmp.h"#include "gsad_base.h"#include "gsad_credentials.h"#include "gsad_gmp_arguments.h"#include "gsad_gmp_request.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 | XML_REPORT_FORMAT_ID "a994b278-1f62-11e1-96ac-406186ea4fc5" |
| #define | ANONXML_REPORT_FORMAT_ID "5057e5cc-b825-11e4-9d0e-28d24461215b" |
| #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 | INCLUDE_RELATED_CURRENT_RESOURCE_ONLY 0 |
| #define | INCLUDE_RELATED_ALL_RESOURCES 1 |
| #define | INCLUDE_RELATED_RESOURCES_ONLY 2 |
| #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 * | 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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 * | 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 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 | 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_entity (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, gmp_arguments_t *arguments, cmd_response_data_t *response_data) |
| Get a single entity, envelope the result. More... | |
| char * | get_one (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, const char *extra_xml, gmp_arguments_t *arguments, cmd_response_data_t *response_data) |
| Get one resource, envelope the result. More... | |
| static char * | get_entities (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, gmp_arguments_t *arguments, cmd_response_data_t *response_data) |
| Get all entities of a particular type, envelope the result. More... | |
| static char * | get_many (gvm_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, gmp_arguments_t *arguments, 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_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get info, envelope the result. 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... | |
| char * | get_alerts (gvm_connection_t *connection, credentials_t *, params_t *, const char *, cmd_response_data_t *) |
| 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 * | 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... | |
| 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 * | get_nvt_families_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all nvt_families, 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 * | 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 * | 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) |
| Request assets. 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 * | get_tls_certificates_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all TLS certificates, envelope the result. More... | |
| char * | get_tls_certificate_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get single TLS certificates, envelope the result. More... | |
| char * | create_tls_certificate_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a TLS certificate. More... | |
| char * | save_tls_certificate_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a TLS certificate. More... | |
| char * | delete_tls_certificate_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a TLS certificate. 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... | |
| char * | get_capabilities_gmp (gvm_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| 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 ANONXML_REPORT_FORMAT_ID "5057e5cc-b825-11e4-9d0e-28d24461215b" |
Definition at line 145 of file gsad_gmp.c.
| #define AUTH_CONF_SETTING | ( | key, | |
| value | |||
| ) |
Generate AUTH_CONF_SETTING element for save_auth_gmp.
Definition at line 15362 of file gsad_gmp.c.
| #define CHECK_GMPF_RET |
Definition at line 12800 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 121 of file gsad_gmp.c.
| #define EVENT_TYPE_ASSIGNED_TICKET_CHANGED "Assigned ticket changed" |
Definition at line 4917 of file gsad_gmp.c.
| #define EVENT_TYPE_NEW_SECINFO "New SecInfo arrived" |
Definition at line 4913 of file gsad_gmp.c.
| #define EVENT_TYPE_OWNED_TICKET_CHANGED "Owned ticket changed" |
Definition at line 4918 of file gsad_gmp.c.
| #define EVENT_TYPE_TASK_RUN_STATUS_CHANGED "Task run status changed" |
Definition at line 4915 of file gsad_gmp.c.
| #define EVENT_TYPE_TICKET_RECEIVED "Ticket received" |
Definition at line 4916 of file gsad_gmp.c.
| #define EVENT_TYPE_UPDATED_SECINFO "Updated SecInfo arrived" |
Definition at line 4914 of file gsad_gmp.c.
| #define FILT_ID_NONE "0" |
filt_id value to use term or built-in default filter.
Definition at line 108 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 113 of file gsad_gmp.c.
| #define G_LOG_DOMAIN "gsad gmp" |
GLib log domain.
Definition at line 67 of file gsad_gmp.c.
| #define GET_TRASH_RESOURCE | ( | capability, | |
| command, | |||
| name | |||
| ) |
Definition at line 11385 of file gsad_gmp.c.
| #define GSAD_MESSAGE_INVALID |
Answer for invalid input.
Definition at line 75 of file gsad_gmp.c.
| #define GSAD_MESSAGE_INVALID_PARAM | ( | op | ) |
Answer for invalid input.
Definition at line 85 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 98 of file gsad_gmp.c.
| #define INCLUDE_RELATED_ALL_RESOURCES 1 |
Definition at line 12850 of file gsad_gmp.c.
| #define INCLUDE_RELATED_CURRENT_RESOURCE_ONLY 0 |
Definition at line 12849 of file gsad_gmp.c.
| #define INCLUDE_RELATED_RESOURCES_ONLY 2 |
Definition at line 12851 of file gsad_gmp.c.
| #define OPENVASMD_ADDRESS "127.0.0.1" |
Manager (gvmd) address.
Definition at line 72 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 1887 of file gsad_gmp.c.
| #define RESULTS_PER_PAGE 100 |
Initial filtered results per page on the report summary.
Definition at line 103 of file gsad_gmp.c.
| #define XML_REPORT_FORMAT_ID "a994b278-1f62-11e1-96ac-406186ea4fc5" |
Definition at line 144 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 725 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 4957 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 4929 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 5007 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 14943 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 17223 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 15965 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 16071 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 440 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 6078 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 261 of file gsad_gmp.c.
References credentials_get_user(), and user_get_capabilities().
Referenced by auth_settings_gmp(), edit_alert(), get_system_reports_gmp(), and get_user().


| int connect_unix | ( | const gchar * | path | ) |
Connect to Greenbone Vulnerability Manager daemon.
| [in] | path | Path to the Manager socket. |
Definition at line 17146 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 3926 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 5173 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, FILT_ID_NONE, 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 16311 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 7061 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 2037 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 3082 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 14306 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_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 12406 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 16125 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 9426 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 9703 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 12705 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_add(), params_given(), params_value(), response_from_entity(), and str_equal().

| 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 12864 of file gsad_gmp.c.
References action_result(), CHECK_GMPF_RET, CHECK_VARIABLE_INVALID, gmpf(), INCLUDE_RELATED_CURRENT_RESOURCE_ONLY, INCLUDE_RELATED_RESOURCES_ONLY, 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 13380 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 13461 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. |
Create a report, 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 1926 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmp(), gsad_message(), message_invalid(), 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 13812 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 10114 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 10446 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 6305 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 5878 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 2121 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 16620 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_tls_certificate_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a TLS 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 16859 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), params_value_size(), 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 14763 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 15279 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 4061 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 5309 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 16385 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 8147 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 3662 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 14382 of file gsad_gmp.c.
References move_resource_to_trash().

| 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 1723 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 12388 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 9525 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 9828 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 12687 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 13684 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 13702 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 10915 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 8448 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 1596 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 13794 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 10211 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 10527 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 6420 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 6165 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 2454 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 16779 of file gsad_gmp.c.
References move_resource_to_trash().

| char* delete_tls_certificate_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a TLS 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 17033 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 14638 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 4082 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 9086 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 3420 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 9119 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 9045 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 5388 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 5616 of file gsad_gmp.c.
References edit_alert().

| 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 7739 of file gsad_gmp.c.
References get_config_family().

| 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 1102 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().

| 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 6250 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 319 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_client_address(), 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_capabilities_gmp(), get_config_family(), get_config_nvt_gmp(), get_entities(), get_entity(), get_feeds_gmp(), 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 4452 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 4471 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 5842 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 5861 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 16472 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 16491 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 8165 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 8184 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 3606 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 3625 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 14400 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 14419 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 12507 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 12526 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 1419 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 8201 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 8220 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 8237 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 8256 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 13236 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 13255 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 8275 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 8294 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 8312 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 8409 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 8429 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 1267 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 9154 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 9173 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 13945 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 13964 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 10012 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 10030 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 14518 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 14536 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 6566 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 6585 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 7025 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 7044 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 2804 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 2823 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 15253 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 15272 of file gsad_gmp.c.
References export_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 1182 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 4323 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 4342 of file gsad_gmp.c.
References get_agent().

| 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 4359 of file gsad_gmp.c.
References get_many().

| 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 4488 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), FILT_ID_NONE, 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(), str_equal(), 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 5328 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 5352 of file gsad_gmp.c.
References get_alert().

| char* get_alerts | ( | gvm_connection_t * | connection, |
| credentials_t * | , | ||
| params_t * | , | ||
| const char * | , | ||
| cmd_response_data_t * | |||
| ) |
| 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 5369 of file gsad_gmp.c.
References get_many().

|
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 16212 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), get_one(), gmp_arguments_add(), gmp_arguments_new(), gsad_message(), and params_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 16258 of file gsad_gmp.c.
References get_asset().

| char* get_assets_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
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 16276 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_many(), gmp_arguments_add(), gmp_arguments_new(), and params_value().

| char* get_capabilities_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 17079 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp_success(), gsad_message(), and set_http_status_from_entity().

|
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 7605 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_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 7722 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 7250 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().

| 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 7844 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), envelope_gmp(), gsad_message(), and params_value().

| 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 7219 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_many(), gmp_arguments_add(), gmp_arguments_new(), params_given(), and params_value().

|
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 3378 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 3400 of file gsad_gmp.c.
References get_credential().

| 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 3644 of file gsad_gmp.c.
References get_many().

|
static |
Get all entities of a particular type, envelope the result.
| [in] | connection | Connection to manager |
| [in] | type | Entity type. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [in] | arguments | Extra arguments for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 964 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp_arguments_free(), gmp_request(), gmp_success(), gsad_message(), and set_http_status_from_entity().
Referenced by get_many(), get_nvt_families_gmp(), and get_reports_gmp().


| char* get_entity | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gmp_arguments_t * | arguments, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a single entity, 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] | arguments | Extra arguments for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 820 of file gsad_gmp.c.
References cmd_response_data_set_status_code(), envelope_gmp(), gmp_arguments_free(), gmp_request(), gmp_success(), gsad_message(), set_http_status_from_entity(), and str_equal().
Referenced by get_info_gmp(), and get_one().


| 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 14065 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 14247 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 14271 of file gsad_gmp.c.
References get_filter().

| 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 14288 of file gsad_gmp.c.
References get_many().

|
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 12334 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 12353 of file gsad_gmp.c.
References get_group().

| 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 12370 of file gsad_gmp.c.
References get_many().

| const char* get_hosts_from_params | ( | params_t * | params | ) |
Get hosts from request params.
| [in] | params | Request parameters. |
Definition at line 9323 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_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 2968 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_entity(), get_many(), gmp_arguments_add(), gmp_arguments_new(), and params_value().

|
static |
Get all of a particular type of resource, envelope the result.
| [in] | connection | Connection to manager |
| [in] | type | Resource type in plural form. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | arguments | Extra arguments for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1048 of file gsad_gmp.c.
References FILT_ID_USER_SETTING, get_entities(), gmp_arguments_add(), gmp_arguments_new(), params_value(), and str_equal().
Referenced by get_agents_gmp(), get_alerts_gmp(), get_assets_gmp(), get_configs_gmp(), get_credentials_gmp(), get_filters_gmp(), get_groups_gmp(), get_info_gmp(), get_notes_gmp(), get_overrides_gmp(), get_permissions_gmp(), get_port_lists_gmp(), get_report_formats_gmp(), get_results_gmp(), get_roles_gmp(), get_scanners_gmp(), get_schedules_gmp(), get_tags_gmp(), get_targets_gmp(), get_tasks_gmp(), get_tickets_gmp(), get_tls_certificates_gmp(), get_users_gmp(), and get_vulns_gmp().


|
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 9259 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 9283 of file gsad_gmp.c.
References get_note().

| 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 9240 of file gsad_gmp.c.
References get_many().

| char* get_nvt_families_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all nvt_families, 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 7911 of file gsad_gmp.c.
References get_entities().

| char* get_one | ( | gvm_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| gmp_arguments_t * | arguments, | ||
| 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] | arguments | Extra arguments for GMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 913 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_entity(), gmp_arguments_add(), gmp_arguments_new(), params_value(), and str_equal().
Referenced by get_agent(), get_alert(), get_asset(), get_config_gmp(), 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(), get_tls_certificate_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 9662 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 9686 of file gsad_gmp.c.
References get_override().

| 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 9643 of file gsad_gmp.c.
References get_many().

|
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 12628 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 12652 of file gsad_gmp.c.
References get_permission().

| 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 12669 of file gsad_gmp.c.
References get_many().

| const char* get_port_from_params | ( | params_t * | params | ) |
Get a port from request params.
| [in] | params | Request parameters. |
Definition at line 9297 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 13545 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 13570 of file gsad_gmp.c.
References get_port_list().

| 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 13587 of file gsad_gmp.c.
References get_many().

| 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 8469 of file gsad_gmp.c.
References ANONXML_REPORT_FORMAT_ID, 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_NONE, format_file_name(), gmp_success(), gsad_message(), params_value(), params_value_bool(), set_http_status_from_entity(), setting_get_value(), str_equal(), and XML_REPORT_FORMAT_ID.
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 10853 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 10878 of file gsad_gmp.c.
References get_report_format().

| 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 10896 of file gsad_gmp.c.
References get_many().

| 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 8867 of file gsad_gmp.c.
References get_report().

| 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 8990 of file gsad_gmp.c.
References FILT_ID_USER_SETTING, get_entities(), gmp_arguments_add(), gmp_arguments_new(), params_remove(), params_value(), and str_equal().

| 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 9222 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 9401 of file gsad_gmp.c.
References params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_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 9190 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_many(), gmp_arguments_add(), gmp_arguments_new(), params_given(), and params_value().

|
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 13891 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 13910 of file gsad_gmp.c.
References get_role().

| 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 13927 of file gsad_gmp.c.
References get_many().

|
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 9976 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 9995 of file gsad_gmp.c.
References get_scanner().

| 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 9957 of file gsad_gmp.c.
References get_many().

|
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 10387 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 10411 of file gsad_gmp.c.
References get_schedule().

| 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 10428 of file gsad_gmp.c.
References get_many().

| char* get_setting_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 15664 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 15504 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 9378 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 10736 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, 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 10545 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 6603 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 6622 of file gsad_gmp.c.
References get_tag().

| 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 6639 of file gsad_gmp.c.
References get_many().

|
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 6726 of file gsad_gmp.c.
References get_one(), gmp_arguments_add(), and gmp_arguments_new().
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 6750 of file gsad_gmp.c.
References get_target().

| 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 6767 of file gsad_gmp.c.
References get_many().

| 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 3064 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 9358 of file gsad_gmp.c.
References params_value().
Referenced by create_note_gmp(), create_override_gmp(), save_note_gmp(), and save_override_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 3020 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_many(), gmp_arguments_add(), gmp_arguments_new(), params_given(), and params_value().

| 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 16602 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 16584 of file gsad_gmp.c.
References get_many().

| char* get_tls_certificate_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get single TLS certificates, 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 16828 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_one(), gmp_arguments_add(), gmp_arguments_new(), params_given(), and params_value().

| char* get_tls_certificates_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all TLS certificates, 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 16797 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, get_many(), gmp_arguments_add(), gmp_arguments_new(), params_given(), and params_value().

|
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 11431 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 11498 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 14657 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 14728 of file gsad_gmp.c.
References get_user().

| 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 14745 of file gsad_gmp.c.
References get_many().

| 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 14935 of file gsad_gmp.c.
References get_many().

|
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 576 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_user(), 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(), 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 277 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 526 of file gsad_gmp.c.
Referenced by check_modify_config(), create_task_gmp(), delete_resource(), export_many(), export_resource(), get_aggregate_gmp(), get_capabilities_gmp(), get_entities(), get_entity(), get_report(), resource_action(), response_from_entity(), save_my_settings_gmp(), save_user_gmp(), and send_settings_filters().

|
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 619 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(), create_tls_certificate_gmp(), 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(), save_tls_certificate_gmp(), verify_agent_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 17185 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 7147 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 13720 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 10934 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 2020 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 17345 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 17444 of file gsad_gmp.c.
References 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 390 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 412 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 764 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(), delete_resource(), and save_auth_gmp().


| 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 1703 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(), delete_tls_certificate_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 2894 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 4696 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 4903 of file gsad_gmp.c.
References new_alert().

| 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 17071 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 17042 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 8884 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 1749 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 783 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_tls_certificate_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_tls_certificate_gmp(), save_user_gmp(), sync_feed(), test_alert_gmp(), toggle_tag_gmp(), verify_agent_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 6184 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 2858 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 11291 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 4243 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 5633 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, FILT_ID_NONE, 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 16508 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 15379 of file gsad_gmp.c.
References AUTH_CONF_SETTING, CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), message_invalid(), 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 7757 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 7346 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 7929 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 2703 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 3680 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 14436 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 12543 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 11589 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 9543 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 7279 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 9846 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 13274 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 13605 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 11010 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 13981 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 10229 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 14554 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 15577 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 6438 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 6785 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 2472 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 16696 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_tls_certificate_gmp | ( | gvm_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a TLS 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 16945 of file gsad_gmp.c.
References CHECK_VARIABLE_INVALID, cmd_response_data_set_status_code(), gmpf(), gsad_message(), params_value(), params_value_size(), 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 15018 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 11516 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 547 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_capabilities_gmp(), get_entities(), get_entity(), get_report(), resource_action(), response_from_entity(), save_my_settings_gmp(), send_settings_filters(), and setting_get_value().


|
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 648 of file gsad_gmp.c.
References set_http_status_from_entity().
Referenced by authenticate_gmp(), export_many(), export_resource(), and get_report().


| 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 2876 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 2840 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 14226 of file gsad_gmp.c.
References sync_feed().

|
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 14133 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 14190 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 14208 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 5776 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 6657 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 4377 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 10048 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 15721 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 15840 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 15948 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 15822 of file gsad_gmp.c.
References wizard().

| gchar* manager_address = NULL |
The address the manager is on.
Definition at line 137 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 142 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 132 of file gsad_gmp.c.
Referenced by gmp_init(), and gvm_connection_open().