26 #ifndef _OPENVAS_LIBRARIES_OMP_H 27 #define _OPENVAS_LIBRARIES_OMP_H 29 #include "../base/array.h" 58 { 0, NULL, NULL, NULL, NULL, NULL, NULL };
105 "ROWID",
"ascending",
"a994b278-1f62-11e1-96ac-406186ea4fc5",
"hmlgd",
106 NULL, 1, -1, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
107 NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0
127 {
"", 0, NULL, 0, 0 };
145 { NULL, NULL, 0, 0 };
178 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL,
207 { 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0 };
226 { NULL, NULL, NULL, NULL, NULL, 0 };
248 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
276 int omp_ping (gnutls_session_t *,
int);
281 const char *password);
289 const char *,
const char *, gchar **);
322 const void *, gsize);
337 const char *,
const char *, gchar **);
340 const char *,
const char *,
const char *,
341 const char *, gchar **);
int omp_delete_lsc_credential_ext(gnutls_session_t *, const char *, omp_delete_opts_t)
Delete a LSC credential.
int timeout
Timeout for OMP response.
Struct holding options for omp get_report command.
int reverse_lookup_only
Scanner pref reverse_lookup_only.
int omp_create_target_ext(gnutls_session_t *, omp_create_target_opts_t, gchar **)
Create a target.
int rcfile
Ignored. Removed since OMP 6.0.
int omp_read_create_response(gnutls_session_t *, gchar **)
Read response status and resource UUID.
int override_details
If overrides, whether to include details.
const char * duration
Duration.
const char * task_id
ID of single task to get.
const char * name
Name of report.
const char * target_id
ID of target.
int schedule_periods
Number of periods the schedule must run for.
const char * omp_task_status(entity_t status_response)
Get the task status from an OMP GET_TASKS response.
int omp_create_task_ext(gnutls_session_t *, omp_create_task_opts_t, gchar **)
Create a task.
Struct holding options for omp get_tasks command.
const char * hosts_ordering
Order for scanning target hosts.
int omp_authenticate_info_ext_c(openvas_connection_t *, omp_authenticate_info_opts_t)
Authenticate with the manager.
int omp_delete_port_list_ext(gnutls_session_t *, const char *, omp_delete_opts_t)
Delete a port list.
char * host
Host for asset report.
int omp_get_tasks_ext(gnutls_session_t *, omp_get_tasks_opts_t, entity_t *)
Get all tasks (generic version).
const char * community
SNMP community.
char * delta_states
Delta states (Changed Gone New Same) to include.
char * alert_id
ID of alert.
const char * comment
Comment on LSC credential.
int overrides
Whether to include overrides in the report.
int alterable
Whether the task is alterable.
int omp_get_task_ext(gnutls_session_t *, omp_get_task_opts_t, entity_t *)
Get a task (generic version).
int omp_create_lsc_credential_ext(gnutls_session_t *, omp_create_lsc_credential_opts_t, gchar **)
Create an LSC credential.
const char * slave_id
ID of the slave to get report from.
const char * ssh_credential_id
ID of SSH credential.
char * filter
Term to filter results.
int omp_start_task_report_c(openvas_connection_t *, const char *, char **)
Start a task and read the manager response.
Struct holding options for omp get_system_reports command.
const char * comment
Comment on task.
int host_first_result
Skip over results before this result number.
Struct holding options for omp get_tasks command.
const char * auth_algorithm
SNMP authentication algorithm.
int omp_get_report_ext(gnutls_session_t *, omp_get_report_opts_t, entity_t *)
Get a report (generic version).
array_t * alert_ids
Array of alert IDs.
int omp_delete_target_ext(gnutls_session_t *, const char *, omp_delete_opts_t)
Delete a target.
array_t * observer_groups
IDs of observer groups.
const char * passphrase
Passphrase.
const char * alive_tests
Alive tests.
char * type
Type of report.
const char * slave_id
ID of task schedule.
const char * esxi_credential_id
ID of ESXi credential.
const char * max_hosts
Max hosts preference.
const char * privacy_password
SNMP privacy password.
char * host_levels
Letter encoded threat level filter, for hosts.
int omp_resume_task_report(gnutls_session_t *, const char *, char **)
Resume a task and read the manager response.
char * delta_report_id
ID of report to compare single report to.
const char * source_iface
Source iface preference.
int omp_ping(gnutls_session_t *, int)
"Ping" the manager.
const char * hosts
Name of target.
int timeout
Timeout for authentication.
Struct holding options for authentication.
int check_response(gnutls_session_t *)
Read response and convert status of response to a return value.
const char * start_time
Time of first data point.
int omp_modify_task_file(gnutls_session_t *, const char *, const char *, const void *, gsize)
Modify a file on a task.
int omp_create_task(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create a task given a config and target.
int ignore_pagination
Whether to ignore pagination filters.
int details
Whether to include overrides in the tasks.
char * filt_id
ID of filter, to filter results.
int omp_get_system_reports(gnutls_session_t *, const char *, int, entity_t *)
Get system reports.
Struct holding options for omp create_lsc_credential command.
char ** severity
[out] Severity class setting.
const char * port_range
Port range.
const char * actions
Actions argument.
const char * end_time
Time of last data point.
char * search_phrase
Search phrase result filter.
const char * levels
Result levels to include.
const char * actions
Actions argument.
int first_result
First result to get.
const char * exclude_hosts
Hosts to exclude.
int host_max_results
Maximum number of results to return.
int timeout
Timeout for OMP response.
const char * comment
Comment on target.
const char * username
Password.
int omp_stop_task(gnutls_session_t *, const char *)
Stop a task and read the manager response.
const char * password
Username.
int apply_overrides
Whether overrides are applied.
int omp_start_task_report(gnutls_session_t *, const char *, char **)
Start a task and read the manager response.
int omp_resume_task_report_c(openvas_connection_t *, const char *, char **)
Resume a task and read the manager response.
char * pos
Position of report from end.
Struct holding options for omp create_task command.
int details
Whether to include overrides in the tasks.
const char * privacy_algorithm
SNMP privacy algorithm.
Struct holding options for omp create_target command.
int omp_get_targets(gnutls_session_t *, const char *, int, int, entity_t *)
Get a target.
int omp_ping_c(openvas_connection_t *, int, gchar **)
"Ping" the manager.
int omp_stop_task_c(openvas_connection_t *, const char *)
Stop a task and read the manager response.
const char * smb_credential_id
ID of SMB credential.
const char * scanner_id
ID of task scanner.
int ssh_credential_port
Port for SSH access.
int omp_delete_task(gnutls_session_t *, const char *)
Delete a task and read the manager response.
const char * in_assets
In assets preference.
const char * schedule_id
ID of task schedule.
int omp_get_system_reports_ext(gnutls_session_t *, omp_get_system_reports_opts_t, entity_t *)
Get system reports.
const char * name
Name of target.
char * min_cvss_base
Minimum CVSS base filter.
int autofp
Whether to trust vendor security updates. 0 No, 1 full match, 2 partial.
int omp_delete_config_ext(gnutls_session_t *, const char *, omp_delete_opts_t)
Delete a config.
int omp_delete_task_ext(gnutls_session_t *, const char *, omp_delete_opts_t)
Delete a task and read the manager response.
Struct holding options for various omp delete_[...] commands.
char ** timezone
[out] Timezone if any, else NULL.
int rcfile
Ignored. Removed since OMP 6.0.
char ** pw_warning
[out] Password warning, NULL if password is okay.
int notes_details
Whether to include details of above.
int omp_authenticate_info_ext(gnutls_session_t *, omp_authenticate_info_opts_t)
Authenticate with the manager.
const char * max_checks
Max checks preference.
char * min_qod
Minimum QoD filter.
const char * filter
Filter argument.
const char * name
Name of LSC credential.
int omp_delete_report(gnutls_session_t *, const char *)
Remove a report.
const char * name
Name of task.
int max_results
Maximum number of results to return.
const char * config_id
ID of config.
char * host_search_phrase
Search phrase result filter.
int notes
Whether to include associated notes.
int reverse_lookup_unify
Scanner pref reverse_lookup_unify.
const char * snmp_credential_id
ID of SNMP credential.
int result_hosts_only
Whether to include only hosts that have results.
int omp_get_tasks(gnutls_session_t *, const char *, int, int, entity_t *)
Get the status of a task.
const char * report_id
ID of single report to get.
int omp_create_lsc_credential(gnutls_session_t *, const char *, const char *, const char *, const char *, gchar **)
Create an LSC Credential.
const char * private_key
Private key.
const char * format_id
ID of required report format.
int omp_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 omp_authenticate(gnutls_session_t *session, const char *username, const char *password)
Authenticate with the manager.
const char * observers
Comma-separated string of observer users.