|
Greenbone Security Assistant
7.0.3~git
|
OMP communication module of Greenbone Security Assistant daemon. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <glib.h>#include <netinet/in.h>#include <netdb.h>#include <sys/socket.h>#include <sys/un.h>#include <sys/time.h>#include <arpa/inet.h>#include <unistd.h>#include <fcntl.h>#include <assert.h>#include <time.h>#include <microhttpd.h>#include "gsad_base.h"#include "gsad_omp.h"#include "xslt_i18n.h"#include <openvas/misc/openvas_server.h>#include <openvas/base/openvas_file.h>#include <openvas/base/cvss.h>#include <openvas/omp/omp.h>#include <openvas/omp/xml.h>#include <libxml2/libxml/xmlmemory.h>#include <libxml2/libxml/HTMLtree.h>#include <libxml2/libxml/xmlIO.h>#include <libxml2/libxml/xinclude.h>#include <libxslt/xslt.h>#include <libxslt/xsltInternals.h>#include <libxslt/transform.h>#include <libxslt/xsltutils.h>
Go to the source code of this file.
Data Structures | |
| struct | find_by_value_t |
| Structure to search a key by value. More... | |
Macros | |
| #define | G_LOG_DOMAIN "gsad omp" |
| GLib log domain. More... | |
| #define | OPENVASMD_ADDRESS "127.0.0.1" |
| Manager (openvasmd) address. More... | |
| #define | CHECK_PARAM(name, op_name, ret_func) |
| Check a param. More... | |
| #define | CHECK_PARAM_INVALID(name, op_name, next_cmd) |
| Check a param using the direct response method. More... | |
| #define | PARAM_OR_SETTING(value, param, setting_id, cleanup) |
| Get a value from a param or fall back to a setting. More... | |
| #define | CHECK(name) CHECK_PARAM_INVALID (name, "Create Task", "new_task") |
| Check a param. More... | |
| #define | CHECK(name) |
| Check a param. More... | |
| #define | GET_TRASH_RESOURCE(capability, command, name) |
| #define | CHECK_OMPF_RET |
| #define | AUTH_CONF_SETTING(key, value) |
| Generate AUTH_CONF_SETTING element for save_auth_omp. More... | |
Functions | |
| int | token_user_remove (const char *) |
| Remove a user from the session "database", releasing the user_t too. More... | |
| int | command_enabled (credentials_t *credentials, const gchar *name) |
| Init the GSA OMP library. More... | |
| void | omp_init (const gchar *manager_address_unix, const gchar *manager_address_tls, int port_manager) |
| Init the GSA OMP library. More... | |
| void | cmd_response_data_init (cmd_response_data_t *data) |
| Initializes a cmd_response_data_t struct. More... | |
| void | cmd_response_data_reset (cmd_response_data_t *data) |
| Clears a cmd_response_data_t struct. More... | |
| void | init_find_by_value (find_by_value_t *find, gchar *value) |
| void | free_find_by_value (find_by_value_t *find) |
| int | member1 (params_t *params, const char *string) |
| Look for param with value 1 and name equal to given string. More... | |
| void | set_http_status_from_entity (entity_t entity, cmd_response_data_t *response_data) |
| Set the HTTP status according to OMP response entity. More... | |
| gchar * | message_invalid (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data, const char *message, const char *status, const char *op_name, const char *next_cmd) |
| Check a param using the direct response method. More... | |
| char * | get_one (openvas_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, const char *extra_xml, const char *extra_attribs, cmd_response_data_t *response_data) |
| Get one resource, XSL transform the result. More... | |
| char * | edit_resource (openvas_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, XSL transform 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 (openvas_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a resource. More... | |
| char * | delete_resource (openvas_connection_t *connection, const char *type, credentials_t *credentials, params_t *params, int ultimate, const char *get, cmd_response_data_t *response_data) |
| Delete a resource, get all resources, XSL transform the result. More... | |
| char * | resource_action (openvas_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, XSL transform result. More... | |
| char * | new_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new task. More... | |
| char * | new_container_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new task. More... | |
| char * | upload_report_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the upload report page. More... | |
| char * | create_report_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a report, get all tasks, XSL transform the result. More... | |
| char * | import_report_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import report, get all reports, XSL transform the result. More... | |
| char * | create_container_task_omp (openvas_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_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a task, get all tasks, XSL transform the result. More... | |
| char * | delete_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a task, get all tasks, XSL transform the result. More... | |
| char * | edit_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_task XML, XSL transform the result. More... | |
| char * | save_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save task, get next page, XSL transform the result. More... | |
| char * | save_container_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save container task, get next page, XSL transform the result. More... | |
| char * | export_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a task. More... | |
| char * | export_tasks_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of tasks. More... | |
| char * | stop_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Stop a task, get all tasks, XSL transform the result. More... | |
| char * | resume_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Resume a task, get all tasks, XSL transform the result. More... | |
| char * | start_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Start a task, get all tasks, XSL transform the result. More... | |
| char * | move_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Reassign a task to a new OMP slave. More... | |
| char * | get_info (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Requests SecInfo. More... | |
| char * | get_info_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get info, XSL transform the result. More... | |
| char * | get_nvts_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Requests NVT details, accepting extra commands. More... | |
| char * | get_tasks_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all tasks, XSL transform the result. More... | |
| char * | get_tasks_chart_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a tasks chart, XSL transform the result. More... | |
| char * | get_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a task, XSL transform the result. More... | |
| char * | create_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a credential, get all credentials, XSL transform result. More... | |
| char * | get_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one credential, XSL transform the result. More... | |
| int | download_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *result_len, char **html, char **login, cmd_response_data_t *response_data) |
| Export a Credential in a defined format. More... | |
| char * | export_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a Credential. More... | |
| char * | export_credentials_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of Credentials. More... | |
| char * | get_credentials_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one or all credentials, XSL transform the result. More... | |
| char * | delete_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete credential, get all credentials, XSL transform result. More... | |
| char * | new_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new Credential. More... | |
| char * | edit_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_credential XML, XSL transform the result. More... | |
| char * | save_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save credential, get next page, XSL transform the result. More... | |
| char * | new_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new agent page. More... | |
| char * | create_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an agent, get all agents, XSL transform result. More... | |
| char * | delete_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete agent, get all agents, XSL transform result. More... | |
| int | download_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *result_len, char **html, char **filename, cmd_response_data_t *response_data) |
| Get an agent, XSL transform the result. More... | |
| char * | edit_agent (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_agent XML, XSL transform the result. More... | |
| char * | edit_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_agent XML, XSL transform the result. More... | |
| char * | save_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a agent, get all agents, XSL transform the result. More... | |
| char * | get_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one agent, XSL transform the result. More... | |
| char * | get_agents_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all agents, XSL transform the result. More... | |
| char * | verify_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify agent, get agents, XSL transform the result. More... | |
| char * | export_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a agent. More... | |
| char * | export_agents_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of agents. More... | |
| char * | get_aggregate_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an aggregate of resources. More... | |
| char * | new_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new alert. More... | |
| char * | create_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an alert, get all alerts, XSL transform the result. More... | |
| char * | delete_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete an alert, get all alerts, XSL transform the result. More... | |
| char * | get_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one alert, XSL transform the result. More... | |
| char * | get_alerts_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all alerts, XSL transform the result. More... | |
| char * | edit_alert (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_alert XML, XSL transform the result. More... | |
| char * | edit_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_alert XML, XSL transform the result. More... | |
| char * | save_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify an alert, get all alerts, XSL transform the result. More... | |
| char * | test_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Test an alert, get all alerts XSL transform the result. More... | |
| char * | export_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export an alert. More... | |
| char * | export_alerts_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of alerts. More... | |
| char * | new_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new target. More... | |
| char * | create_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a target, get all targets, XSL transform the result. More... | |
| char * | clone_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Clone a resource, XSL transform the result. More... | |
| char * | delete_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a target, get all targets, XSL transform the result. More... | |
| char * | delete_trash_agent_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash agent, get all agents, XSL transform the result. More... | |
| char * | delete_trash_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash config, get all trash, XSL transform the result. More... | |
| char * | delete_trash_alert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash alert, get all trash, XSL transform the result. More... | |
| char * | delete_trash_credential_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash credential, get all trash, XSL transform the result. More... | |
| char * | delete_trash_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash report format, get all trash, XSL transform the result. More... | |
| char * | delete_trash_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash schedule, get all trash, XSL transform the result. More... | |
| char * | delete_trash_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash target, get all trash, XSL transform the result. More... | |
| char * | delete_trash_task_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash task, get all trash, XSL transform the result. More... | |
| char * | restore_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Restore a resource, get all trash, XSL transform the result. More... | |
| char * | empty_trashcan_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Empty the trashcan, get all trash, XSL transform the result. More... | |
| char * | new_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new target. More... | |
| char * | create_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a tag, get report, XSL transform the result. More... | |
| char * | delete_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete note, get next page, XSL transform the result. More... | |
| char * | delete_trash_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a note, get all notes, XSL transform the result. More... | |
| char * | edit_tag (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_tag XML, XSL transform the result. More... | |
| char * | edit_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_tag XML, XSL transform the result. More... | |
| char * | save_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a tag, get all tags, XSL transform the result. More... | |
| char * | export_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a tag. More... | |
| char * | export_tags_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of tags. More... | |
| char * | get_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one tag, XSL transform the result. More... | |
| char * | get_tags_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all tags, XSL transform the result. More... | |
| char * | toggle_tag_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Set tag enabled status. More... | |
| char * | edit_target (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_target XML, XSL transform the result. More... | |
| char * | edit_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_target XML, XSL transform the result. More... | |
| char * | get_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one target, XSL transform the result. More... | |
| char * | get_targets_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all targets, XSL transform the result. More... | |
| char * | save_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a target, get all targets, XSL transform the result. More... | |
| char * | export_target_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a target. More... | |
| char * | export_targets_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of targets. More... | |
| char * | new_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new scan config page. More... | |
| char * | upload_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the upload scan config page. More... | |
| char * | create_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create config, get all configs, XSL transform the result. More... | |
| char * | import_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import config, get all configs, XSL transform the result. More... | |
| char * | get_configs_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all scan configs, XSL transform the result. More... | |
| char * | get_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a config, XSL transform the result. More... | |
| char * | edit_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a config, XSL transform the result. More... | |
| char * | sync_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Sync config, get configs, XSL transform the result. More... | |
| char * | save_config_omp (openvas_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_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of a family for a config, XSL transform the result. More... | |
| char * | edit_config_family_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of a family for editing a config, XSL transform result. More... | |
| char * | save_config_family_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of an NVT for a config, XSL transform the result. More... | |
| char * | get_config_nvt_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get details of an NVT for a config, XSL transform the result. More... | |
| char * | edit_config_nvt_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Edit details of an NVT for a config, XSL transform the result. More... | |
| char * | save_config_nvt_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save NVT prefs for a config, get NVT details, XSL transform result. More... | |
| char * | delete_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete config, get all configs, XSL transform the result. More... | |
| char * | export_config_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a config. More... | |
| char * | export_configs_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of scan configs. More... | |
| char * | export_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a note. More... | |
| char * | export_notes_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of notes. More... | |
| char * | export_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export an override. More... | |
| char * | export_overrides_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of overrides. More... | |
| char * | export_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a Port List. More... | |
| char * | export_port_lists_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of Port Lists. More... | |
| char * | export_preference_file_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a file preference. More... | |
| char * | export_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a report format. More... | |
| char * | export_report_formats_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of Report Formats. More... | |
| char * | delete_report_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete report, get task status, XSL transform the result. More... | |
| char * | get_report_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *report_len, gchar **content_type, char **content_disposition, cmd_response_data_t *response_data) |
| Get a report and XSL transform the result. More... | |
| char * | get_reports_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all reports, XSL transform the result. More... | |
| char * | get_report_section_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a report section, XSL transform the result. More... | |
| char * | download_ssl_cert (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *response_size, cmd_response_data_t *response_data) |
| Get an SSL Certificate. More... | |
| char * | download_ca_pub (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *response_size, cmd_response_data_t *response_data) |
| Get a Scanner's CA Certificate. More... | |
| char * | download_key_pub (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gsize *response_size, cmd_response_data_t *response_data) |
| Get a Scanner's Certificate. More... | |
| char * | export_result_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a result. More... | |
| char * | export_results_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of results. More... | |
| char * | get_results_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all results, XSL transform the result. More... | |
| char * | get_result_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one result, XSL transform the result. More... | |
| char * | get_notes_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all notes, XSL transform the result. More... | |
| char * | get_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get a note, XSL transform the result. More... | |
| char * | new_note (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Return the new notes page. More... | |
| char * | new_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new notes page. More... | |
| char * | create_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a note, get report, XSL transform the result. More... | |
| char * | delete_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete note, get next page, XSL transform the result. More... | |
| char * | delete_trash_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a note, get all notes, XSL transform the result. More... | |
| char * | edit_note (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Edit note, get next page, XSL transform the result. More... | |
| char * | edit_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Edit note, get next page, XSL transform the result. More... | |
| char * | save_note_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save note, get next page, XSL transform the result. More... | |
| char * | get_overrides_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all overrides, XSL transform the result. More... | |
| char * | get_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an override, XSL transform the result. More... | |
| char * | new_override (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Return the new overrides page. More... | |
| char * | new_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new overrides page. More... | |
| char * | create_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an override, get report, XSL transform the result. More... | |
| char * | delete_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete override, get next page, XSL transform the result. More... | |
| char * | delete_trash_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a override, get all overrides, XSL transform the result. More... | |
| char * | edit_override (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Edit override, get next page, XSL transform the result. More... | |
| char * | edit_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Edit override, get next page, XSL transform the result. More... | |
| char * | save_override_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save override, get next page, XSL transform the result. More... | |
| char * | get_scanners_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all scanners, XSL transform the result. More... | |
| char * | get_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one scanner, XSL transform the result. More... | |
| char * | export_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a scanner. More... | |
| char * | export_scanners_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of scanners. More... | |
| char * | new_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new scanner page. More... | |
| char * | verify_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify scanner, get scanners, XSL transform the result. More... | |
| char * | create_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a scanner, get all scanners, XSL transform the result. More... | |
| char * | delete_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a scanner, get all scanners, XSL transform the result. More... | |
| char * | delete_trash_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash scanner, get all scanners, XSL transform the result. More... | |
| char * | edit_scanner (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_scanner XML, XSL transform the result. More... | |
| char * | edit_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_scanner XML, XSL transform the result. More... | |
| char * | save_scanner_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save scanner, get next page, XSL transform the result. More... | |
| char * | get_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one schedule, XSL transform the result. More... | |
| char * | get_schedules_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all schedules, XSL transform the result. More... | |
| char * | new_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new schedule page. More... | |
| char * | create_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a schedule, get all schedules, XSL transform the result. More... | |
| char * | delete_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a schedule, get all schedules, XSL transform the result. More... | |
| char * | get_system_reports_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all system reports, XSL transform the result. More... | |
| char * | get_system_report_omp (openvas_connection_t *connection, credentials_t *credentials, const char *url, params_t *params, enum content_type *content_type, gsize *content_length, cmd_response_data_t *response_data) |
| Return system report image. More... | |
| char * | get_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one report format, XSL transform the result. More... | |
| char * | get_report_formats_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all Report Formats, XSL transform the result. More... | |
| char * | new_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new report format page. More... | |
| char * | delete_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete report format, get report formats, XSL transform the result. More... | |
| char * | edit_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_report_format XML, XSL transform the result. More... | |
| char * | import_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import report format, get all report formats, XSL transform result. More... | |
| char * | save_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save report_format, get next page, XSL transform the result. More... | |
| char * | verify_report_format_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Verify report format, get report formats, XSL transform the result. More... | |
| char * | run_wizard_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Run a wizard and XSL transform the result. More... | |
| char * | get_trash_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all trash, XSL transform the result. More... | |
| char * | get_my_settings_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page with user's settings. More... | |
| char * | edit_my_settings_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page with user's settings, for editing. More... | |
| char * | save_my_settings_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *accept_language, char **timezone, char **password, char **severity, char **language, cmd_response_data_t *response_data) |
| Returns page with user's settings, for editing. More... | |
| char * | get_protocol_doc_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get OMP doc. More... | |
| char * | export_omp_doc_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Download the OMP doc. More... | |
| char * | get_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one group, XSL transform the result. More... | |
| char * | get_groups_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all groups, XSL transform the result. More... | |
| char * | new_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new group. More... | |
| char * | delete_trash_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a group from trash, get all groups, XSL transform the result. More... | |
| char * | delete_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a group, get all groups, XSL transform the result. More... | |
| char * | create_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a group, get all groups, XSL transform the result. More... | |
| char * | edit_group (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_group XML, XSL transform the result. More... | |
| char * | edit_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_group XML, XSL transform the result. More... | |
| char * | export_group_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a group. More... | |
| char * | export_groups_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of groups. More... | |
| char * | save_group_omp (openvas_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_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one permission, XSL transform the result. More... | |
| char * | get_permissions_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all permissions, XSL transform the result. More... | |
| char * | delete_trash_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a permission, get all permissions, XSL transform the result. More... | |
| char * | delete_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a permission, get all permissions, XSL transform the result. More... | |
| char * | new_permission (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup new_permission XML, XSL transform the result. More... | |
| char * | new_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup new_permission XML, XSL transform the result. More... | |
| char * | create_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a permission, get all permissions, XSL transform the result. More... | |
| char * | new_permissions (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup new_permissions XML, XSL transform the result. More... | |
| char * | new_permissions_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup new_permission XML, XSL transform the result. More... | |
| char * | create_permissions_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create multiple permission, get next page, XSL transform the result. More... | |
| char * | edit_permission (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_permission XML, XSL transform the result. More... | |
| char * | edit_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_permission XML, XSL transform the result. More... | |
| char * | export_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a permission. More... | |
| char * | export_permissions_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of permissions. More... | |
| char * | save_permission_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a permission, get all permissions, XSL transform the result. More... | |
| char * | upload_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the upload port list page. More... | |
| char * | create_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a port list, get all port lists, XSL transform the result. More... | |
| char * | new_port_range_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new Port Range page. More... | |
| char * | create_port_range_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Add a range to a port list, XSL transform the result. More... | |
| char * | get_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one port_list, XSL transform the result. More... | |
| char * | get_port_lists_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all port_lists, XSL transform the result. More... | |
| char * | new_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new Port List page. More... | |
| char * | edit_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_port_list XML, XSL transform the result. More... | |
| char * | save_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a port list, get all port list, XSL transform the result. More... | |
| char * | delete_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a port list, get all port lists, XSL transform the result. More... | |
| char * | delete_trash_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a trash port list, get all trash, XSL transform the result. More... | |
| char * | delete_port_range_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a port range, get the port list, XSL transform the result. More... | |
| char * | import_port_list_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Import port list, get all port_lists, XSL transform the result. More... | |
| char * | new_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new role. More... | |
| char * | delete_trash_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a role from trash, get all roles, XSL transform the result. More... | |
| char * | delete_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a role, get all roles, XSL transform the result. More... | |
| char * | create_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a role, get all roles, XSL transform the result. More... | |
| char * | edit_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_role XML, XSL transform the result. More... | |
| char * | get_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one role, XSL transform the result. More... | |
| char * | get_roles_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all roles, XSL transform the result. More... | |
| char * | export_role_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a role. More... | |
| char * | export_roles_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of roles. More... | |
| char * | save_role_omp (openvas_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_omp (openvas_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... | |
| char * | sync_feed_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with an NVT feed and XSL transform the result. More... | |
| char * | sync_scap_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with a SCAP feed and XSL transform the result. More... | |
| char * | sync_cert_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Synchronize with a CERT feed and XSL transform the result. More... | |
| char * | get_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one filter, XSL transform the result. More... | |
| char * | get_filters_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all filters, XSL transform the result. More... | |
| char * | create_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a filter, get all filters, XSL transform the result. More... | |
| char * | delete_trash_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a filter, get all filters, XSL transform the result. More... | |
| char * | delete_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a filter, get all filters, XSL transform the result. More... | |
| char * | edit_filter (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_filter XML, XSL transform the result. More... | |
| char * | edit_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_filter XML, XSL transform the result. More... | |
| char * | export_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a filter. More... | |
| char * | export_filters_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of filters. More... | |
| char * | new_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new filter. More... | |
| char * | save_filter_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify a filter, get all filters, XSL transform the result. More... | |
| char * | edit_schedule (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_schedule XML, XSL transform the result. More... | |
| char * | edit_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_schedule XML, XSL transform the result. More... | |
| char * | export_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a schedule. More... | |
| char * | export_schedules_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of schedules. More... | |
| char * | save_schedule_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save schedule, get next page, XSL transform the result. More... | |
| char * | new_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns page to create a new user. More... | |
| char * | delete_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete a user, get all users, XSL transform the result. More... | |
| char * | delete_user_confirm_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Show confirmation deleting a user, XSL transform the result. More... | |
| char * | get_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get one user, XSL transform the result. More... | |
| char * | get_users_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get all users, XSL transform the result. More... | |
| char * | create_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create a user, get all users, XSL transform the result. More... | |
| char * | edit_user (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit_user XML, XSL transform the result. More... | |
| char * | edit_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_user XML, XSL transform the result. More... | |
| char * | auth_settings_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | logout (credentials_t *credentials, const gchar *message, cmd_response_data_t *response_data) |
| Setup edit_user XML, XSL transform the result. More... | |
| char * | save_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, char **password_return, char **modified_user, int *logout_user, cmd_response_data_t *response_data) |
| Modify a user, get all users, XSL transform the result. More... | |
| char * | export_user_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a user. More... | |
| char * | export_users_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of users. More... | |
| char * | cvss_calculator (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| char * | dashboard (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Show a dashboard. More... | |
| char * | save_auth_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Save authentication settings. More... | |
| char * | save_chart_preference_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, gchar **pref_id, gchar **pref_value, cmd_response_data_t *response_data) |
| Save chart preferences. More... | |
| char * | wizard_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns a wizard page. More... | |
| char * | wizard_get_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Returns a wizard_get page. More... | |
| char * | process_bulk_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Returns a process_bulk page. More... | |
| char * | bulk_delete_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Delete multiple resources, get next page, XSL transform the result. More... | |
| char * | new_host_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Return the new host page. More... | |
| char * | create_host_omp (openvas_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_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get asset, XSL transform the result. More... | |
| char * | get_assets_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get assets, XSL transform the result. More... | |
| char * | create_asset_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Create an asset, get report, XSL transform the result. More... | |
| char * | delete_asset_omp (openvas_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_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export an asset. More... | |
| char * | export_assets_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, enum content_type *content_type, char **content_disposition, gsize *content_length, cmd_response_data_t *response_data) |
| Export a list of assets. More... | |
| char * | edit_asset (openvas_connection_t *connection, credentials_t *credentials, params_t *params, const char *extra_xml, cmd_response_data_t *response_data) |
| Setup edit XML, XSL transform the result. More... | |
| char * | edit_asset_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Setup edit_asset XML, XSL transform the result. More... | |
| char * | save_asset_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Modify an asset, get all assets, XSL transform the result. More... | |
| char * | get_assets_chart_omp (openvas_connection_t *connection, credentials_t *credentials, params_t *params, cmd_response_data_t *response_data) |
| Get an assets chart, XSL transform the result. More... | |
| int | connect_unix (const gchar *path) |
| Connect to OpenVAS Manager daemon. More... | |
| int | openvas_connection_open (openvas_connection_t *connection, const gchar *address, int port) |
| Connect to an address. More... | |
| int | authenticate_omp (const gchar *username, const gchar *password, gchar **role, gchar **timezone, gchar **severity, gchar **capabilities, gchar **language, gchar **pw_warning, GTree **chart_prefs, gchar **autorefresh) |
| Check authentication credentials. More... | |
| int | manager_connect (credentials_t *credentials, openvas_connection_t *connection, cmd_response_data_t *response_data) |
| Connect to OpenVAS 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... | |
OMP communication module of Greenbone Security Assistant daemon.
This file implements an API for OMP. The functions call the OpenVAS Manager via OMP properly, and apply XSL-Transforms to deliver HTML results.
Definition in file gsad_omp.c.
| #define AUTH_CONF_SETTING | ( | key, | |
| value | |||
| ) |
Generate AUTH_CONF_SETTING element for save_auth_omp.
Definition at line 25851 of file gsad_omp.c.
| #define CHECK | ( | name | ) | CHECK_PARAM_INVALID (name, "Create Task", "new_task") |
| #define CHECK | ( | name | ) |
Check a param.
| [in] | name | Param name. |
Definition at line 9605 of file gsad_omp.c.
| #define CHECK_OMPF_RET |
Definition at line 21140 of file gsad_omp.c.
| #define CHECK_PARAM | ( | name, | |
| op_name, | |||
| ret_func | |||
| ) |
Check a param.
| [in] | name | Param name. |
| [in] | op_name | Operation name. |
| [in] | ret_func | Function to return message. |
Definition at line 1174 of file gsad_omp.c.
| #define CHECK_PARAM_INVALID | ( | name, | |
| op_name, | |||
| next_cmd | |||
| ) |
Check a param using the direct response method.
| [in] | name | Param name. |
| [in] | op_name | Operation name. |
| [in] | next_cmd | Next command. |
Definition at line 1195 of file gsad_omp.c.
| #define G_LOG_DOMAIN "gsad omp" |
GLib log domain.
Definition at line 81 of file gsad_omp.c.
| #define GET_TRASH_RESOURCE | ( | capability, | |
| command, | |||
| name | |||
| ) |
Definition at line 18726 of file gsad_omp.c.
| #define OPENVASMD_ADDRESS "127.0.0.1" |
Manager (openvasmd) address.
Definition at line 86 of file gsad_omp.c.
| #define PARAM_OR_SETTING | ( | value, | |
| param, | |||
| setting_id, | |||
| cleanup | |||
| ) |
Get a value from a param or fall back to a setting.
| [out] | value | Variable to assign the value to. |
| [in] | param | The param to try get the value from first. |
| [in] | setting_id | The UUID of the setting to try next. |
| [in] | cleanup | Code to run on failure. |
Definition at line 3330 of file gsad_omp.c.
| char* auth_settings_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 25207 of file gsad_omp.c.
References CHECK_PARAM_INVALID, command_enabled(), and params_value().

| int authenticate_omp | ( | const gchar * | username, |
| const gchar * | password, | ||
| gchar ** | role, | ||
| gchar ** | timezone, | ||
| gchar ** | severity, | ||
| gchar ** | capabilities, | ||
| gchar ** | language, | ||
| gchar ** | pw_warning, | ||
| GTree ** | chart_prefs, | ||
| gchar ** | autorefresh | ||
| ) |
Check authentication credentials.
| [in] | username | Username. |
| [in] | password | Password. |
| [out] | role | Role. |
| [out] | timezone | Timezone. |
| [out] | severity | Severity class. |
| [out] | capabilities | Capabilities of manager. |
| [out] | language | User Interface Language, or NULL. |
| [out] | pw_warning | Password warning message, NULL if password is OK. |
| [out] | chart_prefs | Chart preferences. |
| [out] | autorefresh | Autorefresh preference. |
Definition at line 27622 of file gsad_omp.c.
References manager_address, manager_port, and openvas_connection_open().

| char* bulk_delete_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete multiple resources, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26639 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_add(), params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), and params_values().

| char* clone_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Clone a resource, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9629 of file gsad_omp.c.
References CHECK, gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| void cmd_response_data_init | ( | cmd_response_data_t * | data | ) |
Initializes a cmd_response_data_t struct.
| [in] | data | The cmd_response_data_t struct to initialize |
Definition at line 348 of file gsad_omp.c.
References cmd_response_data_t::http_status_code, and cmd_response_data_t::redirect.
| void cmd_response_data_reset | ( | cmd_response_data_t * | data | ) |
Clears a cmd_response_data_t struct.
| [in] | data | Struct to reset. |
Definition at line 360 of file gsad_omp.c.
| int command_enabled | ( | credentials_t * | credentials, |
| const gchar * | name | ||
| ) |
Init the GSA OMP library.
| [in] | credentials | Credentials. |
| [in] | name | Command name. |
Definition at line 305 of file gsad_omp.c.
References credentials_t::capabilities.
Referenced by auth_settings_omp(), dashboard(), edit_alert(), edit_permission(), edit_target(), edit_user(), get_info(), get_my_settings_omp(), get_one(), get_system_reports_omp(), new_permission(), and new_permissions().

| int connect_unix | ( | const gchar * | path | ) |
Connect to OpenVAS Manager daemon.
| [in] | path | Path to the Manager socket. |
Definition at line 27542 of file gsad_omp.c.
Referenced by openvas_connection_open().

| char* create_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an agent, get all agents, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6928 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_filename(), params_value(), and params_value_size().

| char* create_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an alert, get all alerts, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8228 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| char* create_asset_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an asset, get report, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27071 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create config, get all configs, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11379 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_container_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a container task, serve next page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4029 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a credential, get all credentials, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5974 of file gsad_omp.c.
References CHECK_PARAM_INVALID, message_invalid(), params_given(), and params_value().

| char* create_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a filter, get all filters, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23837 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a group, get all groups, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20278 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_value(), and users.

| char* create_host_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a host, serve next page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26804 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a note, get report, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15465 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_original_value(), params_valid(), and params_value().

| char* create_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create an override, get report, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16148 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_original_value(), params_valid(), and params_value().

| char* create_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a permission, get all permissions, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20856 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* create_permissions_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create multiple permission, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 21507 of file gsad_omp.c.
References CHECK_PARAM, new_permission(), params_given(), and params_value().

| char* create_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a port list, get all port lists, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22447 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_port_range_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Add a range to a port list, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22578 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_report_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a report, get all tasks, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3854 of file gsad_omp.c.
References CHECK_PARAM_INVALID, message_invalid(), params_given(), and params_value().
Referenced by import_report_omp().


| char* create_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a role, get all roles, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23104 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_value(), and users.

| char* create_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a scanner, get all scanners, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16888 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* create_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a schedule, get all schedules, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17425 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a tag, get report, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10143 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* create_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a target, get all targets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9407 of file gsad_omp.c.
References CHECK_PARAM_INVALID, message_invalid(), and params_value().

| char* create_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a task, get all tasks, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4114 of file gsad_omp.c.
References CHECK, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_valid(), params_value(), params_values(), and param::value.

| char* create_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Create a user, get all users, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24882 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| char* cvss_calculator | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Definition at line 25590 of file gsad_omp.c.
References params_value().

| char* dashboard | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Show a dashboard.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25685 of file gsad_omp.c.
References command_enabled(), credentials_t::guest, params_value(), cmd_response_data_t::redirect, and credentials_t::token.

| char* delete_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete agent, get all agents, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7073 of file gsad_omp.c.
References delete_resource().

| char* delete_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete an alert, get all alerts, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8376 of file gsad_omp.c.
References delete_resource().

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

| char* delete_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete config, get all configs, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12878 of file gsad_omp.c.
References delete_resource().

| char* delete_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete credential, get all credentials, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6604 of file gsad_omp.c.
References delete_resource().

| char* delete_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a filter, get all filters, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23955 of file gsad_omp.c.
References init_find_by_value(), credentials_t::last_filt_ids, params_get(), and param::value.

| char* delete_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a group, get all groups, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20260 of file gsad_omp.c.
References delete_resource().

| char* delete_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete note, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15626 of file gsad_omp.c.
References delete_resource().

| char* delete_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete override, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16338 of file gsad_omp.c.
References delete_resource().

| char* delete_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a permission, get all permissions, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20655 of file gsad_omp.c.
References delete_resource().

| char* delete_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a port list, get all port lists, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22886 of file gsad_omp.c.
References delete_resource().

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

| char* delete_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete report format, get report formats, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18077 of file gsad_omp.c.
References delete_resource().

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

| char* delete_resource | ( | openvas_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| int | ultimate, | ||
| const char * | get, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a resource, get all resources, XSL transform 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. |
| [in] | get | Next page get command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3011 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_get(), params_value(), param::value, and param::value_size.
Referenced by delete_agent_omp(), delete_alert_omp(), delete_config_omp(), delete_credential_omp(), delete_group_omp(), delete_note_omp(), delete_override_omp(), delete_permission_omp(), delete_port_list_omp(), delete_port_range_omp(), delete_report_format_omp(), delete_report_omp(), delete_role_omp(), delete_scanner_omp(), delete_schedule_omp(), delete_tag_omp(), delete_target_omp(), delete_task_omp(), delete_trash_agent_omp(), delete_trash_alert_omp(), delete_trash_config_omp(), delete_trash_credential_omp(), delete_trash_filter_omp(), delete_trash_group_omp(), delete_trash_note_omp(), delete_trash_override_omp(), delete_trash_permission_omp(), delete_trash_port_list_omp(), delete_trash_report_format_omp(), delete_trash_role_omp(), delete_trash_scanner_omp(), delete_trash_schedule_omp(), delete_trash_tag_omp(), delete_trash_target_omp(), delete_trash_task_omp(), and delete_user_omp().


| char* delete_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a role, get all roles, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23086 of file gsad_omp.c.
References delete_resource().

| char* delete_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a scanner, get all scanners, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16987 of file gsad_omp.c.
References delete_resource().

| char* delete_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a schedule, get all schedules, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17558 of file gsad_omp.c.
References delete_resource().

| char* delete_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete note, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10242 of file gsad_omp.c.
References delete_resource().

| char* delete_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a target, get all targets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9763 of file gsad_omp.c.
References delete_resource().

| char* delete_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a task, get all tasks, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4478 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash agent, get all agents, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9782 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash alert, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9820 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash config, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9801 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash credential, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9839 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a filter, get all filters, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23936 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a group from trash, get all groups, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20241 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a note, get all notes, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15644 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a override, get all overrides, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16357 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a permission, get all permissions, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20636 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash port list, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22905 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash report format, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9858 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a role from trash, get all roles, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23067 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash scanner, get all scanners, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17006 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash schedule, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9877 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a note, get all notes, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10260 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash target, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9896 of file gsad_omp.c.
References delete_resource().

| char* delete_trash_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a trash task, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9915 of file gsad_omp.c.
References delete_resource().

| char* delete_user_confirm_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Show confirmation deleting a user, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24691 of file gsad_omp.c.
| char* delete_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Delete a user, get all users, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24604 of file gsad_omp.c.
References delete_resource().

| int download_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | result_len, | ||
| char ** | html, | ||
| char ** | filename, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an agent, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | result_len | Length of result. |
| [out] | html | Result of XSL transformation. Required. |
| [out] | filename | Agent filename return. NULL to skip. Only set on success with agent_id. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7095 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* download_ca_pub | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | response_size, | ||
| 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. |
| [in] | response_size | Size of cert. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14841 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| int download_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | result_len, | ||
| 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] | result_len | Length of result. |
| [out] | html | Result of XSL transformation. Required. |
| [out] | login | Login name return. NULL to skip. Only set on success with credential_id. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6328 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* download_key_pub | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | response_size, | ||
| 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. |
| [in] | response_size | Size of cert. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14876 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* download_ssl_cert | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | response_size, | ||
| 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. |
| [in] | response_size | Size of cert. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14798 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* edit_agent | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_agent XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7259 of file gsad_omp.c.
References edit_resource().
Referenced by edit_agent_omp().


| char* edit_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_agent XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7278 of file gsad_omp.c.
References edit_agent().

| char* edit_alert | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_alert XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8723 of file gsad_omp.c.
References command_enabled(), gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_alert_omp().


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

| char* edit_asset | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27315 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_asset_omp().


| char* edit_asset_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_asset XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27403 of file gsad_omp.c.
References edit_asset().

| char* edit_config_family_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of a family for editing a config, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12361 of file gsad_omp.c.
| char* edit_config_nvt_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit details of an NVT for a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12638 of file gsad_omp.c.
| char* edit_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11804 of file gsad_omp.c.
| char* edit_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_credential XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6661 of file gsad_omp.c.
| char* edit_filter | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_filter XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24010 of file gsad_omp.c.
References edit_resource().
Referenced by edit_filter_omp().


| char* edit_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_filter XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24029 of file gsad_omp.c.
References edit_filter().

| char* edit_group | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_group XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20384 of file gsad_omp.c.
References edit_resource().
Referenced by edit_group_omp().


| char* edit_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_group XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20403 of file gsad_omp.c.
References edit_group().

| char* edit_my_settings_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| 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. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19125 of file gsad_omp.c.
| char* edit_note | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit note, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15664 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_note_omp().


| char* edit_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit note, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15727 of file gsad_omp.c.
References edit_note().

| char* edit_override | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit override, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16377 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_override_omp().


| char* edit_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Edit override, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16440 of file gsad_omp.c.
References edit_override().

| char* edit_permission | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_permission XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22026 of file gsad_omp.c.
References command_enabled().
Referenced by edit_permission_omp().


| char* edit_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_permission XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22189 of file gsad_omp.c.
References edit_permission().

| char* edit_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_port_list XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22782 of file gsad_omp.c.
| char* edit_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_report_format XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18134 of file gsad_omp.c.
| char* edit_resource | ( | openvas_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, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | type | Type or resource to edit. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_get_attribs | Extra attributes for the get_... command. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2498 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_agent(), edit_filter(), edit_group(), and edit_schedule().


| char* edit_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_role XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23305 of file gsad_omp.c.
| char* edit_scanner | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_scanner XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17026 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_scanner_omp().


| char* edit_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_scanner XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17108 of file gsad_omp.c.
References edit_scanner().

| char* edit_schedule | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_schedule XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24202 of file gsad_omp.c.
References edit_resource().
Referenced by edit_schedule_omp().


| char* edit_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_schedule XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24221 of file gsad_omp.c.
References edit_schedule().

| char* edit_tag | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_tag XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10280 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_tag_omp().


| char* edit_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_tag XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10356 of file gsad_omp.c.
References edit_tag().

| char* edit_target | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_target XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10692 of file gsad_omp.c.
References command_enabled(), gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by edit_target_omp().


| char* edit_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_target XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10849 of file gsad_omp.c.
References edit_target().

| char* edit_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_task XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4622 of file gsad_omp.c.
| char* edit_user | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_user XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25044 of file gsad_omp.c.
References command_enabled().
Referenced by edit_user_omp().


| char* edit_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_user XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25200 of file gsad_omp.c.
References edit_user().

| char* empty_trashcan_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Empty the trashcan, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10011 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* export_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a agent.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7554 of file gsad_omp.c.
References export_resource().

| char* export_agents_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Export a list of agents.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7579 of file gsad_omp.c.
| char* export_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9185 of file gsad_omp.c.
References export_resource().

| char* export_alerts_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9210 of file gsad_omp.c.
| char* export_asset_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27269 of file gsad_omp.c.
References export_resource().

| char* export_assets_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27294 of file gsad_omp.c.
| char* export_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content dispositions return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12900 of file gsad_omp.c.
References export_resource().

| char* export_configs_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12925 of file gsad_omp.c.
| char* export_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6517 of file gsad_omp.c.
References export_resource().

| char* export_credentials_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6543 of file gsad_omp.c.
| char* export_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24049 of file gsad_omp.c.
References export_resource().

| char* export_filters_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24074 of file gsad_omp.c.
| char* export_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20423 of file gsad_omp.c.
References export_resource().

| char* export_groups_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20448 of file gsad_omp.c.
| char* export_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12948 of file gsad_omp.c.
References export_resource().

| char* export_notes_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12972 of file gsad_omp.c.
| char* export_omp_doc_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Download the OMP doc.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20023 of file gsad_omp.c.
References GSAD_CONTENT_TYPE_APP_XML, gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* export_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12995 of file gsad_omp.c.
References export_resource().

| char* export_overrides_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13021 of file gsad_omp.c.
| char* export_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22210 of file gsad_omp.c.
References export_resource().

| char* export_permissions_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22236 of file gsad_omp.c.
| char* export_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13046 of file gsad_omp.c.
References export_resource().

| char* export_port_lists_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13072 of file gsad_omp.c.
| char* export_preference_file_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content dispositions return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13097 of file gsad_omp.c.
References GSAD_CONTENT_TYPE_OCTET_STREAM, gsad_message(), GSAD_MESSAGE_INVALID_PARAM, cmd_response_data_t::http_status_code, and params_value().

| char* export_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13198 of file gsad_omp.c.
References export_resource().

| char* export_report_formats_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 13224 of file gsad_omp.c.
| char* export_resource | ( | openvas_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 2671 of file gsad_omp.c.
References GSAD_MESSAGE_INVALID_PARAM, and params_value().
Referenced by export_agent_omp(), export_alert_omp(), export_asset_omp(), export_config_omp(), export_credential_omp(), export_filter_omp(), export_group_omp(), export_note_omp(), export_override_omp(), export_permission_omp(), export_port_list_omp(), export_report_format_omp(), export_result_omp(), export_role_omp(), export_scanner_omp(), export_schedule_omp(), export_tag_omp(), export_target_omp(), export_task_omp(), and export_user_omp().


| char* export_result_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14915 of file gsad_omp.c.
References export_resource().

| char* export_results_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14940 of file gsad_omp.c.
| char* export_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23400 of file gsad_omp.c.
References export_resource().

| char* export_roles_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23424 of file gsad_omp.c.
| char* export_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16678 of file gsad_omp.c.
References export_resource().

| char* export_scanners_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16703 of file gsad_omp.c.
| char* export_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24242 of file gsad_omp.c.
References export_resource().

| char* export_schedules_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24267 of file gsad_omp.c.
| char* export_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10482 of file gsad_omp.c.
References export_resource().

| char* export_tags_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10506 of file gsad_omp.c.
| char* export_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11205 of file gsad_omp.c.
References export_resource().

| char* export_targets_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11230 of file gsad_omp.c.
| char* export_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4993 of file gsad_omp.c.
References export_resource().

| char* export_tasks_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5017 of file gsad_omp.c.
| char* export_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25556 of file gsad_omp.c.
References export_resource().

| char* export_users_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25580 of file gsad_omp.c.
| gchar* format_file_name | ( | gchar * | fname_format, |
| credentials_t * | credentials, | ||
| const char * | type, | ||
| const char * | uuid, | ||
| entity_t | resource_entity | ||
| ) |
Generates a file name for exporting.
| [in] | fname_format | Format string. |
| [in] | credentials | Current credentials. |
| [in] | type | Type of resource. |
| [in] | uuid | UUID of resource. |
| [in] | resource_entity | Resource entity to extract extra data from. |
Definition at line 2581 of file gsad_omp.c.
References credentials_t::username.
| void free_find_by_value | ( | find_by_value_t * | find | ) |
| char* get_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one agent, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7400 of file gsad_omp.c.
| char* get_agents_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all agents, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7437 of file gsad_omp.c.
| char* get_aggregate_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an aggregate of resources.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7599 of file gsad_omp.c.
References params_iterator_t, params_t, params_value(), and params_values().

| char* get_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one alert, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8564 of file gsad_omp.c.
| char* get_alerts_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all alerts, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8705 of file gsad_omp.c.
| char* get_asset_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get asset, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26975 of file gsad_omp.c.
| char* get_assets_chart_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an assets chart, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27523 of file gsad_omp.c.
| char* get_assets_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get assets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27054 of file gsad_omp.c.
| char* get_config_family_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of a family for a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12343 of file gsad_omp.c.
| char* get_config_nvt_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of an NVT for a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12620 of file gsad_omp.c.
| char* get_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11768 of file gsad_omp.c.
| char* get_configs_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all scan configs, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11564 of file gsad_omp.c.
| char* get_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one credential, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6306 of file gsad_omp.c.
| char* get_credentials_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one or all credentials, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6586 of file gsad_omp.c.
| char* get_feeds_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get descriptions of the feeds connected to the manager.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23536 of file gsad_omp.c.
References gsad_message(), and cmd_response_data_t::http_status_code.

| char* get_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one filter, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23758 of file gsad_omp.c.
| char* get_filters_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all filters, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23795 of file gsad_omp.c.
| char* get_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one group, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20145 of file gsad_omp.c.
| char* get_groups_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all groups, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20182 of file gsad_omp.c.
| char* get_info | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Requests SecInfo.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials for the manager connection. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5282 of file gsad_omp.c.
References command_enabled(), gsad_message(), cmd_response_data_t::http_status_code, params_add(), params_value(), param::valid, param::valid_utf8, and param::value.
Referenced by get_info_omp().


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

| char* get_my_settings_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page with user's settings.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18916 of file gsad_omp.c.
References command_enabled().

| char* get_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a note, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15251 of file gsad_omp.c.
| char* get_notes_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all notes, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15214 of file gsad_omp.c.
| char* get_nvts_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Requests NVT details, accepting extra commands.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials for the manager connection. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5428 of file gsad_omp.c.
| char* get_one | ( | openvas_connection_t * | connection, |
| const char * | type, | ||
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| const char * | extra_attribs, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one resource, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | type | Type of resource. |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [in] | extra_attribs | Extra attributes for OMP GET command. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 1823 of file gsad_omp.c.
References command_enabled(), gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* get_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get an override, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15932 of file gsad_omp.c.
| char* get_overrides_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all overrides, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15895 of file gsad_omp.c.
| char* get_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one permission, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20580 of file gsad_omp.c.
| char* get_permissions_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all permissions, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20618 of file gsad_omp.c.
| char* get_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one port_list, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22689 of file gsad_omp.c.
| char* get_port_lists_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all port_lists, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22727 of file gsad_omp.c.
| char* get_protocol_doc_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get OMP doc.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19965 of file gsad_omp.c.
References gsad_message(), and cmd_response_data_t::http_status_code.

| char* get_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one report format, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17975 of file gsad_omp.c.
| char* get_report_formats_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all Report Formats, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18014 of file gsad_omp.c.
| char* get_report_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gsize * | report_len, | ||
| gchar ** | content_type, | ||
| char ** | content_disposition, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a report and XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | report_len | Length of report. |
| [out] | content_type | Content type if known, else NULL. |
| [out] | content_disposition | Content disposition, if content_type set. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14595 of file gsad_omp.c.
| char* get_report_section_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a report section, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14779 of file gsad_omp.c.
| char* get_reports_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all reports, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14648 of file gsad_omp.c.
| char* get_result_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one result, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15139 of file gsad_omp.c.
| char* get_results_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all results, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 14988 of file gsad_omp.c.
| char* get_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one role, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23343 of file gsad_omp.c.
| char* get_roles_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all roles, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23380 of file gsad_omp.c.
| char* get_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one scanner, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16658 of file gsad_omp.c.
| char* get_scanners_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all scanners, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16621 of file gsad_omp.c.
| char* get_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one schedule, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17306 of file gsad_omp.c.
| char* get_schedules_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all schedules, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17343 of file gsad_omp.c.
| char* get_system_report_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| const char * | url, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| gsize * | content_length, | ||
| 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] | content_type | Content type return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17777 of file gsad_omp.c.
References GSAD_CONTENT_TYPE_IMAGE_PNG, and params_value().

| char* get_system_reports_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all system reports, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17577 of file gsad_omp.c.
References command_enabled(), gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* get_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one tag, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10546 of file gsad_omp.c.
| char* get_tags_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all tags, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10583 of file gsad_omp.c.
| char* get_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one target, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10886 of file gsad_omp.c.
| char* get_targets_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all targets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10923 of file gsad_omp.c.
| char* get_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a task, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5932 of file gsad_omp.c.
| char* get_tasks_chart_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get a tasks chart, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5578 of file gsad_omp.c.
| char* get_tasks_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all tasks, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5541 of file gsad_omp.c.
| char* get_trash_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18839 of file gsad_omp.c.
| char* get_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get one user, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24779 of file gsad_omp.c.
| char* get_users_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get all users, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24865 of file gsad_omp.c.
| char* import_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import config, get all configs, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11468 of file gsad_omp.c.
References params_value().

| char* import_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import port list, get all port_lists, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22943 of file gsad_omp.c.
References params_value().

| char* import_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import report format, get all report formats, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18153 of file gsad_omp.c.
References params_value().

| char* import_report_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Import report, get all reports, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4008 of file gsad_omp.c.
References create_report_omp().

| void init_find_by_value | ( | find_by_value_t * | find, |
| gchar * | value | ||
| ) |
Definition at line 396 of file gsad_omp.c.
References find_by_value_t::keys, param::value, and find_by_value_t::value.
Referenced by delete_filter_omp().

| char* logout | ( | credentials_t * | credentials, |
| const gchar * | message, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup edit_user XML, XSL transform the result.
| [in] | credentials | Username and password for authentication. |
| [in] | message | Login screen message. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25280 of file gsad_omp.c.
References ctime_r_strip_newline(), login_xml(), credentials_t::params, params_value(), credentials_t::token, token_user_remove(), and xsl_transform().

| int manager_connect | ( | credentials_t * | credentials, |
| openvas_connection_t * | connection, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Connect to OpenVAS Manager daemon.
If the Manager is down, logout and return the login HTML in html.
| [in] | credentials | Username and password for authentication. |
| [out] | connection | Connection to Manager on success. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27835 of file gsad_omp.c.
References cmd_response_data_t::http_status_code, manager_address, manager_port, openvas_connection_open(), credentials_t::password, and credentials_t::username.

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

| gchar* message_invalid | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data, | ||
| const char * | message, | ||
| const char * | status, | ||
| const char * | op_name, | ||
| const char * | next_cmd | ||
| ) |
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] | status | Status code. |
| [in] | op_name | Operation name. |
| [in] | next_cmd | Next command. |
Definition at line 1472 of file gsad_omp.c.
Referenced by create_credential_omp(), create_report_omp(), and create_target_omp().

| char* move_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Reassign a task to a new OMP slave.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5091 of file gsad_omp.c.
References params_value().

| char* new_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new agent page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6911 of file gsad_omp.c.
| char* new_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new alert.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7993 of file gsad_omp.c.
| char* new_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new scan config page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11318 of file gsad_omp.c.
| char* new_container_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new task.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3773 of file gsad_omp.c.
| char* new_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new Credential.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6623 of file gsad_omp.c.
| char* new_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new filter.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24094 of file gsad_omp.c.
| char* new_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new group.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20224 of file gsad_omp.c.
| char* new_host_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new host page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26787 of file gsad_omp.c.
| char* new_note | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new notes page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15269 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by new_note_omp().


| char* new_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new notes page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15448 of file gsad_omp.c.
References new_note().

| char* new_override | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new overrides page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15950 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by new_override_omp().


| char* new_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new overrides page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16131 of file gsad_omp.c.
References new_override().

| char* new_permission | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup new_permission XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20675 of file gsad_omp.c.
References command_enabled().
Referenced by create_permissions_omp(), and new_permission_omp().


| char* new_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup new_permission XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20838 of file gsad_omp.c.
References new_permission().

| char* new_permissions | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | extra_xml, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup new_permissions XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | extra_xml | Extra XML to insert inside page element. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 21202 of file gsad_omp.c.
References command_enabled(), params_iterator_t, and params_t.
Referenced by new_permissions_omp().


| char* new_permissions_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Setup new_permission XML, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 21489 of file gsad_omp.c.
References new_permissions().

| char* new_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new Port List page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22745 of file gsad_omp.c.
| char* new_port_range_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new Port Range page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22560 of file gsad_omp.c.
| char* new_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new report format page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18058 of file gsad_omp.c.
| char* new_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new role.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23050 of file gsad_omp.c.
| char* new_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new scanner page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16775 of file gsad_omp.c.
| char* new_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the new schedule page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17408 of file gsad_omp.c.
| char* new_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new target.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10126 of file gsad_omp.c.
| char* new_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new target.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9390 of file gsad_omp.c.
| char* new_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new task.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3722 of file gsad_omp.c.
| char* new_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page to create a new user.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24587 of file gsad_omp.c.
| void omp_init | ( | const gchar * | manager_address_unix, |
| const gchar * | manager_address_tls, | ||
| int | port_manager | ||
| ) |
Init the GSA OMP library.
| [in] | manager_address_unix | Manager address when using UNIX socket. |
| [in] | manager_address_tls | Manager address when using TLS-TCP. |
| [in] | port_manager | Manager port. |
Definition at line 319 of file gsad_omp.c.
References manager_address, manager_port, and manager_use_tls.
| int openvas_connection_open | ( | openvas_connection_t * | connection, |
| const gchar * | address, | ||
| int | port | ||
| ) |
Connect to an address.
| [out] | connection | Connection. |
| [out] | address | Address. |
| [out] | port | Port. |
Definition at line 27580 of file gsad_omp.c.
References connect_unix(), and manager_use_tls.
Referenced by authenticate_omp(), and manager_connect().


| char* process_bulk_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| enum content_type * | content_type, | ||
| char ** | content_disposition, | ||
| gsize * | content_length, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns a process_bulk page.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | content_type | Content type return. |
| [out] | content_disposition | Content disposition return. |
| [out] | content_length | Content length return. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26347 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_add(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_valid(), params_value(), params_values(), param::valid, param::valid_utf8, and param::value.

| char* resource_action | ( | openvas_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, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | type | Type of resource. |
| [in] | action | Action to perform. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3135 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().
Referenced by resume_task_omp(), start_task_omp(), and stop_task_omp().


| char* restore_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Restore a resource, get all trash, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9934 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

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

| char* run_wizard_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Run a wizard and XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18630 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| char* save_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a agent, get all agents, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7295 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify an alert, get all alerts, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 8962 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| char* save_asset_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify an asset, get all assets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 27421 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_auth_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save authentication settings.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25868 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* save_chart_preference_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| gchar ** | pref_id, | ||
| gchar ** | pref_value, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save chart preferences.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [in] | pref_id | Preference ID. |
| [in] | pref_value | Preference value. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26000 of file gsad_omp.c.
References cmd_response_data_t::http_status_code, and params_value().

| char* save_config_family_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Get details of an NVT for a config, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12379 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), and params_values().

| char* save_config_nvt_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save NVT prefs for a config, get NVT details, XSL transform result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 12656 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), param::value, and param::value_size.

| char* save_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save details of an NVT for a config and return the next page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11952 of file gsad_omp.c.
References CHECK_PARAM_INVALID, gsad_message(), cmd_response_data_t::http_status_code, params_t, and params_value().

| char* save_container_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save container task, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4887 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_credential_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save credential, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 6679 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* save_filter_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a filter, get all filters, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24111 of file gsad_omp.c.
References CHECK_PARAM_INVALID, gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* save_group_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a group, return the next page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 20468 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_value(), and users.

| char* save_my_settings_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| const char * | accept_language, | ||
| char ** | timezone, | ||
| char ** | password, | ||
| char ** | severity, | ||
| char ** | language, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns page with user's settings, for editing.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [in] | accept_language | Accept-Language, from browser. |
| [out] | timezone | Timezone. Caller must free. |
| [out] | password | Password. Caller must free. |
| [out] | severity | Severity. Caller must free. |
| [out] | language | Language. Caller must free. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 19221 of file gsad_omp.c.
References params_t, params_value(), and params_values().

| char* save_note_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save note, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 15744 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_original_value(), params_valid(), and params_value().

| char* save_override_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save override, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16457 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_original_value(), params_valid(), and params_value().

| char* save_permission_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a permission, get all permissions, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22258 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* save_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a port list, get all port list, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22800 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save report_format, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18232 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| char* save_role_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a role, return the next page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23444 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_value(), and users.

| char* save_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save scanner, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 17125 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), and params_value().

| char* save_schedule_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save schedule, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 24288 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a tag, get all tags, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10373 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_target_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a target, get all targets, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10940 of file gsad_omp.c.
References CHECK_PARAM_INVALID, and params_value().

| char* save_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Save task, get next page, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 4639 of file gsad_omp.c.
References CHECK, CHECK_PARAM_INVALID, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_valid(), params_value(), params_values(), and param::value.

| char* save_user_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| char ** | password_return, | ||
| char ** | modified_user, | ||
| int * | logout_user, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Modify a user, get all users, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | password_return | Password. Caller must free. |
| [out] | modified_user | Name of user modified. Caller must free. |
| [out] | logout_user | Whether the user should be logged out. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 25325 of file gsad_omp.c.
References CHECK_PARAM_INVALID, params_given(), params_iterator_init, params_iterator_next(), params_iterator_t, params_t, params_value(), params_values(), and param::value.

| void set_http_status_from_entity | ( | entity_t | entity, |
| cmd_response_data_t * | response_data | ||
| ) |
Set the HTTP status according to OMP response entity.
| [in] | entity | The OMP response entity. |
| [in] | response_data | Response data. |
Definition at line 885 of file gsad_omp.c.
References cmd_response_data_t::http_status_code.
| char* start_task_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Start a task, get all tasks, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 5073 of file gsad_omp.c.
References resource_action().

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

| char* sync_cert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with a CERT feed and XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23716 of file gsad_omp.c.
| char* sync_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Sync config, get configs, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11821 of file gsad_omp.c.
References CHECK_PARAM, and params_value().

| char* sync_feed_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with an NVT feed and XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23678 of file gsad_omp.c.
| char* sync_scap_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Synchronize with a SCAP feed and XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 23697 of file gsad_omp.c.
| char* test_alert_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Test an alert, get all alerts XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 9112 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* toggle_tag_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Set tag enabled status.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 10600 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| int token_user_remove | ( | const char * | token | ) |
Remove a user from the session "database", releasing the user_t too.
| [in] | token | User's token. |
Definition at line 980 of file gsad.c.
References user::token, token_user(), and users.
Referenced by logout().


| char* upload_config_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the upload scan config page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 11362 of file gsad_omp.c.
| char* upload_port_list_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the upload port list page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 22428 of file gsad_omp.c.
| char* upload_report_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Return the upload report page.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 3837 of file gsad_omp.c.
| char* verify_agent_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify agent, get agents, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 7454 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* verify_report_format_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify report format, get report formats, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 18529 of file gsad_omp.c.
References gsad_message(), cmd_response_data_t::http_status_code, and params_value().

| char* verify_scanner_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Verify scanner, get scanners, XSL transform the result.
| [in] | connection | Connection to manager |
| [in] | credentials | Username and password for authentication. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 16792 of file gsad_omp.c.
References CHECK_PARAM, and params_value().

| char* wizard_get_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns a wizard_get page.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26327 of file gsad_omp.c.
| char* wizard_omp | ( | openvas_connection_t * | connection, |
| credentials_t * | credentials, | ||
| params_t * | params, | ||
| cmd_response_data_t * | response_data | ||
| ) |
Returns a wizard page.
| [in] | connection | Connection to manager |
| [in] | credentials | Credentials of user issuing the action. |
| [in] | params | Request parameters. |
| [out] | response_data | Extra data return for the HTTP response. |
Definition at line 26201 of file gsad_omp.c.
| gchar* manager_address = NULL |
The address the manager is on.
Definition at line 96 of file gsad_omp.c.
Referenced by authenticate_omp(), manager_connect(), and omp_init().
| int manager_port = 9390 |
The port the manager is on.
Definition at line 101 of file gsad_omp.c.
Referenced by authenticate_omp(), manager_connect(), and omp_init().
| int manager_use_tls = 0 |
Whether to use TLS for Manager connections.
Definition at line 91 of file gsad_omp.c.
Referenced by omp_init(), and openvas_connection_open().