Greenbone Security Assistant
|
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>
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_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 * | 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 **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.
#define ANONXML_REPORT_FORMAT_ID "5057e5cc-b825-11e4-9d0e-28d24461215b" |
#define AUTH_CONF_SETTING | ( | key, | |
value | |||
) |
Generate AUTH_CONF_SETTING element for save_auth_gmp.
#define CHECK_GMPF_RET |
#define CHECK_VARIABLE_INVALID | ( | name, | |
op_name | |||
) |
Check if variable is NULL.
[in] | name | Param name. |
[in] | op_name | Operation name. |
#define EVENT_TYPE_ASSIGNED_TICKET_CHANGED "Assigned ticket changed" |
#define EVENT_TYPE_NEW_SECINFO "New SecInfo arrived" |
#define EVENT_TYPE_OWNED_TICKET_CHANGED "Owned ticket changed" |
#define EVENT_TYPE_TASK_RUN_STATUS_CHANGED "Task run status changed" |
#define EVENT_TYPE_TICKET_RECEIVED "Ticket received" |
#define EVENT_TYPE_UPDATED_SECINFO "Updated SecInfo arrived" |
#define FILT_ID_NONE "0" |
filt_id value to use term or built-in default filter.
#define FILT_ID_USER_SETTING "-2" |
filt_id value to use the filter in the user setting if possible.
#define G_LOG_DOMAIN "gsad gmp" |
GLib log domain.
#define GET_TRASH_RESOURCE | ( | capability, | |
command, | |||
name | |||
) |
#define GSAD_MESSAGE_INVALID |
Answer for invalid input.
#define GSAD_MESSAGE_INVALID_PARAM | ( | op | ) |
Answer for invalid input.
#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.
#define INCLUDE_RELATED_ALL_RESOURCES 1 |
#define INCLUDE_RELATED_CURRENT_RESOURCE_ONLY 0 |
#define INCLUDE_RELATED_RESOURCES_ONLY 2 |
#define OPENVASMD_ADDRESS "127.0.0.1" |
Manager (gvmd) address.
#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.
[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. |
#define RESULTS_PER_PAGE 100 |
Initial filtered results per page on the report summary.
#define XML_REPORT_FORMAT_ID "a994b278-1f62-11e1-96ac-406186ea4fc5" |
|
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). |
|
static |
Send condition data for an alert.
[in] | xml | XML. |
[out] | data | Data. |
[out] | condition | Condition. |
|
static |
Send event data for an alert.
[in] | xml | XML. |
[out] | data | Data. |
[out] | event | Event. |
|
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. |
char* auth_settings_gmp | ( | gvm_connection_t * | connection, |
credentials_t * | credentials, | ||
params_t * | params, | ||
cmd_response_data_t * | response_data | ||
) |
int authenticate_gmp | ( | const gchar * | username, |
const gchar * | password, | ||
gchar ** | role, | ||
gchar ** | timezone, | ||
gchar ** | capabilities, | ||
gchar ** | language, | ||
gchar ** | pw_warning | ||
) |
Check authentication credentials.
[in] | username | Username. |
[in] | password | Password. |
[out] | role | Role. |
[out] | timezone | Timezone. |
[out] | capabilities | Capabilities of manager. |
[out] | language | User Interface Language, or NULL. |
[out] | pw_warning | Password warning message, NULL if password is OK. |
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. |
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. |
|
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. |
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. |
int command_enabled | ( | credentials_t * | credentials, |
const gchar * | name | ||
) |
Init the GSA GMP library.
[in] | credentials | Credentials. |
[in] | name | Command name. |
int connect_unix | ( | const gchar * | path | ) |
Connect to Greenbone Vulnerability Manager daemon.
[in] | path | Path to the Manager socket. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
char* cvss_calculator | ( | gvm_connection_t * | connection, |
credentials_t * | credentials, | ||
params_t * | params, | ||
cmd_response_data_t * | response_data | ||
) |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
char* get_capabilities_gmp | ( | gvm_connection_t * | connection, |
credentials_t * | credentials, | ||
params_t * | params, | ||
cmd_response_data_t * | response_data | ||
) |
|
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
const char* get_hosts_from_params | ( | params_t * | params | ) |
Get hosts from request params.
[in] | params | Request parameters. |
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. |
|
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. |
|
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
const char* get_port_from_params | ( | params_t * | params | ) |
Get a port from request params.
[in] | params | Request parameters. |
|
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
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. |
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. |
const char* get_result_id_from_params | ( | params_t * | params | ) |
Get result_id from request params.
[in] | params | Request parameters. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
char* get_setting_gmp | ( | gvm_connection_t * | connection, |
credentials_t * | credentials, | ||
params_t * | params, | ||
cmd_response_data_t * | response_data | ||
) |
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. |
const char* get_severity_from_params | ( | params_t * | params | ) |
Get severity from request params.
[in] | params | Request parameters. |
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. |
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. |
|
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
const char* get_task_id_from_params | ( | params_t * | params | ) |
Get task_id from request params.
[in] | params | Request parameters. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
|
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. |
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. |
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. |
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. |
|
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. |
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. |
|
static |
Check whether an GMP command failed.
[in] | entity | Response entity. |
|
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. |
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. |
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. |
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. |
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. |
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. |
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 |
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. |
|
static |
Look for a param with name equal to a given string.
[in] | params | Params. |
[in] | string | String. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
char* renew_session_gmp | ( | gvm_connection_t * | connection, |
credentials_t * | credentials, | ||
params_t * | params, | ||
cmd_response_data_t * | response_data | ||
) |
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. |
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. |
|
static |
Set redirect or return a basic action_result page based on entity.
[in] | connection | Connection to manager |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
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. |
|
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. |
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. |
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. |
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. |
|
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. |
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. |
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. |
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. |
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. |
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. |
|
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. |
|
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. |
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. |
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. |
gchar* manager_address = NULL |
The address the manager is on.
int manager_port = 9390 |
The port the manager is on.
int manager_use_tls = 0 |
Whether to use TLS for Manager connections.