Greenbone Vulnerability Management Libraries
11.0.1
|
Go to the documentation of this file.
28 #include "../base/array.h"
29 #include "../util/serverutils.h"
30 #include "../util/xmlutils.h"
33 #include <glib/gtypes.h>
34 #include <gnutls/gnutls.h>
55 {0, NULL, NULL, NULL, NULL, NULL, NULL};
104 "a994b278-1f62-11e1-96ac-406186ea4fc5",
202 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
203 NULL, NULL, 0, NULL, NULL, NULL, NULL, 0};
230 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0};
272 NULL, NULL, NULL, NULL};
306 const char *password);
315 gmp_create_task (gnutls_session_t *,
const char *,
const char *,
const char *,
316 const char *, gchar **);
365 const void *, gsize);
385 const char *,
const char *, gchar **);
389 const char *,
const char *,
const char *,
const char * ssh_credential_id
ID of SSH credential.
int gmp_get_task_ext(gnutls_session_t *, gmp_get_task_opts_t, entity_t *)
Get a task (generic version).
int gmp_modify_task_file(gnutls_session_t *, const char *, const char *, const void *, gsize)
Modify a file on a task.
int host_first_result
Skip over results before this result number.
const char * slave_id
ID of task schedule.
static const gmp_delete_opts_t gmp_delete_opts_defaults
Sensible default values for gmp_get_report_opts_t.
int details
Whether to include overrides in the tasks.
int override_details
If overrides, whether to include details.
const char * privacy_algorithm
SNMP privacy algorithm.
const char * private_key
Private key.
const char * task_id
ID of single task to get.
int rcfile
Ignored. Removed since GMP 6.0.
int gmp_create_task_ext(gnutls_session_t *, gmp_create_task_opts_t, gchar **)
Create a task.
int gmp_delete_task(gnutls_session_t *, const char *)
Delete a task and read the manager response.
const char * format_id
ID of required report format.
const char * hosts
Name of target.
const char * auth_algorithm
SNMP authentication algorithm.
static const gmp_create_target_opts_t gmp_create_target_opts_defaults
Sensible default values for gmp_get_report_opts_t.
const char * username
Password.
static const gmp_authenticate_info_opts_t gmp_authenticate_info_opts_defaults
Sensible default values for gmp_authenticate_info_opts_t.
const char * actions
Actions argument.
int gmp_resume_task_report(gnutls_session_t *, const char *, char **)
Resume a task and read the manager response.
static const gmp_delete_opts_t gmp_delete_opts_ultimate_defaults
Default values for gmp_get_report_opts_t for ultimate deletion.
const char * exclude_hosts
Hosts to exclude.
int gmp_read_create_response(gnutls_session_t *, gchar **)
Read response status and resource UUID.
int result_hosts_only
Whether to include only hosts that have results.
const char * target_id
ID of target.
int gmp_delete_config_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a config.
int gmp_authenticate(gnutls_session_t *session, const char *username, const char *password)
Authenticate with the manager.
const char * max_checks
Max checks preference.
static const gmp_get_report_opts_t gmp_get_report_opts_defaults
Sensible default values for gmp_get_report_opts_t.
int gmp_create_lsc_credential_ext(gnutls_session_t *, gmp_create_lsc_credential_opts_t, gchar **)
Create an LSC credential.
int details
Whether to include overrides in the tasks.
char ** severity
[out] Severity class setting.
static const gmp_get_tasks_opts_t gmp_get_tasks_opts_defaults
Sensible default values for gmp_get_tasks_opts_t.
int apply_overrides
Whether overrides are applied.
int rcfile
Ignored. Removed since GMP 6.0.
const char * snmp_credential_id
ID of SNMP credential.
static const gmp_get_task_opts_t gmp_get_task_opts_defaults
Sensible default values for gmp_get_tasks_opts_t.
int gmp_delete_port_list_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a port list.
char * filter
Term to filter results.
const char * report_id
ID of single report to get.
int gmp_stop_task_c(gvm_connection_t *, const char *)
Stop a task and read the manager response.
const char * hosts_ordering
Order for scanning target hosts.
Struct holding options for gmp get_report command.
const char * name
Name of target.
char * search_phrase
Search phrase result filter.
int gmp_get_system_reports_ext(gnutls_session_t *, gmp_get_system_reports_opts_t, entity_t *)
Get system reports.
int gmp_authenticate_info_ext(gnutls_session_t *, gmp_authenticate_info_opts_t)
Authenticate with the manager.
Struct holding options for gmp get_tasks command.
const char * in_assets
In assets preference.
const char * duration
Duration.
Struct holding options for gmp create_task command.
int timeout
Timeout for GMP response.
int reverse_lookup_only
Scanner pref reverse_lookup_only.
const char * slave_id
ID of the slave to get report from.
const char * start_time
Time of first data point.
int gmp_delete_report(gnutls_session_t *, const char *)
Remove a report.
const char * name
Name of LSC credential.
Struct holding options for gmp create_lsc_credential command.
const char * passphrase
Passphrase.
int gmp_authenticate_info_ext_c(gvm_connection_t *, gmp_authenticate_info_opts_t)
Authenticate with the manager.
int timeout
Timeout for authentication.
int gmp_ping(gnutls_session_t *, int)
"Ping" the manager.
const char * esxi_credential_id
ID of ESXi credential.
Struct holding options for various gmp delete_[...] commands.
const char * password
Username.
char * filt_id
ID of filter, to filter results.
int gmp_ping_c(gvm_connection_t *, int, gchar **)
"Ping" the manager.
char ** timezone
[out] Timezone if any, else NULL.
char * delta_states
Delta states (Changed Gone New Same) to include.
const char * community
SNMP community.
const char * comment
Comment on task.
int alterable
Whether the task is alterable.
array_t * alert_ids
Array of alert IDs.
const char * actions
Actions argument.
static const gmp_create_lsc_credential_opts_t gmp_create_lsc_credential_opts_defaults
Sensible default values for gmp_create_lsc_credential_opts_t.
int notes_details
Whether to include details of above.
char * pos
Position of report from end.
const char * levels
Result levels to include.
int gmp_start_task_report(gnutls_session_t *, const char *, char **)
Start a task and read the manager response.
Struct holding options for gmp get_system_reports command.
const char * comment
Comment on LSC credential.
const char * schedule_id
ID of task schedule.
const char * max_hosts
Max hosts preference.
const char * filter
Filter argument.
int gmp_delete_lsc_credential_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a LSC credential.
array_t * observer_groups
IDs of observer groups.
const char * gmp_task_status(entity_t status_response)
Get the task status from a GMP GET_TASKS response.
const char * comment
Comment on target.
int schedule_periods
Number of periods the schedule must run for.
static const gmp_get_system_reports_opts_t gmp_get_system_reports_opts_defaults
Sensible default values for gmp_get_report_opts_t.
int gmp_get_targets(gnutls_session_t *, const char *, int, int, entity_t *)
Get a target.
int host_max_results
Maximum number of results to return.
const char * name
Name of report.
char * host_search_phrase
Search phrase result filter.
char * host_levels
Letter encoded threat level filter, for hosts.
int gmp_delete_target_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a target.
int notes
Whether to include associated notes.
char * alert_id
ID of alert.
const char * name
Name of task.
const char * observers
Comma-separated string of observer users.
int gmp_resume_task_report_c(gvm_connection_t *, const char *, char **)
Resume a task and read the manager response.
const char * scanner_id
ID of task scanner.
int gmp_get_report_ext(gnutls_session_t *, gmp_get_report_opts_t, entity_t *)
Get a report (generic version).
const char * config_id
ID of config.
Struct holding options for gmp get_tasks command.
int timeout
Timeout for GMP response.
char ** pw_warning
[out] Password warning, NULL if password is okay.
int gmp_stop_task(gnutls_session_t *, const char *)
Stop a task and read the manager response.
char * min_qod
Minimum QoD filter.
int gmp_create_task(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create a task given a config and target.
const char * source_iface
Source iface preference.
const char * alive_tests
Alive tests.
int gmp_delete_task_ext(gnutls_session_t *, const char *, gmp_delete_opts_t)
Delete a task and read the manager response.
const char * end_time
Time of last data point.
int gmp_get_tasks_ext(gnutls_session_t *, gmp_get_tasks_opts_t, entity_t *)
Get all tasks (generic version).
int reverse_lookup_unify
Scanner pref reverse_lookup_unify.
char * host
Host for asset report.
char * min_cvss_base
Minimum CVSS base filter.
int gmp_start_task_report_c(gvm_connection_t *, const char *, char **)
Start a task and read the manager response.
int first_result
First result to get.
const char * port_range
Port range.
int ssh_credential_port
Port for SSH access.
Struct holding options for authentication.
int gmp_create_lsc_credential_key(gnutls_session_t *, const char *, const char *, const char *, const char *, const char *, gchar **)
Create an LSC Credential with a key.
int gmp_create_target_ext(gnutls_session_t *, gmp_create_target_opts_t, gchar **)
Create a target.
int ignore_pagination
Whether to ignore pagination filters.
int overrides
Whether to include overrides in the report.
static const gmp_create_task_opts_t gmp_create_task_opts_defaults
Sensible default values for gmp_get_report_opts_t.
char * delta_report_id
ID of report to compare single report to.
int gmp_get_tasks(gnutls_session_t *, const char *, int, int, entity_t *)
Get the status of a task.
const char * privacy_password
SNMP privacy password.
const char * smb_credential_id
ID of SMB credential.
int gmp_create_lsc_credential(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create an LSC Credential.
Struct holding options for gmp create_target command.
int gmp_get_system_reports(gnutls_session_t *, const char *, int, entity_t *)
Get system reports.
int max_results
Maximum number of results to return.