27 #ifndef OPENVAS_MANAGER_MANAGE_H 28 #define OPENVAS_MANAGER_MANAGE_H 34 #include <gnutls/gnutls.h> 36 #include <openvas/misc/openvas_auth.h> 37 #include <openvas/base/array.h> 38 #include <openvas/base/credentials.h> 39 #include <openvas/base/nvti.h> 40 #include <openvas/base/openvas_networking.h> 41 #include <openvas/osp/osp.h> 42 #include <openvas/misc/openvas_server.h> 47 #define ALL_LOG_LEVELS (G_LOG_LEVEL_MASK \ 49 | G_LOG_FLAG_RECURSION) 55 #define g_info(...) g_log (G_LOG_DOMAIN, \ 70 init_manage (GSList*,
int,
const gchar *,
int,
int,
int,
int,
void (*) (),
71 int (*) (openvas_connection_t *, gchar *),
238 #define AUTO_DELETE_KEEP_MIN 2 243 #define AUTO_DELETE_KEEP_MAX 1200 389 #define ALERT_MESSAGE_INCLUDE \ 392 "After the event $e,\n" \ 393 "the following condition was met: $c\n" \ 395 "This email escalation is configured to apply report format '$r'.\n" \ 396 "Full details and other report formats are available on the scan engine.\n" \ 404 "This email was sent to you as a configured security scan escalation.\n" \ 405 "Please contact your local system administrator if you think you\n" \ 406 "should not have received it.\n" 411 #define SECINFO_ALERT_MESSAGE_INCLUDE \ 414 "After the event $e,\n" \ 415 "the following condition was met: $c\n" \ 417 "This email escalation is configured to apply report format '$r'.\n" \ 418 "Full details and other report formats are available on the scan engine.\n" \ 426 "This email was sent to you as a configured security scan escalation.\n" \ 427 "Please contact your local system administrator if you think you\n" \ 428 "should not have received it.\n" 433 #define ALERT_MESSAGE_ATTACH \ 436 "After the event $e,\n" \ 437 "the following condition was met: $c\n" \ 439 "This email escalation is configured to attach report format '$r'.\n" \ 440 "Full details and other report formats are available on the scan engine.\n" \ 445 "This email was sent to you as a configured security scan escalation.\n" \ 446 "Please contact your local system administrator if you think you\n" \ 447 "should not have received it.\n" 452 #define SECINFO_ALERT_MESSAGE_ATTACH \ 455 "After the event $e,\n" \ 456 "the following condition was met: $c\n" \ 458 "This email escalation is configured to attach report format '$r'.\n" \ 459 "Full details and other report formats are available on the scan engine.\n" \ 464 "This email was sent to you as a configured security scan escalation.\n" \ 465 "Please contact your local system administrator if you think you\n" \ 466 "should not have received it.\n" 515 create_alert (
const char*,
const char*,
const char*, event_t, GPtrArray*,
516 alert_condition_t, GPtrArray*, alert_method_t, GPtrArray*,
520 copy_alert (
const char*,
const char*,
const char*, alert_t*);
523 modify_alert (
const char*,
const char*,
const char*,
const char*,
524 event_t, GPtrArray*, alert_condition_t, GPtrArray*,
525 alert_method_t, GPtrArray*);
537 manage_alert (
const char *,
const char *, event_t,
const void*, gchar **);
884 copy_task (
const char*,
const char*,
const char *,
int, task_t*);
939 set_scan_ports (report_t,
const char*,
unsigned int,
unsigned int);
1016 int*,
int*,
int*,
int*,
int*,
int*,
int*);
1065 #define LSC_FAMILY_LIST \ 1066 "'AIX Local Security Checks'," \ 1067 " 'CentOS Local Security Checks'," \ 1068 " 'Debian Local Security Checks'," \ 1069 " 'Fedora Local Security Checks'," \ 1070 " 'FreeBSD Local Security Checks'," \ 1071 " 'Gentoo Local Security Checks'," \ 1072 " 'HP-UX Local Security Checks'," \ 1073 " 'Mac OS X Local Security Checks'," \ 1074 " 'Mandrake Local Security Checks'," \ 1075 " 'Red Hat Local Security Checks'," \ 1076 " 'Solaris Local Security Checks'," \ 1077 " 'SuSE Local Security Checks'," \ 1078 " 'Ubuntu Local Security Checks'," \ 1079 " 'Windows : Microsoft Bulletins'," \ 1080 " 'Privilege escalation'" 1095 #define OVAS_MANAGE_REPORT_ID_LENGTH UUID_LEN_STR 1100 #define APPLY_OVERRIDES_DEFAULT 0 1105 #define QOD_DEFAULT 75 1110 #define MIN_QOD_DEFAULT 70 1162 make_result (task_t,
const char*,
const char*,
const char*,
1163 const char*,
const char*);
1166 make_osp_result (task_t,
const char*,
const char*,
const char*,
const char*,
1167 const char *,
const char *,
int);
1170 make_cve_result (task_t,
const char*,
const char*,
double,
const char*);
1206 const char *,
const char *,
const char *);
1227 create_report (array_t*,
const char *,
const char *,
const char *,
const char *,
1228 const char *,
const char *, array_t*, array_t*, array_t*,
1281 const char*,
int,
int,
int*);
1284 report_counts (
const char*,
int*,
int*,
int*,
int*,
int*,
int*,
double*,
1378 const char*,
const gchar *);
1487 int,
int,
const char *,
1488 gsize *, gchar **, gchar **, gchar **, gchar **, gchar **);
1493 gboolean (*) (
const char *,
1494 int (*) (
const char*,
void*),
1496 int (*) (
const char *,
void*),
void *,
const char *,
1497 const char *,
const char *,
int,
const char *,
1498 const char *,
int,
int,
const gchar *);
1509 const char *,
const char *,
int,
const char *);
1531 #define MANAGE_ABSOLUTE_MAX_IPS_PER_TARGET 70000 1536 #define MANAGE_MAX_HOSTS 4095 1541 #define MANAGE_USER_MAX_HOSTS 16777216 1551 int *, gchar **, gchar **, gchar **, gchar **,
1552 int *,
int *,
int *,
int *,
int *, gchar **);
1567 create_target (
const char*,
const char*,
const char*,
const char*,
const char*,
1568 const char *,
const char*, credential_t,
const char*,
1569 credential_t, credential_t, credential_t,
const char *,
1570 const char *,
const char *,
int, target_t*);
1573 copy_target (
const char*,
const char*,
const char *, target_t*);
1576 modify_target (
const char*,
const char*,
const char*,
const char*,
const char*,
1577 const char*,
const char*,
const char*,
const char*,
const char*,
1578 const char*,
const char *,
const char*,
const char*);
1761 create_config (
const char*,
const char*,
const array_t*,
const array_t*,
1762 const char*, config_t*,
char**);
1769 copy_config (
const char*,
const char*,
const char *, config_t*);
1991 #define NVT_SELECTOR_TYPE_ALL 0 1996 #define NVT_SELECTOR_TYPE_FAMILY 1 2001 #define NVT_SELECTOR_TYPE_NVT 2 2006 #define NVT_SELECTOR_TYPE_ANY 999 2106 const char*,
const char*,
const char*,
const char*,
2107 const char*,
const char*,
const char*,
const char*,
2116 const char*,
const char*,
const char*,
const char*,
2117 const char*,
const char*,
const char*,
const char*);
2269 create_agent (
const char*,
const char*,
const char*,
const char*,
const char*,
2270 const char*,
const char*, agent_t*);
2273 copy_agent (
const char*,
const char*,
const char *, agent_t *);
2342 host_notice (
const char *,
const char *,
const char *,
const char *,
2343 const char *,
int,
int);
2451 create_note (
const char*,
const char*,
const char*,
const char*,
const char*,
2452 const char*,
const char*, task_t, result_t, note_t*);
2464 modify_note (note_t,
const char*,
const char*,
const char*,
const char*,
2465 const char*,
const char*, task_t, result_t);
2523 const char*,
const char*,
const char*,
const char*,
2524 const char*, task_t, result_t, override_t*);
2536 modify_override (override_t,
const char*,
const char*,
const char*,
const char*,
2537 const char*,
const char*,
const char*,
const char*, task_t,
2637 const char *,
char **);
2641 const char *,
const char *,
const char *,
const char *,
2646 const char *,
const char *,
const char *,
const char *,
2647 const char *,
const char *);
2662 create_scanner (
const char*,
const char *,
const char *,
const char *,
2663 const char *, scanner_t *,
const char *,
const char *);
2666 copy_scanner (
const char*,
const char*,
const char *, scanner_t *);
2669 modify_scanner (
const char*,
const char*,
const char*,
const char *,
2670 const char *,
const char *,
const char *,
const char *);
2792 #define SCHEDULE_PERIOD 10 2798 #define SCHEDULE_TIMEOUT_MIN_SECS 20 2803 #define SCHEDULE_TIMEOUT_DEFAULT 60 2810 time_t,
const char*, schedule_t *);
2813 copy_schedule (
const char*,
const char*,
const char *, schedule_t *);
2845 schedule_info (schedule_t, time_t *, time_t *,
int *,
int *,
int *);
2902 modify_schedule (
const char*,
const char*,
const char *, time_t, time_t, time_t,
2903 time_t,
const char *);
2936 const char *,
const char *,
int, array_t *, array_t *,
2937 array_t *,
const char *, report_format_t *);
2944 const char *,
const char *,
const char *);
3100 report_format_param_t
3141 copy_group (
const char *,
const char *,
const char *, group_t *);
3144 create_group (
const char *,
const char *,
const char *,
int, group_t *);
3171 modify_group (
const char *,
const char *,
const char *,
const char *);
3178 const char *,
const char *, permission_t *);
3248 const char *,
const char *,
const char *);
3264 array_t *, port_list_t*);
3267 copy_port_list (
const char*,
const char*,
const char*, port_list_t*);
3274 const char *, port_range_t *);
3366 copy_role (
const char *,
const char *,
const char *, role_t *);
3369 create_role (
const char *,
const char *,
const char *, role_t *);
3396 modify_role (
const char *,
const char *,
const char *,
const char *);
3486 create_filter (
const char*,
const char*,
const char*,
const char*,
int,
3490 copy_filter (
const char*,
const char*,
const char*, filter_t*);
3532 modify_filter (
const char*,
const char*,
const char*,
const char*,
const char*);
3538 manage_schema (gchar *, gchar **, gsize *, gchar **, gchar **);
3553 parse_tags (
const char *, gchar **, gchar **);
3823 modify_setting (
const gchar *,
const gchar *,
const gchar *, gchar **);
3884 copy_user (
const char*,
const char*,
const char*, user_t*);
3935 create_user (
const gchar *,
const gchar *,
const gchar *,
int,
const gchar *,
3936 int,
const array_t *, array_t *, gchar **, array_t *, gchar **,
3937 gchar **, user_t *,
int);
3940 delete_user (
const char *,
const char *,
int,
int,
const char*,
const char*);
3943 modify_user (
const gchar *, gchar **,
const gchar *,
const gchar *,
3944 const gchar *,
int,
const gchar *,
int,
const array_t *, array_t *,
3945 gchar **, array_t *, gchar **, gchar **);
4011 copy_tag (
const char*,
const char*,
const char*, tag_t*);
4014 create_tag (
const char *,
const char *,
const char *,
const char *,
4015 const char *,
const char *, tag_t *);
4021 modify_tag (
const char *,
const char *,
const char *,
const char *,
4022 const char *,
const char *,
const char *);
4110 GArray *,
const char *,
const char*, GArray*, GArray*,
4111 int,
int,
const char *,
const char *);
4147 (
const gchar *,
const gchar *,
int);
4172 void *, array_t *,
int,
const char*,
4173 gchar **, gchar **, gchar **);
4182 iso_time_tz (time_t *,
const char *,
const char **);
void append_to_task_comment(task_t, const char *, int)
Append text to the comment associated with a task.
char * target_port_range(target_t)
Return the port range of a target, in OTP format.
const char * report_iterator_uuid(iterator_t *)
int trash_port_list_in_use(port_list_t)
Check whether a trashcan Port List is in use.
int report_format_predefined(report_format_t)
Return whether a report format is predefined.
void init_config_task_iterator(iterator_t *, config_t, int)
Initialise a config task iterator.
int buffer_get_filter_xml(GString *, const char *, const get_data_t *, const char *, const char *)
int copy_port_list(const char *, const char *, const char *, port_list_t *)
Create Port List from an existing Port List.
const char * override_iterator_new_threat(iterator_t *)
Get the threat from an override iterator.
int verify_report_format(const char *)
Verify a report format.
int trash_target_credential_location(target_t, const char *)
Get whether a credential of a trash target is in trashcan.
int task_schedule_periods_uuid(const gchar *)
Set the next time a scheduled task will be due.
alert_condition_t
Types of alert conditions.
long long int permission_t
const char * preference_iterator_name(iterator_t *)
const char * result_iterator_nvt_cvss_base(iterator_t *)
Get the NVT CVSS base value from a result iterator.
const char * report_format_iterator_description(iterator_t *)
int schedule_task_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
int details
Boolean. Whether to include full details.
void init_cve_dfn_cert_adv_iterator(iterator_t *, const char *, int, const char *)
Initialise CVE iterator, for CVEs referenced by a DFN-CERT advisory.
gboolean find_user_by_name_with_permission(const char *, user_t *, const char *)
Find a user given a name.
int manage_system_report(const char *, const char *, const char *, const char *, const char *, char **)
Get a system report.
double aggregate_iterator_max(iterator_t *, int)
Get the maximum from an aggregate iterator.
int agent_in_use(agent_t)
Check whether an agent is in use.
const char * credential_iterator_auth_algorithm(iterator_t *)
void init_manage_process(int, const gchar *)
Initialize the manage library for a process.
void init_port_list_target_iterator(iterator_t *, port_list_t, int)
Initialise a port list target iterator.
char * manage_port_name(int, const char *)
Returns associated name for a tcp/ip port.
const char * tag_iterator_value(iterator_t *)
int user_role_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
int modify_group(const char *, const char *, const char *, const char *)
Modify a group.
int delete_user(const char *, const char *, int, int, const char *, const char *)
Delete a user.
void report_set_slave_name(report_t, const gchar *)
Set the name of the slave on a report.
int report_host_noticeable(report_t, const gchar *)
Check if a report host is alive and has at least one result.
const char * filter_iterator_type(iterator_t *)
Get the type from a filter iterator.
const char * target_iterator_alive_tests(iterator_t *)
Get the alive test description from a target iterator.
int init_credential_iterator(iterator_t *, const get_data_t *)
Initialise a Credential iterator.
void report_add_result(report_t, result_t)
Add a result to a report.
task_status_t
Task statuses, also used as scan/report statuses.
const char * resource_tag_iterator_value(iterator_t *)
const char * report_format_iterator_trust(iterator_t *)
Get the trust value from a report format iterator.
int trash
Boolean. Whether to return from trashcan.
int host_iterator_current_port(iterator_t *)
Get the current port from a host iterator.
int modify_note(note_t, const char *, const char *, const char *, const char *, const char *, const char *, task_t, result_t)
Modify a note.
const char * ovaldef_info_iterator_description(iterator_t *)
const char * result_iterator_nvt_xref(iterator_t *)
Get the NVT XREF from a result iterator.
const char * nvt_iterator_qod(iterator_t *)
task_t current_scanner_task
The task currently running on the scanner.
char * default_value
Default value of preference.
char * string
Original string describing port.
int config_iterator_nvt_count(iterator_t *)
Get the nvt count from a config iterator.
int trash_group_in_use(group_t)
Check whether a trashcan group is in use.
int config_count(const get_data_t *)
Count the number of scan configs.
int delete_config(const char *, int)
Delete a config.
char * target_hosts(target_t)
Return the hosts associated with a target.
char * credential_iterator_deb(iterator_t *)
Get the deb from a Credential iterator.
const char * host_identifier_iterator_os_id(iterator_t *)
gchar * report_path_task_uuid(gchar *)
void report_set_slave_port(report_t, int)
Set the port of the slave of a report.
const char * host_identifier_iterator_value(iterator_t *)
int report_counts_id(report_t, int *, int *, int *, int *, int *, int *, double *, const get_data_t *, const char *)
Get only the filtered message counts for a report.
result_t make_cve_result(task_t, const char *, const char *, double, const char *)
Make a CVE result.
const char * override_iterator_nvt_name(iterator_t *)
task_t override_iterator_task(iterator_t *)
Get the task from a override iterator.
int modify_scanner(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify an scanner.
void init_nvt_cert_bund_adv_iterator(iterator_t *, const char *, int, const char *)
Initialise an CERT-Bund iterator, for advisories relevant to a NVT.
gchar * certificate_iso_time(time_t)
Converts a certificate time to an ISO time string.
const char * host_identifier_iterator_os_title(iterator_t *)
int set_task_preferences(task_t, array_t *)
Set the preferences of a task.
void set_scan_host_start_time_otp(report_t, const char *, const char *)
Set the start time of a scanned host.
int alert_in_use(alert_t)
Return whether a alert is in use by a task.
char * user_uuid(user_t)
Return the UUID of a user.
const char * report_format_param_iterator_name(iterator_t *)
int create_credential(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, credential_t *)
Create a Credential.
long long int credential_t
const char * result_iterator_nvt_tag(iterator_t *)
Get the NVT tags from a result iterator.
scanner_t config_scanner(config_t)
Return the scanner associated with a config, if any.
char * name
Name of preference.
int cve_info_count(const get_data_t *get)
Count number of cve.
void init_scanner_task_iterator(iterator_t *, scanner_t)
Initialise a scanner task iterator.
gchar * user_hosts(const char *)
Return the hosts of a user.
const char * note_iterator_port(iterator_t *)
char * target_ssh_port(target_t)
Return the SSH LSC port of a target.
report_format_param_type_t report_format_param_iterator_type(iterator_t *)
Get the type from a report format param iterator.
const char * agent_iterator_installer_64(iterator_t *)
schedule_t task_schedule_uuid(const gchar *)
Return the schedule of a task.
void set_task_target(task_t, target_t)
Set the target of a task.
const char * report_format_alert_iterator_uuid(iterator_t *)
const char * task_iterator_first_report(iterator_t *)
Get the first report UUID from a task iterator.
int config_writable(config_t)
Return whether a config can be modified.
char * report_format_owner_uuid(report_format_t)
Return the UUID of the owner of a report format.
void cleanup_iterator(iterator_t *)
Cleanup an iterator.
char * ovaldef_uuid(const char *, const char *)
Get the uuid for an OVALDEF from a name and file name.
int task_target_in_trash(task_t)
Return whether the target of a task is in the trashcan.
void manage_complete_nvt_cache_update(GList *, GList *, int)
Complete an update of the NVT cache.
const char * credential_iterator_password(iterator_t *)
Get the password from a Credential iterator.
void sort_data_free(sort_data_t *)
Free a sort_data_t struct and its related resources.
const char * note_iterator_nvt_type(iterator_t *)
Get the NVT type from a note iterator.
int trash_scanner_readable(scanner_t)
Return whether a trashcan scanner is readable.
void init_family_iterator(iterator_t *, int, const char *, int)
Initialise an NVT selector family iterator.
gchar * stat
The statistic to sort by.
int modify_schedule(const char *, const char *, const char *, time_t, time_t, time_t, time_t, const char *)
Modify a schedule.
int target_count(const get_data_t *)
Count number of targets.
const char * cve_iterator_cvss(iterator_t *)
int trash_port_list_writable(port_list_t)
Check whether a trashcan Port List is writable.
gchar * group_users(group_t)
Gets users of group as a string.
time_t schedule_iterator_first_time(iterator_t *)
Get the first time from a schedule iterator.
int tag_iterator_orphan(iterator_t *)
Get if a tag is orphaned from a Tag iterator.
gboolean find_task(const char *id, task_t *)
Find a task given an identifier.
void init_user_group_iterator(iterator_t *, user_t)
Initialise an info iterator.
int permission_writable(permission_t)
Return whether a permission is writable.
void set_credential_certificate(credential_t, const char *)
Set the certificate of a Credential.
const char * config_iterator_nvt_selector(iterator_t *)
gpointer * current
Current file.
int modify_report_format(const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify a report format.
port_protocol_t protocol
Port protocol (TCP, UDP, ...).
const char * report_format_param_iterator_type_name(iterator_t *)
Get the name of the type of a report format param iterator.
const char * prognosis_iterator_cve(iterator_t *)
int trash_config_readable_uuid(const gchar *)
Return whether a trashcan config is readable.
const char * result_iterator_qod(iterator_t *)
int task_config_in_trash(task_t)
Return whether the config of a task is in the trashcan.
int credential_in_use(credential_t)
Check whether a Credential is in use.
int trash_scanner_in_use(scanner_t)
Check whether a trashcan scanner is writable.
long long int report_format_param_iterator_type_min(iterator_t *)
Get the type min from a report format param iterator.
credential_t scanner_iterator_credential(iterator_t *)
Get the credential of the scanner from a scanner iterator.
int trash_report_format_in_use(report_format_t)
Return whether a report format in trash is referenced by an alert.
void append_task_open_port(task_t task, const char *, const char *)
int manage_scap_db_supported_version()
Return the database version supported by this manager.
gboolean next(iterator_t *)
Increment an iterator.
resource_t get_iterator_resource(iterator_t *)
Get the resource from a GET iterator.
const char * result_iterator_original_severity(iterator_t *)
Get the original severity from a result iterator.
const char * dfn_cert_adv_info_iterator_max_cvss(iterator_t *)
int manage_verify_scanner(GSList *, const gchar *, const gchar *)
Verify the given scanner.
gchar * get_nvti_xml(iterator_t *, int, int, int, const char *, config_t, int)
Create and return XML description for an NVT.
int move_task(const char *, const char *)
Reassign a task to another slave.
int task_scanner_in_trash(task_t)
Return whether the scanner of a task is in the trashcan.
int report_counts(const char *, int *, int *, int *, int *, int *, int *, double *, int, int, int)
Get the message counts for a report given the UUID.
int create_asset_report(const char *, const char *)
Create all available assets from a report.
char * task_config_uuid(task_t)
Return the UUID of the config of a task.
void manage_reset_currents()
Cleanup as immediately as possible.
int task_false_positive_size(task_t)
void set_credential_auth_algorithm(credential_t, const char *)
Set the auth_algorithm of a Credential.
int trash_credential_in_use(credential_t)
Check whether a trashcan Credential is in use.
char * alert_iterator_filter_name(iterator_t *)
Return the filter name from an alert iterator.
void init_credential_target_iterator(iterator_t *, credential_t, int)
Initialise a Credential target iterator.
double report_severity(report_t, int, int)
Get the maximum severity of a report.
const char * get_iterator_name(iterator_t *)
int nvt_iterator_category(iterator_t *)
Get the category from an NVT iterator.
void host_detail_free(host_detail_t *)
Free a host detail.
const char * scanner_iterator_host(iterator_t *)
gchar * cve_cvss_base(const gchar *)
Get the short file name for an OVALDEF.
int scanner_in_use(scanner_t)
Check whether an scanner is in use.
void init_alert_task_iterator(iterator_t *, alert_t, int)
Initialise an alert task iterator.
char * report_slave_task_uuid(report_t)
Return the UUID of the task on the slave.
void manage_set_radius_info(int, gchar *, gchar *)
Set RADIUS info.
gchar * get_scheduled_user_uuid()
Access UUID of user that scheduled the current task.
int copy_permission(const char *, const char *, permission_t *)
Create a permission from an existing permission.
int trash_role_in_use(role_t)
Check whether a trashcan role is in use.
int manage_scap_loaded()
Check whether SCAP is available.
const char * result_iterator_level(iterator_t *)
Get the severity/threat level from a result iterator.
char * qod
QoD (quality of detection).
int verify_scanner(const char *, char **)
Verify a scanner.
const char * nvt_iterator_description(iterator_t *)
const char * resource_tag_iterator_uuid(iterator_t *)
const char * filter_alert_iterator_uuid(iterator_t *)
int delete_permission(const char *, int)
Delete a permission.
int severity_data_range_count(const severity_data_t *, double, double)
Calculate the total of severity counts in a range.
const char * agent_iterator_installer(iterator_t *)
char * task_description(task_t)
int manage_count_hosts(const char *, const char *)
Return number of hosts described by a hosts string.
int sql_cancel()
Cancels the current SQL statement.
void init_host_prognosis_iterator(iterator_t *, report_host_t, int, int, const char *, const char *, int, const char *)
Initialise a report host prognosis iterator.
int column_is_timestamp(const char *)
Return whether a column is one containing timestamp.
const char * get_iterator_modification_time(iterator_t *)
int set_task_schedule_periods_id(task_t, int)
Set the schedule periods of a task, given an ID.
void init_cpe_cve_iterator(iterator_t *, const char *, int, const char *)
Initialise an CVE iterator, for CVEs reported for a certain CPE.
const char * credential_iterator_type(iterator_t *)
int target_writable(target_t)
Return whether a target is writable.
const char * ovaldef_info_iterator_deprecated(iterator_t *)
const char * host_iterator_start_time(iterator_t *)
void init_alert_data_iterator(iterator_t *, alert_t, int, const char *)
Initialise an alert data iterator.
int agent_count(const get_data_t *)
Count number of agents.
int report_result_host_count(report_t, int)
Count a report's total number of hosts with results.
double prognosis_iterator_cvss_double(iterator_t *)
Get the CVSS from a result iterator as a double.
A report format file iterator.
int manage_get_users(GSList *, const gchar *, const gchar *)
List users.
int cleanup_schedule_times()
Fixes the DST offset in schedule_next_time of tasks.
int manage_encrypt_all_credentials(GSList *, const gchar *)
Encrypt or re-encrypt all credentials.
char * host_uuid(resource_t)
Return the UUID of a host.
const char * override_iterator_port(iterator_t *)
const char * manage_scap_update_time()
GET SCAP update time, as a string.
int scan_host_end_time(report_t, const char *)
Get the end time of a scanned host.
int manage_max_rows(int)
Return max, adjusted according to maximum allowed rows.
char * credential_uuid(credential_t)
Get the UUID of a Credential.
char * trash_credential_uuid(credential_t)
Get the UUID of a Credential in the trashcan.
double aggregate_iterator_mean(iterator_t *, int)
Get the mean from an aggregate iterator.
const char * host_identifier_iterator_source_data(iterator_t *)
int manage_run_wizard(const gchar *, int(*)(void *, gchar *, gchar **), void *, array_t *, int, const char *, gchar **, gchar **, gchar **)
Run a wizard.
int aggregate_iterator_count(iterator_t *)
Get the count from an aggregate iterator.
const char * ovaldef_info_iterator_status(iterator_t *)
int tag_writable(tag_t)
Return whether a tag is writable.
int create_user(const gchar *, const gchar *, const gchar *, int, const gchar *, int, const array_t *, array_t *, gchar **, array_t *, gchar **, gchar **, user_t *, int)
Adds a new user to the OpenVAS installation.
const char * filter_iterator_term(iterator_t *)
int save_tasks()
Dummy function.
const char * agent_iterator_trust(iterator_t *)
Get the trust value from an agent iterator.
const char * nvt_iterator_version(iterator_t *)
int manage_modify_scanner(GSList *, const gchar *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify the given scanner.
int create_target(const char *, const char *, const char *, const char *, const char *, const char *, const char *, credential_t, const char *, credential_t, credential_t, credential_t, const char *, const char *, const char *, int, target_t *)
Create a target.
int integer_value
Integer value of the keyword.
int severity_in_level(double, const char *)
Check whether a severity falls within a threat level.
char * credential_type(credential_t)
Get the type of a Credential.
const char * alert_condition_name(alert_condition_t)
Get the name of an alert condition.
unsigned int task_count(const get_data_t *)
Return the number of tasks associated with the current user.
const char * file_iterator_name(file_iterator_t *)
Return the name from a file iterator.
char * result_host_asset_id(const char *, result_t)
Return the UUID of the asset associated with a result host.
char * trash_credential_name(credential_t)
Get the name of an LSC credential in the trashcan.
const char * note_iterator_severity(iterator_t *)
const char * target_iterator_comment(iterator_t *)
const char * user_iterator_role(iterator_t *)
int config_type(config_t)
Return the type of a config.
int create_permission(const char *, const char *, const char *, const char *, const char *, const char *, permission_t *)
Create a permission.
int delete_schedule(const char *, int)
Delete a schedule.
char * trash_target_name(target_t)
Return the name of a trashcan target.
char * scan_end_time_uuid(const char *)
Get the end time of a scan.
int report_format_trust(report_format_t)
Return the trust of a report format.
int user_hosts_allow(const char *)
Return whether hosts value of a user denotes allowed.
gboolean find_result_with_permission(const char *, result_t *, const char *)
Find a result for a set of permissions, given a UUID.
int manage_empty_trashcan()
Empty the trashcan.
const char * preference_iterator_value(iterator_t *)
int task_result_count(task_t, int)
Return number of results in a task.
const char * override_iterator_severity(iterator_t *)
int delete_scanner(const char *, int)
Delete a scanner.
const char * credential_full_type(const char *)
Get the written-out name of an LSC Credential type.
const char * credential_target_iterator_uuid(iterator_t *)
gboolean find_port_range(const char *, port_list_t *)
const char * host_detail_iterator_name(iterator_t *)
int set_task_alerts(task_t, array_t *, gchar **)
Set the alerts on a task, removing any previous alerts.
char * role_uuid(role_t)
Gets UUID of role.
const char * task_group_iterator_uuid(iterator_t *)
gchar * task_second_last_report_id(task_t)
Get report ID from second most recently completed invocation of task.
int user_is_admin(const char *)
const char * get_iterator_owner_name(iterator_t *)
char * type_columns(const char *, int)
Return the SQL column definition for a resource iterator.
char * task_owner_name(task_t)
Return the name of the owner of a task.
int init_asset_host_iterator(iterator_t *, const get_data_t *)
Initialise a host iterator.
void set_credential_login(credential_t, const char *)
Set the login of a Credential.
char * setting_filter(const char *)
Return the uuid of a resource filter from settings.
void set_task_run_status(task_t, task_status_t)
Set the run state of a task.
int set_credential_data(credential_t, const char *, const char *)
Set data for a credential.
int set_task_parameter(task_t, const char *, char *)
Set a task parameter.
int scan_start_time_epoch(report_t)
Get the start time of a scan, in seconds since the epoch.
int init_schedule_iterator(iterator_t *, const get_data_t *)
Initialise a schedule iterator.
int init_tag_name_iterator(iterator_t *, const get_data_t *)
Initialise a iterator of tag names.
int init_role_iterator(iterator_t *, const get_data_t *)
Initialise a role iterator, including observed roles.
void init_task_group_iterator(iterator_t *, task_t)
Initialise a task group iterator.
int scanner_iterator_port(iterator_t *)
Get the port from an scanner iterator.
int trash_user_in_use(user_t)
Check whether a trashcan user is in use.
const char * config_timeout_iterator_value(iterator_t *)
const char * override_iterator_nvt_type(iterator_t *)
Get the NVT type from a override iterator.
int manage_optimize(GSList *, const gchar *, const gchar *)
Run one of the optimizations.
report_t current_report
The report of the current task.
const char * cve_info_iterator_description(iterator_t *)
const char * cve_iterator_name(iterator_t *)
void cleanup_manage_process(gboolean)
Cleanup the manage library.
char * nvt_oid
OID of NVT preference affects.
const char * target_iterator_port_list_name(iterator_t *)
int group_count(const get_data_t *)
Count number of groups.
char * hr_name
Extended, more human-readable name used by OSP.
void init_report_host_iterator(iterator_t *, report_t, const char *, report_host_t)
Initialise a host iterator.
int severity_matches_ov(double, double)
Check whether a severity matches an override's severity.
result_t result_iterator_result(iterator_t *)
Get the result from a result iterator.
int get_schedule_timeout()
Get the current schedule timeout.
report_t task_iterator_current_report(iterator_t *)
Return the current report of a task.
gboolean find_credential_with_permission(const char *, credential_t *, const char *)
Find a credential for a specific permission, given a UUID.
int copy_override(const char *, override_t *)
Create a override from an existing override.
int create_schedule(const char *, const char *, time_t, time_t, time_t, time_t, const char *, schedule_t *)
Create a schedule.
void set_credential_private_key(credential_t, const char *, const char *)
Set the private key and passphrase of a Credential.
gchar * role_users(role_t)
Gets users of role as a string.
const char * nvt_iterator_cvss_base(iterator_t *)
gchar * column
The column prefix, or NULL.
const char * cert_bund_adv_info_iterator_cve_refs(iterator_t *)
char * trash_target_uuid(target_t)
Return the UUID of a trashcan target.
gchar * file_iterator_content_64(file_iterator_t *)
Return the file contents from a file iterator.
gchar * summary
Summary of command.
const char * user_role_iterator_uuid(iterator_t *)
int report_count(const get_data_t *)
Count number of reports.
gchar * credential_value(credential_t, const char *)
Get a value from a credential.
const char * result_iterator_descr(iterator_t *)
int delete_target(const char *, int)
Delete a target.
void manage_get_ldap_info(int *, gchar **, gchar **, int *, gchar **)
Get LDAP info.
const char * permission_iterator_subject_type(iterator_t *)
int user_writable(user_t)
Check whether a user is writable.
void init_task_role_iterator(iterator_t *, task_t)
Initialise a task role iterator.
const char * config_file_iterator_content(iterator_t *)
alert_method_t alert_method_from_name(const char *)
Get an alert method from a name.
char * task_hosts_ordering(task_t)
Return the hosts ordering of a task.
void init_filter_alert_iterator(iterator_t *, filter_t)
Initialise a filter alert iterator.
int load_tasks()
Dummy function.
gchar * host_routes_xml(host_t)
Get XML of a detailed host route.
const char * resource_tag_iterator_comment(iterator_t *)
char * iso_time_tz(time_t *, const char *, const char **)
Create an ISO time from seconds since epoch, given a timezone.
const char * report_format_iterator_extension(iterator_t *)
gboolean find_schedule_with_permission(const char *, schedule_t *, const char *)
Find a schedule for a specific permission, given a UUID.
int manage_max_hosts()
Get the maximum allowed number of hosts per target.
time_t schedule_iterator_period_months(iterator_t *)
Get the period months from a schedule iterator.
const char * target_task_iterator_uuid(iterator_t *)
int manage_cert_loaded()
Check whether CERT is available.
int alert_iterator_event(iterator_t *)
Return the event from an alert iterator.
host_t host_notice(const char *, const char *, const char *, const char *, const char *, int, int)
Notice a host.
time_t schedule_iterator_next_time(iterator_t *)
Get the next time a schedule could be schedulable.
const char * agent_iterator_installer_signature_64(iterator_t *)
int scanner_iterator_type(iterator_t *)
Get the type from an scanner iterator.
const char * permission_iterator_subject_uuid(iterator_t *)
const char * task_alert_iterator_uuid(iterator_t *)
const char * report_format_param_iterator_fallback(iterator_t *)
int tag_iterator_resource_location(iterator_t *)
Get the resource_location from a Tag iterator.
void manage_session_set_timezone(const char *)
Setup session timezone.
int init_system_report_type_iterator(report_type_iterator_t *, const char *, const char *)
Initialise a system report type iterator.
void hosts_set_max_severity(report_t, int *, int *)
Set the maximum severity of each host in a scan.
const char * note_iterator_text(iterator_t *)
char * port_range_uuid(port_range_t)
Return the UUID of a port_range.
int trash_permission_in_use(permission_t)
Return whether a trashcan permission is referenced by a task.
alert_t task_alert_iterator_alert(iterator_t *)
Get the alert from a task alert iterator.
const char * cert_bund_adv_info_iterator_summary(iterator_t *)
void init_report_iterator_task(iterator_t *, task_t)
Initialise a report iterator.
result_t make_osp_result(task_t, const char *, const char *, const char *, const char *, const char *, const char *, int)
Make an OSP result.
task_status_t task_iterator_run_status(iterator_t *)
Get the run status from a task iterator.
void set_scan_host_end_time(report_t, const char *, const char *)
Set the end time of a scanned host.
void report_set_source_iface(report_t, const gchar *)
Set the source interface of a report.
int cert_bund_adv_info_count(const get_data_t *get)
Count number of cert_bund_adv.
const char * nvt_iterator_cve(iterator_t *)
const char * nvt_iterator_name(iterator_t *)
void report_set_slave_uuid(report_t, const gchar *)
Set the UUID of the slave on a report.
int alert_iterator_condition(iterator_t *)
Return the condition from an alert iterator.
int result_count(const get_data_t *, report_t, const char *)
Count the number of results.
char * filt_id
Filter ID. Overrides "filter".
gchar * type_table(const char *, int)
Return the table name or union for a resource type.
void cleanup_report_type_iterator(report_type_iterator_t *)
Cleanup a report type iterator.
void init_host_identifier_iterator(iterator_t *, host_t, int, const char *)
Initialise a host identifier iterator.
void set_task_scanner(task_t, scanner_t)
Set the scanner of a task.
char * type
Type of preference (radio, password, ...).
const char * host_identifier_iterator_source_id(iterator_t *)
int trash_config_writable(config_t)
Return whether a trashcan config is writable.
int schedule_writable(schedule_t)
Return whether a schedule is writable.
alert_condition_t alert_condition_from_name(const char *)
Get an alert condition from a name.
char * nvt_oid(const char *)
Guess the OID of an NVT given a name.
gchar * manage_report(report_t, const get_data_t *, report_format_t, int, int, const char *, gsize *, gchar **, gchar **, gchar **, gchar **, gchar **)
Generate a report.
int delete_note(const char *, int)
Delete a note.
void set_report_format_name(report_format_t, const char *)
Set the name of the report format.
int delete_task(task_t, int)
Complete deletion of a task.
char * description
Description of the message.
alert_method_t
Types of alerts.
int task_uuid(task_t, char **)
Return the UUID of a task.
gchar * filter_term_value(const char *, const char *)
Return the value of a column keyword of a filter term.
int modify_credential(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify a Credential.
int trash_group_writable(group_t)
Check whether a trashcan group is writable.
void init_setting_iterator(iterator_t *, const char *, const char *, int, int, int, const char *)
Initialise a setting iterator, including observed settings.
void cleanup_file_iterator(file_iterator_t *)
Cleanup a report type iterator.
const char * credential_iterator_private_key(iterator_t *)
Get the private_key from a Credential iterator.
const char * schedule_iterator_timezone(iterator_t *)
int target_iterator_snmp_credential(iterator_t *)
Get the SNMP LSC credential from a target iterator.
gboolean report_task(report_t, task_t *)
Return the task of a report.
get_data_t * report_results_get_data(int, int, int, int, int)
Create a new basic get_data_t struct to get report results.
const char * host_iterator_host(iterator_t *)
const char * nvt_iterator_bid(iterator_t *)
keyword_type_t type
Type of keyword.
char * permission_name(permission_t)
Return the name of a permission.
int init_report_format_file_iterator(file_iterator_t *, report_format_t)
Initialise a report format file iterator.
int port_list_iterator_count_all(iterator_t *)
Get the port count from a port_list iterator.
gchar * report_results_filter_term(int, int, int, int, int)
Create a basic filter term to get report results.
time_t note_iterator_end_time(iterator_t *)
Get the end time from an note iterator.
int report_format_writable(report_format_t)
Return whether a report format is writable.
const char * type_name_plural(const char *)
Return the plural name of a resource type.
int manage_backup_db(const gchar *)
Backup the database to a file.
int report_format_active(report_format_t)
Return whether a report format is active.
int copy_task(const char *, const char *, const char *, int, task_t *)
Create a task from an existing task.
int init_manage(GSList *, int, const gchar *, int, int, int, int, void(*)(), int(*)(openvas_connection_t *, gchar *), int)
Initialize the manage library.
char * group_uuid(group_t)
Return the UUID of a group.
const char * severity_to_type(double)
Get the message type matching a severity score.
void reset_task(task_t)
Reset all running information for a task.
char * target_ssh_credential_name(const char *)
const char * dfn_cert_adv_info_iterator_cve_refs(iterator_t *)
gchar * truncate_private_key(const gchar *)
Truncate a private key, removing extra data.
int init_all_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise an info iterator.
char * scan_start_time_uuid(const char *)
Get the start time of a scan.
int report_format_iterator_active(iterator_t *)
Get the active flag from a report format iterator.
int alert_iterator_method(iterator_t *)
Return the method from an alert iterator.
const char * cpe_info_iterator_deprecated_by_id(iterator_t *)
GPtrArray * start
Array of files.
int asset_iterator_in_use(iterator_t *)
Get the "in use" status from an asset iterator.
config_t task_config(task_t)
Return the config of a task.
gboolean find_report_format_with_permission(const char *, report_format_t *, const char *)
Find a reportformat for a specific permission, given a UUID.
int authenticate(credentials_t *)
Authenticate credentials.
int verify_agent(const char *)
Verify an agent.
keyword_relation_t
Comparison returns.
char * filter_uuid(filter_t)
Return the UUID of a filter.
void cleanup_severity_data(severity_data_t *)
Clean up a severity data structure.
int asset_os_count(const get_data_t *)
Count number of oss.
int task_logs_size(task_t)
int create_asset_host(const char *, const char *, resource_t *)
Create a host asset.
void init_host_detail_iterator(iterator_t *, resource_t)
Initialise an asset host detail iterator.
char * target_exclude_hosts(target_t)
Return the excluded hosts associated with a target.
int init_filter_iterator(iterator_t *, const get_data_t *)
Initialise a filter iterator, including observed filters.
task_status_t task_run_status(task_t)
Return the run state of a task.
int schedule_count(const get_data_t *)
Count the number of schedules.
const char * asset_os_iterator_latest_severity(iterator_t *)
int schedule_info(schedule_t, time_t *, time_t *, int *, int *, int *)
Return info about a schedule.
const char * credential_iterator_certificate(iterator_t *)
void set_scan_start_time_otp(report_t, const char *)
Set the start time of a scan.
void set_credential_password(credential_t, const char *)
Set the password of a Credential.
int config_iterator_type(iterator_t *)
Get the type from a config iterator.
int setting_value_int(const char *, int *)
Get the value of a setting.
const char * credential_iterator_privacy_password(iterator_t *)
Get the privacy password from a Credential iterator.
int manage_alert(const char *, const char *, event_t, const void *, gchar **)
Escalate an alert with task and event data.
char * ovaldef_version(const char *)
Get the version of an OVALDEF using an ID.
gchar * name
Command name.
int trash_tag_writable(tag_t)
Return whether a trashcan tag is writable.
gchar * user_name(const char *)
Return the name of a user.
const char * report_format_param_iterator_value(iterator_t *)
const char * override_iterator_new_severity(iterator_t *)
int init_user_iterator(iterator_t *, const get_data_t *)
Initialise a user iterator, including observed users.
int modify_tag(const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify a tag.
gchar * app_location(report_host_t, const gchar *)
Get the location of an App for a report's host.
int scanner_writable(scanner_t)
Check whether a scanner is writable.
gboolean find_port_list(const char *, port_list_t *)
Find a port list given a UUID.
int manage_create_scanner(GSList *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
const char * nvt_selector_iterator_nvt(iterator_t *)
int alert_task_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
void report_set_slave_password(report_t, const gchar *)
char * description
Description of NVT.
const char * asset_os_iterator_highest_severity(iterator_t *)
int trash_agent_writable(agent_t)
Check whether a trashcan agent is writable.
const char * tag_name_iterator_name(iterator_t *)
gboolean find_alert_with_permission(const char *, alert_t *, const char *)
Find a alert for a specific permission, given a UUID.
const char * result_iterator_nvt_cve(iterator_t *)
Get the NVT CVE from a result iterator.
int set_task_observers(task_t, const gchar *)
Set the observers of a task.
const char * target_iterator_hosts(iterator_t *)
gboolean find_target_with_permission(const char *, target_t *, const char *)
Find a target for a specific permission, given a UUID.
gchar * manage_clean_filter_remove(const gchar *, const gchar *)
Clean a filter, removing a keyword in the process.
int target_iterator_snmp_trash(iterator_t *)
Get the SNMP LSC credential location from a target iterator.
void set_schedule_timeout(int)
Set the schedule timeout.
const char * nvt_preference_iterator_value(iterator_t *)
void set_scan_host_end_time_otp(report_t, const char *, const char *)
Set the end time of a scanned host.
int modify_asset(const char *, const char *)
Modify an asset.
int alert_count(const get_data_t *)
Count the number of alerts.
const char * get_iterator_uuid(iterator_t *)
credential_t target_credential(target_t, const char *)
Get a credential from a target.
const char * host_iterator_end_time(iterator_t *)
const char * report_format_param_type_name(report_format_param_type_t)
Get the name of a report format param type.
char * task_preference_value(task_t, const char *)
Get the value of a task preference.
int config_iterator_families_growing(iterator_t *)
Get the families growing state from a config iterator.
int total_asset_count(const get_data_t *)
Count number of all assets.
int credential_writable(credential_t)
Check whether a Credential is writable.
const char * ovaldef_info_iterator_class(iterator_t *)
gchar * subtype
Subtype, or NULL.
const char * override_iterator_threat(iterator_t *)
Get the threat from a override iterator.
const char * config_task_iterator_name(iterator_t *)
const char * result_iterator_original_level(iterator_t *)
Get the original severity/threat level from a result iterator.
int task_writable(task_t)
Return whether a task is writable.
int modify_user(const gchar *, gchar **, const gchar *, const gchar *, const gchar *, int, const gchar *, int, const array_t *, array_t *, gchar **, array_t *, gchar **, gchar **)
Modify a user.
int manage_user_exists(const gchar *, auth_method_t)
gchar * field
The field to sort by.
int create_role(const char *, const char *, const char *, role_t *)
Create a role.
gboolean find_override_with_permission(const char *, override_t *, const char *)
Find a override for a specific permission, given a UUID.
int task_holes_size(task_t)
int filter_alert_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
char * source_type
Source type.
int scanner_task_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
result_t note_iterator_result(iterator_t *)
Get the result from a note iterator.
event_t event_from_name(const char *)
Get an event from a name.
char * manage_nvt_name(nvt_t)
Get the name of an NVT.
char * value
Value of preference.
int report_counts_id_no_filt(report_t, int *, int *, int *, int *, int *, int *, double *, const get_data_t *, const char *)
Get the full, unfiltered message counts for a report.
int task_last_report(task_t, report_t *)
Get the report from the most recently completed invocation of task.
int delete_tag(const char *, int)
Delete a tag.
int delete_role(const char *, int)
Delete a role.
int equal
Whether the keyword is like "=example".
int manage_migrate(GSList *, const gchar *)
Migrate database to version supported by this manager.
int tag_in_use(tag_t)
Return whether a tag is in use by a task.
int credential_scanner_iterator_readable(iterator_t *)
Get the read permission status from a Credential Scanner iterator.
int target_in_use(target_t)
Return whether a target is in use by a task.
const gchar * certificate_time_status(time_t, time_t)
Tests the activation and expiration time of a certificate.
const char * result_iterator_qod_type(iterator_t *)
void clear_duration_schedules(task_t)
Clear once-off schedules from tasks where the duration has passed.
Command data for a get command.
int init_dfn_cert_adv_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise an DFN-CERT advisory (dfn_cert_adv) info iterator.
void parse_tags(const char *, gchar **, gchar **)
Split up the tags received from the scanner.
int filter_count(const get_data_t *)
Count number of filters.
int cpe_info_count(const get_data_t *get)
Count number of cpe.
const char * ovaldef_info_iterator_version(iterator_t *)
int trash_schedule_writable(schedule_t)
Return whether a trashcan schedule is writable.
char * scanner_login(scanner_t)
Return the login associated with a scanner.
const char * ovaldef_info_iterator_cve_refs(iterator_t *)
int manage_create_user(GSList *, const gchar *, const gchar *, const gchar *, const gchar *)
Create the given user.
credential_t trash_target_credential(target_t, const char *)
Get a credential from a target in the trashcan.
int trash_port_list_readable_uuid(const gchar *)
Return whether a trashcan port list is readable.
int credential_iterator_allow_insecure(iterator_t *)
Get the login from a Credential iterator.
char * type_trash_columns(const char *, int)
Return the SQL column definition for a trash resource iterator.
task_t result_iterator_task(iterator_t *)
Get the task from a result iterator.
int get_termination_signal()
Gets the last termination signal or 0.
gboolean find_nvt(const char *, nvt_t *)
Find an NVT given an identifier.
char * scan_end_time(report_t)
Get the end time of a scan.
int config_nvts_growing(config_t)
Get the NVT growth status of a config.
void severity_data_level_counts(const severity_data_t *, const gchar *, int *, int *, int *, int *, int *, int *, int *)
Count the occurrences of severities in the levels.
gboolean openvas_sync_script_perform_selftest(const gchar *, gchar **)
Request a feed synchronization script selftest.
int manage_schedule(int(*)(openvas_connection_t *, gchar *), gboolean, sigset_t *)
Schedule any actions that are due.
void set_task_start_time_epoch(task_t, int)
Set the start time of a task.
void init_cve_cert_bund_adv_iterator(iterator_t *, const char *, int, const char *)
Initialise CVE iterator, for CVEs referenced by a CERT-Bund advisory.
void init_report_errors_iterator(iterator_t *, report_t)
Initialise a report errors iterator.
int copy_credential(const char *, const char *, const char *, credential_t *)
Create an LSC Credential from an existing one.
int init_tag_iterator(iterator_t *, const get_data_t *)
Initialise a tag iterator.
int init_note_iterator(iterator_t *, const get_data_t *, nvt_t, result_t, task_t)
Initialise a note iterator.
void hosts_set_identifiers()
Setup hosts and their identifiers after a scan, from host details.
const char * task_role_iterator_uuid(iterator_t *)
int copy_tag(const char *, const char *, const char *, tag_t *)
Create a tag from an existing tag.
char * task_observers(task_t)
Return the observers of a task.
double aggregate_iterator_sum(iterator_t *, int)
Get the sum from a statistics iterator.
long long int port_range_t
char * permission_uuid(permission_t)
Return the UUID of a permission.
const char * nvt_iterator_tag(iterator_t *)
int trash_filter_in_use(filter_t)
Check whether a trashcan filter is in use.
gboolean find_report_with_permission(const char *, report_t *, const char *)
Find a report for a specific permission, given a UUID.
const char * host_identifier_iterator_source_type(iterator_t *)
const char * user_iterator_hosts(iterator_t *)
void manage_report_filter_controls(const gchar *, int *, int *, gchar **, int *, int *, gchar **, gchar **, gchar **, gchar **, int *, int *, int *, int *, int *, gchar **)
Get info from a filter for report.
const char * note_iterator_hosts(iterator_t *)
schedule_t task_schedule(task_t)
Return the schedule of a task.
void set_scan_end_time(report_t, const char *)
Set the end time of a scan.
int create_note(const char *, const char *, const char *, const char *, const char *, const char *, const char *, task_t, result_t, note_t *)
Create a note.
void report_cache_counts(report_t, int, int, const char *)
Cache report counts and clear existing caches if requested.
int modify_override(override_t, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, task_t, result_t)
Modify an override.
time_t override_iterator_modification_time(iterator_t *)
int manage_resource_name(const char *, const char *, char **)
Get the name of a resource.
int target_iterator_port_list_trash(iterator_t *)
Get the location of the port list from a target iterator.
int user_iterator_hosts_allow(iterator_t *)
Get the hosts allow value from a user iterator.
int role_writable(role_t)
Check whether a role is writable.
const char * scanner_iterator_credential_name(iterator_t *)
int port_list_in_use(port_list_t)
Return whether a port_list is in use by a task.
char * scanner_uuid(scanner_t)
Return the UUID of a scanner.
int manage_set_config_preference(config_t, const char *, const char *, const char *)
Set a preference of a config.
int task_upload_progress(task_t)
Return the upload progress of a task.
int trash_role_writable(role_t)
Check whether a trashcan role is writable.
char * scanner_password(scanner_t)
Return the password associated with a scanner.
gsize agent_iterator_installer_size(iterator_t *)
Get the installer size from an agent iterator.
int create_config_from_scanner(const char *, const char *, const char *, char **)
Create a config from an OSP scanner.
result_t make_result(task_t, const char *, const char *, const char *, const char *, const char *)
Make a result.
int delete_report(const char *, int)
Delete a report.
void init_report_counts_build_iterator(iterator_t *, report_t, int, int, const char *)
Initializes an iterator for updating the report cache.
int override_uuid(override_t, char **)
Return the UUID of an override.
void init_nvt_dfn_cert_adv_iterator(iterator_t *, const char *, int, const char *)
Initialise an DFN-CERT iterator, for advisories relevant to a NVT.
int resource_count(const char *, const get_data_t *)
Return number of resources of a certain type for current user.
int task_in_use(task_t)
Return whether a task is in use by a task.
void set_task_description(task_t, char *, gsize)
void manage_get_radius_info(int *, char **, char **)
Get RADIUS info.
gchar * manage_user_hash(const gchar *)
Get user hash.
void reports_build_count_cache(int, int *)
Rebuild the report count cache for all reports and users.
int nvt_preference_count(const char *)
Get the number preferences available for an NVT.
int init_cve_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise a info iterator.
const char * port_range_iterator_comment(iterator_t *)
Get the comment from a port range iterator.
int init_nvt_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise an NVT iterator.
const char * agent_iterator_howto_install(iterator_t *)
const char * asset_os_iterator_average_severity(iterator_t *)
double task_severity_double(task_t, int, int, int)
Return the severity score of a task, taking overrides into account.
const char * task_iterator_last_report(iterator_t *)
Get the last report UUID from a task iterator.
user_t get_iterator_owner(iterator_t *)
Get the owner from a GET iterator.
int trash_alert_in_use(alert_t)
Return whether a trashcan alert is in use by a task.
const char * host_detail_iterator_source_type(iterator_t *)
const char * prognosis_iterator_cpe(iterator_t *)
char * task_config_name(task_t)
Return the name of the config of a task.
int copy_schedule(const char *, const char *, const char *, schedule_t *)
Create a schedule from an existing schedule.
int trash_tag_in_use(tag_t)
Return whether a trashcan tag is referenced by a task.
int trash_credential_writable(credential_t)
Check whether a trashcan Credential is writable.
task_t make_task(char *, char *, int, int)
Make a task.
int user_can_everything(const char *)
void set_scan_start_time_epoch(report_t, time_t)
Set the start time of a scan.
const char * result_iterator_original_type(iterator_t *)
keyword_relation_t relation
The relation.
int asset_os_iterator_installs(iterator_t *)
Get the number of installs from an asset OS iterator.
int setting_dynamic_severity_int()
Return the Dynamic Severity user setting as an int.
void set_credential_name(credential_t, const char *)
Set the name of a Credential.
const char * report_format_alert_iterator_name(iterator_t *)
void set_scan_start_time(report_t, const char *)
Set the start time of a scan.
int ignore_max_rows_per_page
Whether to ignore the Max Rows Per Page setting.
unsigned int task_id(task_t)
Return the identifier of a task.
int trash_task_in_use(task_t)
Return whether a trashcan task is referenced by a task.
target_t task_target(task_t)
Return the target of a task.
int port_list_target_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
char * trash_filter_name(filter_t)
Return the name of a trashcan filter.
time_t agent_iterator_trust_time(iterator_t *)
Get the installer trust time from a agent iterator.
array_t * split_filter(const gchar *)
Split the filter term into parts.
gchar * string
The keyword string, outer quotes removed.
int request_delete_task_uuid(const char *, int)
Request deletion of a task.
const char * nvt_iterator_family(iterator_t *)
void init_credential_iterator_one(iterator_t *, credential_t)
Initialise a Credential iterator, given a single Credential.
char * report_format_name(report_format_t)
Return the name of a report format.
report_format_param_t report_format_param_iterator_param(iterator_t *)
Get the report format param from a report format param iterator.
gchar * filter_term(const char *)
Return the term of a filter.
char * severity
Severity score.
int report_format_global(report_format_t)
const char * scanner_task_iterator_name(iterator_t *)
const char * nvt_iterator_qod_type(iterator_t *iterator)
char * setting_timezone()
Return the user's timezone.
int agent_writable(agent_t)
Check whether a agent is writable.
int task_alterable(task_t)
Return whether a task is an Alterable Task.
void manage_filter_controls(const gchar *, int *, int *, gchar **, int *)
Get info from a filter.
gchar * keyfile_to_auth_conf_settings_xml(const gchar *)
int target_iterator_esxi_credential(iterator_t *)
Get the ESXi LSC credential from a target iterator.
int report_slave_progress(report_t)
Return the slave progress of a report.
gboolean next_report(iterator_t *, report_t *)
Read the next report from an iterator.
port_protocol_t port_range_iterator_type_int(iterator_t *iterator)
Get the type from a port range iterator.
int manage_decrypt_all_credentials(GSList *, const gchar *)
Decrypt all credentials.
const char * cve_info_iterator_authentication(iterator_t *)
int user_iterator_ifaces_allow(iterator_t *)
Get the ifaces allow value from a user iterator.
const char * param_option_iterator_value(iterator_t *)
const char * override_iterator_hosts(iterator_t *)
char * value
Detail value.
const char * nvt_iterator_xref(iterator_t *)
int sync_config(const char *)
Synchronize a config.
void set_scan_ports(report_t, const char *, unsigned int, unsigned int)
Set the ports for a particular host in a scan.
void init_target_task_iterator(iterator_t *, target_t)
Initialise a target task iterator.
char * ovaldef_severity(const char *)
Get the severity of an OVALDEF using an ID.
char * manage_default_ca_cert()
Get the default CA cert.
gchar * type
Type of resource.
void get_data_reset(get_data_t *)
Reset command data.
int setting_is_default_ca_cert(const gchar *)
Check whether a setting is the Default CA Cert setting.
void set_report_format_active(report_format_t, int)
Set the active flag of a report format.
void insert_report_host_detail(report_t, const char *, const char *, const char *, const char *, const char *, const char *)
Insert a host detail into a report.
int create_filter(const char *, const char *, const char *, const char *, int, filter_t *)
Create a filter.
void hosts_set_details(report_t report)
Store certain host details in the assets after a scan.
int permission_iterator_resource_in_trash(iterator_t *)
Return the permission resource location.
char * type
Name of NVT selector.
int port_list_writable(port_list_t)
Check whether a Port List is writable.
int scanner_count(const get_data_t *)
Count number of scanners.
void set_task_start_time_otp(task_t, char *)
Set the start time of a task.
int manage_schema(gchar *, gchar **, gsize *, gchar **, gchar **)
Generate the OMP schema.
int nvt_selector_nvt_count(const char *, const char *, int)
Get the number of NVTs selected by an NVT selector.
int user_count(const get_data_t *)
Count number of users.
int init_result_get_iterator(iterator_t *, const get_data_t *, report_t, const char *, const gchar *)
Initialise a result iterator.
int init_asset_os_iterator(iterator_t *, const get_data_t *)
Initialise an OS iterator.
int copy_group(const char *, const char *, const char *, group_t *)
Create a group from an existing group.
char * scanner_host(scanner_t)
Return the host of a scanner.
const char * cve_info_iterator_vector(iterator_t *)
void init_config_timeout_iterator(iterator_t *, config_t)
Initialise a config timeout iterator.
scanner_t task_iterator_scanner(iterator_t *)
Get the UUID of task scanner from a task iterator.
void manage_task_update_file(task_t, const char *, const void *)
Add a file to a task, or update the file on the task.
int copy_filter(const char *, const char *, const char *, filter_t *)
Create a filter from an existing filter.
const char * note_iterator_threat(iterator_t *)
Get the threat from a note iterator.
void init_severity_data(severity_data_t *)
Initialize a severity data structure.
const char * credential_target_iterator_name(iterator_t *)
void init_preference_iterator(iterator_t *, config_t)
Initialise a preference iterator.
char * report_format_content_type(report_format_t)
Return the content type of a report format.
void set_credential_snmp_secret(credential_t, const char *, const char *, const char *)
Set the community, password and privacy password of a Credential.
int scanner_port(scanner_t)
Return the port of a scanner.
const char * port_range_iterator_uuid(iterator_t *)
const char * schedule_task_iterator_uuid(iterator_t *)
gboolean find_port_list_with_permission(const char *, port_list_t *, const char *)
Find a port list for a specific permission, given a UUID.
const char * task_alert_iterator_name(iterator_t *)
int manage_set_password(GSList *, const gchar *, const gchar *, const gchar *)
Set the password of a user.
char * trash_target_hosts(target_t)
Return the hosts associated with a trashcan target.
int setting_count(const char *)
Count number of settings.
const char * port_range_iterator_start(iterator_t *)
int report_format_count(const get_data_t *)
Count the number of Report Formats.
const char * nvt_iterator_copyright(iterator_t *)
int delete_asset(const char *, const char *, int)
Delete an asset.
long long int port_list_t
const char * keyword_relation_symbol(keyword_relation_t)
Get the symbol of a keyword relation.
const char * agent_iterator_installer_filename(iterator_t *)
report_t result_iterator_report(iterator_t *)
Get the report from a result iterator.
const char * user_iterator_ifaces(iterator_t *)
const char * user_iterator_method(iterator_t *)
int manage_modify_setting(GSList *, const gchar *, const gchar *, const gchar *, const char *)
Change value of a setting.
int set_report_format_param(report_format_t, const char *, const char *)
Set the value of the report format param.
int manage_send_report(report_t, report_t, report_format_t, const get_data_t *, int, int, int, int, gboolean(*)(const char *, int(*)(const char *, void *), void *), int(*)(const char *, void *), void *, const char *, const char *, const char *, int, const char *, const char *, int, int, const gchar *)
Generate a report.
int user_group_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
const char * scanner_iterator_key_pub(iterator_t *)
int task_schedule_in_trash(task_t)
Get whether the task schedule is in the trash.
const char * permission_iterator_subject_name(iterator_t *)
gboolean next_file(file_iterator_t *)
Increment a report type iterator.
int port_list_iterator_count_udp(iterator_t *)
Get the UDP port count from a port_list iterator.
int setting_auto_cache_rebuild_int()
Return the Auto Cache Rebuild user setting as an int.
void report_clear_count_cache(report_t, int, int, const char *)
Clear report counts .
const char * result_iterator_port(iterator_t *)
int note_count(const get_data_t *, nvt_t, result_t, task_t)
Count number of notes.
int permission_iterator_subject_in_trash(iterator_t *)
Return the permission subject location.
const char * result_iterator_scan_nvt_version(iterator_t *)
Get the NVT version used during the scan from a result iterator.
char * scanner_ca_pub(scanner_t)
Return the CA Certificate of a scanner.
const char * get_iterator_creation_time(iterator_t *)
int permission_count(const get_data_t *)
Count number of permissions.
const char * scanner_iterator_key_priv(iterator_t *)
Get the Scanner private key from a scanner iterator.
int target_iterator_smb_credential(iterator_t *)
Get the SMB LSC credential from a target iterator.
const char * config_timeout_iterator_nvt_name(iterator_t *)
char * iso_time(time_t *)
Create an ISO time from seconds since epoch.
int group_writable(group_t)
Check whether a group is writable.
int info_name_count(const gchar *, const gchar *)
char * alert_iterator_filter_uuid(iterator_t *)
Return the filter UUID from an alert iterator.
char * nvt_name
Name of NVT preference affects.
int init_group_iterator(iterator_t *, const get_data_t *)
Initialise a group iterator, including observed groups.
gchar * truncate_certificate(const gchar *)
Truncate a certificate, removing extra data.
const char * cve_info_iterator_integrity_impact(iterator_t *)
void init_ovaldi_file_iterator(iterator_t *)
Initialise an ovaldi file iterator.
gchar * manage_user_uuid(const gchar *, auth_method_t)
const char * task_iterator_trend_counts(iterator_t *, int, int, int, double, int, int, int, double)
Return the trend of a task, given counts.
report_t make_report(task_t, const char *, task_status_t)
Make a report.
int task_iterator_finished_reports(iterator_t *)
Get the number of reports of a task iterator.
void update_duration_schedule_periods(task_t)
Update tasks with limited run schedules which have durations.
void manage_auth_allow_all(int)
Ensure that any subsequent authentications succeed.
void set_scheduled_user_uuid(gchar *uuid)
Set UUID of user that scheduled the current task.
double aggregate_iterator_min(iterator_t *, int)
Get the minimum from an aggregate iterator.
const char * task_iterator_hosts_ordering(iterator_t *)
Get the hosts ordering value from a task iterator.
void set_task_end_time_epoch(task_t, time_t)
Set the end time of a task.
int delete_alert(const char *, int)
Delete an alert.
const char * os_host_iterator_severity(iterator_t *)
gboolean find_task_with_permission(const char *, task_t *, const char *)
Find a task for a specific permission, given a UUID.
int credential_target_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
const char * asset_os_iterator_title(iterator_t *)
char * target_reverse_lookup_unify(target_t)
Return the reverse_lookup_unify value of a target.
gboolean find_filter_with_permission(const char *, filter_t *, const char *)
Find a filter for a specific permission, given a UUID.
const char * aggregate_iterator_subgroup_value(iterator_t *)
Get the value of the subgroup column from an aggregate iterator.
int delete_port_list(const char *, int)
Delete a port list.
const char * severity_to_level(double, int)
Get the threat level matching a severity score.
const char * cve_info_iterator_cvss(iterator_t *)
const char * result_iterator_type(iterator_t *)
Get the type from a result iterator.
const char * task_role_iterator_name(iterator_t *)
const char * get_iterator_comment(iterator_t *)
Get the comment from a GET iterator.
void severity_data_add(severity_data_t *, double)
Add a severity occurrence to the counts of a severity_data_t.
const char * port_range_iterator_end(iterator_t *)
unsigned int task_report_count(task_t)
gboolean lookup_report_format(const char *, report_format_t *)
Find a report format given a name.
gboolean next_report_type(report_type_iterator_t *)
Increment a report type iterator.
void reports_clear_count_cache_for_override(override_t, int)
int note_iterator_active(iterator_t *)
Get the active status from an note iterator.
void init_nvt_preference_iterator(iterator_t *, const char *)
Initialise an NVT preference iterator.
report_t task_running_report(task_t)
Return the running report of a task.
int init_permission_iterator(iterator_t *, const get_data_t *)
Initialise a permission iterator.
const char * all_info_iterator_type(iterator_t *)
int permission_iterator_resource_readable(iterator_t *)
Get the readable status of a resource from a permission iterator.
int create_group(const char *, const char *, const char *, int, group_t *)
Create a group.
int openvas_migrate_secinfo(const gchar *, int)
Migrates SCAP or CERT database, waiting until migration terminates.
const char * task_iterator_run_status_name(iterator_t *)
Get the run status name from a task iterator.
int create_port_list(const char *, const char *, const char *, const char *, array_t *, port_list_t *)
Create a port_list.
char * agent_uuid(agent_t)
Return the UUID of an agent.
char * id
ID of single item to get.
const char * cert_bund_adv_info_iterator_title(iterator_t *)
int init_resource_tag_iterator(iterator_t *, const char *, resource_t, int, const char *, int)
Initialise a iterator of tags attached to a resource.
int create_override(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, task_t, result_t, override_t *)
Create an override.
int port_list_is_predefined(port_list_t)
gchar * event_description(event_t, const void *, const char *)
Get a description of an alert event.
time_t override_iterator_creation_time(iterator_t *)
int init_report_iterator(iterator_t *, const get_data_t *)
Initialise a report iterator, including observed reports.
char * source_name
Source name.
int modify_permission(const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify a permission.
int target_task_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
const char * target_task_iterator_name(iterator_t *)
const char * override_iterator_text(iterator_t *)
int port_list_count(const get_data_t *)
Count the number of Port Lists.
const char * credential_scanner_iterator_name(iterator_t *)
int nvt_info_count(const get_data_t *)
Count number of nvt.
gchar ** current
Current type.
const char * cpe_info_iterator_title(iterator_t *)
void set_task_hosts_ordering(task_t, const char *)
Set the hosts ordering of a task.
void init_user_role_iterator(iterator_t *, user_t)
Initialise an info iterator.
int qod_from_type(const char *)
Get QoD percentage for a qod_type string.
int copy_target(const char *, const char *, const char *, target_t *)
Create a target from an existing target.
int create_port_range(const char *, const char *, const char *, const char *, const char *, port_range_t *)
Create a port range in a port list.
int trash_task_writable(task_t)
Return whether a trashcan task is writable.
char * filter_name(filter_t)
Return the name of a filter.
char * filter_replacement
Filter term to replace the one in filt_id.
int nvt_selector_iterator_type(iterator_t *)
Get the type from an NVT selector.
const char * ovaldef_info_iterator_max_cvss(iterator_t *)
const char * target_iterator_port_list_uuid(iterator_t *)
void report_host_set_end_time(report_host_t, time_t)
Set end time of a report host.
int port_list_iterator_count_tcp(iterator_t *)
Get the TCP port count from a port_list iterator.
int role_in_use(role_t)
Check whether a role is in use.
int init_ovaldef_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise an OVAL definition (ovaldef) info iterator.
const char * setting_severity()
Return the Severity Class user setting.
gboolean manage_migrate_needs_timezone(GSList *, const gchar *)
Check whether the migration needs the real timezone.
int resume_task(const char *, char **)
Resume a task.
void init_cve_nvt_iterator(iterator_t *, const char *, int, const char *)
Initialise an NVT iterator, for NVTs of a certain CVE.
char * scanner_key_priv(scanner_t)
Return the private key of a scanner.
int task_iterator_total_reports(iterator_t *)
Get the number of reports of a task iterator.
gboolean find_trash_task_with_permission(const char *, task_t *, const char *)
Find a task in the trashcan for a specific permission, given a UUID.
gchar * manage_clean_filter(const gchar *)
Clean a filter.
char * oid
NVT identifier.
int type_is_scap(const char *)
Check if a type is a SCAP type.
scanner_t task_scanner(task_t)
Return the scanner of a task.
long long int report_format_param_iterator_type_max(iterator_t *)
Get the type max from a report format param iterator.
void severity_data_add_count(severity_data_t *, double, int)
Add a multiple severity occurrences to the counts of a severity_data_t.
gboolean find_config(const char *, config_t *)
Find a config given a UUID.
int init_aggregate_iterator(iterator_t *, const char *, const get_data_t *, int, GArray *, const char *, const char *, GArray *, GArray *, int, int, const char *, const char *)
Initialise a GET_AGGREGATES iterator, including observed resources.
char * ovaldef_cves(const char *)
Get the CVE names of an OVALDEF as ", " separated str.
int permission_iterator_subject_readable(iterator_t *)
Get the readable status of a subject from a permission iterator.
int init_agent_iterator(iterator_t *, const get_data_t *)
Initialise an agent iterator.
int trash_id_exists(const char *, const char *)
Test Whether a resource of the given type and ID exists in the trash.
int group_in_use(group_t)
Check whether a group is in use.
int config_task_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
int manage_scanner_set(const char *)
Set the address of scanner to connect to.
void init_nvt_selector_iterator(iterator_t *, const char *, config_t, int)
Initialise an NVT selector iterator.
int copy_agent(const char *, const char *, const char *, agent_t *)
Create an agent from an existing agent.
int stop_task(const char *)
Initiate stopping a task.
char * report_format_extension(report_format_t)
Return the extension of a report format.
const char * cve_info_iterator_complexity(iterator_t *)
int start_task(const char *, char **)
Start a task.
const char ** type_filter_columns(const char *, int)
Return the filter columns for a resource iterator.
time_t schedule_iterator_initial_offset(iterator_t *)
Get the initial offset from a schedule iterator.
user_t report_counts_build_iterator_user(iterator_t *)
Get the user from a report_counts build iterator.
int delete_group(const char *, int)
Delete a group.
const char * report_type_iterator_title(report_type_iterator_t *)
Return the title from a report type iterator.
int host_iterator_max_port(iterator_t *)
Get the max port from a host iterator.
int alert_iterator_filter_readable(iterator_t *)
Return the filter readable state from an alert iterator.
int report_format_in_use(report_format_t)
Return whether a report format is referenced by an alert.
char * tag_uuid(target_t)
Return the UUID of a tag.
const char * result_iterator_severity(iterator_t *)
Get the severity from a result iterator.
const char * ovaldef_info_iterator_title(iterator_t *)
int role_count(const get_data_t *)
Count number of roles.
int resource_id_exists(const char *, const char *)
Test whether a resource of the given type and unique ID exists.
const char * result_iterator_nvt_bid(iterator_t *)
Get the NVT BID from a result iterator.
int init_cert_bund_adv_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise an CERT-Bund advisory (cert_bund_adv) info iterator.
gchar * user_ifaces(const char *)
Return the ifaces of a user.
const char * prognosis_iterator_description(iterator_t *)
const char * ovaldef_info_iterator_file(iterator_t *)
const char * cve_info_iterator_products(iterator_t *)
int init_cpe_info_iterator(iterator_t *, get_data_t *, const char *)
Initialise a info iterator.
int nvt_selector_family_count(const char *, int)
Get the number of families selected by an NVT selector.
gchar * type_opts_table(const char *, int, int, int)
Return the subquery definition for a resource type.
int osp_get_details_from_iterator(iterator_t *, char **, GSList **)
Get an OSP Scanner's get_scanner_details info.
char * target_reverse_lookup_only(target_t)
Return the reverse_lookup_only value of a target.
const char * note_iterator_nvt_name(iterator_t *)
int user_is_observer(const char *)
result_t override_iterator_result(iterator_t *)
Get the result from a override iterator.
void set_scan_end_time_otp(report_t, const char *)
Set the end time of a scan.
int config_iterator_family_count(iterator_t *)
Get the family count from a config iterator.
const char * credential_iterator_login(iterator_t *)
char * config_uuid(config_t)
Return the UUID of a config.
time_t schedule_iterator_period(iterator_t *)
Get the period from a schedule iterator.
const char * all_info_iterator_extra(iterator_t *)
const char * config_task_iterator_uuid(iterator_t *)
int permission_is_admin(const char *)
Test whether a permission is the special Admin permission.
int schedule_duration(schedule_t)
Return the duration of a schedule.
char * scan_nvt_version
Version of NVT used at scan time.
int trash_target_writable(target_t)
Return whether a trashcan target is writable.
int user_ifaces_allow(const char *)
Return whether ifaces value of a user denotes allowed.
const char * report_format_iterator_summary(iterator_t *)
int task_debugs_size(task_t)
int trash_alert_writable(alert_t)
Return whether a trashcan alert is writable.
int nvt_selector_family_growing(const char *, const char *, int)
Get whether an NVT selector family is growing.
gboolean find_resource(const char *, const char *, resource_t *)
Find a resource given a UUID.
int report_progress(report_t, task_t, gchar **)
Calculate the progress of a report.
int create_report(array_t *, const char *, const char *, const char *, const char *, const char *, const char *, array_t *, array_t *, array_t *, char **)
Create a report from an array of results.
void filter_free(array_t *)
Free a split filter.
int init_alert_iterator(iterator_t *, const get_data_t *)
Initialise an alert iterator, including observed alerts.
void init_schedule_task_iterator(iterator_t *, schedule_t)
Initialise a schedule task iterator.
void set_scan_host_start_time(report_t, const char *, const char *)
Set the start time of a scanned host.
char * host
Host message describes.
int resource_tag_count(const char *, resource_t, int)
Count number of tags attached to a resource.
const char * setting_iterator_uuid(iterator_t *)
const char * report_format_param_iterator_type_regex(iterator_t *)
const char * cpe_info_iterator_max_cvss(iterator_t *)
gboolean openvas_get_sync_script_description(const gchar *, gchar **)
Retrieves description of a feed sync script, with basic validation.
void init_credential_scanner_iterator(iterator_t *, credential_t, int)
Initialise a Credential scanner iterator.
char * target_name(target_t)
Return the name of a target.
int report_scan_result_count(report_t, const char *, const char *, int, const char *, const char *, int, int, int *)
long long int report_host_t
int acknowledge_bye()
Acknowledge a scanner BYE.
int create_tag(const char *, const char *, const char *, const char *, const char *, const char *, tag_t *)
Create a tag.
void init_port_range_iterator(iterator_t *, port_range_t, int, int, const char *)
Initialise a port_range iterator.
int copy_note(const char *, note_t *)
Create a note from an existing note.
const char * port_list_target_iterator_name(iterator_t *)
gboolean find_scanner(const char *, scanner_t *)
Find a scanner given a UUID.
int note_uuid(note_t, char **)
Return the UUID of a note.
const char * result_iterator_host(iterator_t *)
int manage_db_supported_version()
Return the database version supported by this manager.
int copy_role(const char *, const char *, const char *, role_t *)
Create a role from an existing role.
const char * target_iterator_ssh_port(iterator_t *)
int openvas_current_sync(const gchar *, gchar **, gchar **)
Determine if the administrator is synchronizing with a feed.
const char * user_group_iterator_name(iterator_t *)
int report_host_count(report_t)
Count a report's total number of hosts.
int target_iterator_ssh_credential(iterator_t *)
Get the SSH LSC credential from a target iterator.
unsigned int number
Port number.
int manage_check_current_task()
Handle state changes to current task made by other processes.
void set_task_end_time(task_t task, char *time)
Set the end time of a task.
int manage_cert_db_version()
Return the database version of the actual database.
int filter_in_use(filter_t)
Check whether a filter is in use.
char * credential_iterator_rpm(iterator_t *)
Get the rpm from a Credential iterator.
char * report_uuid(report_t)
Return the UUID of a report.
int set_task_schedule(task_t, schedule_t, int)
Set the schedule of a task.
command_t omp_commands[]
The OMP command list.
int trash_permission_writable(permission_t)
Return whether a trashcan permission is writable.
int override_count(const get_data_t *, nvt_t, result_t, task_t)
Count number of overrides.
const char * family_iterator_name(iterator_t *)
int task_warnings_size(task_t)
const char * cpe_info_iterator_cve_refs(iterator_t *)
int config_file_iterator_length(iterator_t *)
int scanner_iterator_credential_trash(iterator_t *)
Get the credential location of the scanner from a scanner iterator.
int copy_config(const char *, const char *, const char *, config_t *)
Create a config from an existing config.
void manage_set_ldap_info(int, gchar *, gchar *, int, gchar *)
Set LDAP info.
void set_task_config(task_t, config_t)
Set the config of a task.
char * alert_uuid(alert_t)
Return the UUID of an alert.
void init_user_target_iterator(iterator_t *, target_t)
Initialise a target iterator, limited to the current user's targets.
char * config_nvt_selector(config_t)
Return the NVT selector associated with a config.
void make_task_complete(const char *)
Complete the creation of a task.
void init_target_iterator_one(iterator_t *, target_t)
Initialise a target iterator, given a single target.
const char * preference_iterator_hr_name(iterator_t *)
int copy_user(const char *, const char *, const char *, user_t *)
Create a user from an existing user.
char * credential_iterator_exe(iterator_t *)
Get the exe from a Credential iterator.
int delete_override(const char *, int)
Delete a override.
const char * note_iterator_nvt_oid(iterator_t *)
int task_last_stopped_report(task_t, report_t *)
Get the report from the most recently stopped invocation of task.
int target_iterator_esxi_trash(iterator_t *)
Get the ESXi LSC credential from a target iterator.
int copy_scanner(const char *, const char *, const char *, scanner_t *)
Create a scanner from an existing scanner.
int request_delete_task(task_t *)
Request deletion of a task.
void manage_transaction_stop(gboolean)
Commit the current transaction, if any.
char * task_severity(task_t, int, int, int)
Return the severity score of a task, taking overrides into account.
int alert_iterator_filter_trash(iterator_t *)
Return the location of an alert iterator filter.
int report_timestamp(const char *, gchar **)
Get the timestamp of a report.
int manage_delete_scanner(GSList *, const gchar *, const gchar *)
Delete the given scanner.
int manage_set_config(config_t, const char *, const char *, const char *)
Set the name, comment and scanner of a config.
const char * result_iterator_nvt_name(iterator_t *)
Get the NVT name from a result iterator.
int manage_check_alerts(GSList *, const gchar *)
Check if any SecInfo alerts are due.
const char * port_range_iterator_type(iterator_t *)
Get the type from a port range iterator.
int modify_filter(const char *, const char *, const char *, const char *, const char *)
Modify a filter.
const char * nvt_iterator_solution_type(iterator_t *)
gboolean find_filter(const char *, filter_t *)
Find a filter given a UUID.
int user_can_super_everyone(const char *)
int collate_message_type(void *data, int, const void *, int, const void *)
Collate two message type strings.
int family_nvt_count(const char *)
Get the number of NVTs in one or all families.
void trim_partial_report(report_t)
Prepare a partial report for resumption of the scan.
char * trash_filter_uuid(filter_t)
Return the UUID of a trashcan filter.
const char * override_iterator_nvt_oid(iterator_t *)
int modify_alert(const char *, const char *, const char *, const char *, event_t, GPtrArray *, alert_condition_t, GPtrArray *, alert_method_t, GPtrArray *)
Modify an alert.
int create_report_format(const char *, const char *, const char *, const char *, const char *, const char *, int, array_t *, array_t *, array_t *, const char *, report_format_t *)
Create a report format.
void init_user_config_iterator(iterator_t *, config_t, int, int, const char *)
Initialise a config iterator, limited to user's configs.
int task_schedule_periods(task_t)
Get the number of times the period schedule should run on the task.
const char * setting_iterator_comment(iterator_t *)
const char * report_type_iterator_name(report_type_iterator_t *)
Return the name from a report type iterator.
const char * nvt_iterator_oid(iterator_t *)
int trash_config_in_use(config_t)
Return whether a trashcan config is referenced by a task.
int trash_schedule_in_use(schedule_t)
Return whether a trashcan schedule is in use by a task.
const char * aggregate_iterator_text(iterator_t *, int, int)
Get the value of a text column from an aggregate iterator.
const char * run_status_name(task_status_t)
Get the name of a run status.
int task_schedule_next_time(task_t)
Get next time a scheduled task will run, following schedule timezone.
report_host_t manage_report_host_add(report_t, const char *, time_t, time_t)
Add a report host.
int user_in_use(user_t)
Check whether a user is in use.
int report_host_result_count(report_host_t)
Counts.
const char * dfn_cert_adv_info_iterator_summary(iterator_t *)
gboolean openvas_get_sync_script_feed_version(const gchar *, gchar **)
Retrieves the version of a feed handled by the sync, with basic validation.
const char * report_format_iterator_signature(iterator_t *)
int manage_set_config_families(config_t, GPtrArray *, GPtrArray *, GPtrArray *, int)
Refresh NVT selection of a config from given families.
const char * scanner_iterator_ca_pub(iterator_t *)
void free_tasks()
Dummy function.
int dfn_cert_adv_info_count(const get_data_t *get)
Count number of dfn_cert_adv.
char * port_list_uuid(port_list_t)
Return the UUID of a port_list.
const char * ovaldi_file_iterator_name(iterator_t *)
int create_config(const char *, const char *, const array_t *, const array_t *, const char *, config_t *, char **)
Create a config.
int user_is_super_admin(const char *)
Check whether a user is a Super Admin.
void set_nvts_feed_version(const char *)
Set the feed version of the plugins in the plugin cache.
const char * permission_iterator_resource_uuid(iterator_t *)
char * scanner_name(scanner_t)
Return the name of a scanner.
int init_manage_helper(GSList *, const gchar *, int, void(*)())
Initialize the manage library for a helper program.
int delete_filter(const char *, int)
Delete a filter.
int quoted
Whether the keyword was quoted.
const char * result_iterator_nvt_oid(iterator_t *)
nvt_t make_nvt_from_nvti(const nvti_t *, int)
Make an nvt from an nvti.
char * report_format_uuid(report_format_t)
Return the UUID of a report format.
scanner_type
Scanner types.
char * nvt_oid
OID of NVT.
const char * host_detail_iterator_source_id(iterator_t *)
int manage_test_alert(const char *, gchar **)
Test an alert.
int permission_in_use(permission_t)
Return whether a permission is in use.
char * port_name_formatted(const char *)
Returns formatted port number, protocol and iana name from.
char * source_desc
Source description.
A system report type iterator.
const char * tag_iterator_resource_type(iterator_t *)
int user_may(const char *)
int openvas_sync_feed(const gchar *, const gchar *, int)
Forks a child to synchronize the local feed collection.
int task_in_trash(task_t)
Return whether a task is in the trashcan.
int report_scan_run_status(report_t, int *)
Return the run status of the scan associated with a report.
const char * type_name(const char *)
Return the name of a resource type.
gboolean find_note_with_permission(const char *, note_t *, const char *)
Find a note for a specific permission, given a UUID.
int target_iterator_ssh_trash(iterator_t *)
Get the location of the SSH LSC credential from a target iterator.
const char * result_iterator_date(iterator_t *)
int manage_db_version()
Return the database version of the actual database.
int ovaldef_info_count(const get_data_t *get)
Count number of ovaldef.
time_t report_format_iterator_trust_time(iterator_t *)
Get the trust time from a report format iterator.
const char * event_name(event_t)
Get the name of an alert event.
long long int report_format_param_t
const char * cve_info_iterator_availability_impact(iterator_t *)
int copy_report_format(const char *, const char *, report_format_t *)
Create Report Format from an existing Report Format.
const char * setting_iterator_name(iterator_t *)
char * task_comment(task_t)
Return the comment of a task.
int all_info_count(const get_data_t *)
Count number of SecInfo entries.
int trash_filter_writable(filter_t)
Check whether a trashcan filter is writable.
const char * target_iterator_reverse_lookup_only(iterator_t *)
const char * credential_iterator_privacy_algorithm(iterator_t *)
int trash_credential_readable(credential_t)
Return whether a trashcan credential is readable.
gchar * alert_condition_description(alert_condition_t, alert_t)
Get a description of an alert condition.
keyword_type_t
Keyword type.
int trash_agent_in_use(agent_t)
Check whether a trashcan agent is writable.
char * trash_target_exclude_hosts(target_t)
Return the excluded hosts associated with a trashcan target.
int result_uuid(result_t, char **)
Return the UUID of a result.
const char * report_format_iterator_content_type(iterator_t *)
int modify_setting(const gchar *, const gchar *, const gchar *, gchar **)
Set the value of a setting.
time_t override_iterator_end_time(iterator_t *)
Get the end time from an override iterator.
int tag_iterator_resource_readable(iterator_t *)
Get the readable status of a resource from a tag iterator.
char * name
Name of NVT selector.
int init_task_iterator(iterator_t *, const get_data_t *)
Initialise a task iterator.
int report_counts_build_iterator_min_qod(iterator_t *)
Get the min_qod from a report_counts build iterator.
int manage_cert_db_supported_version()
Return the database version supported by this manager.
int config_iterator_nvts_growing(iterator_t *)
Get the NVTs growing state from a config iterator.
void manage_nvt_preferences_enable()
Enable the NVT preferences.
int config_in_use(config_t)
Return whether a config is referenced by a task.
void init_report_format_alert_iterator(iterator_t *, report_format_t)
Initialise a Report Format alert iterator.
void set_credential_comment(credential_t, const char *)
Set the comment of a Credential.
int modify_port_list(const char *, const char *, const char *)
Modify a Port List.
int acknowledge_feed_version_info()
Acknowledge scanner PLUGINS_FEED_VERSION message,.
int modify_report(const char *, const char *)
Modify a report.
int report_counts_build_iterator_override(iterator_t *)
Get the override flag from a report_counts build iterator.
const char * permission_iterator_resource_type(iterator_t *)
int init_target_iterator(iterator_t *, const get_data_t *)
Initialise a target iterator, including observed targets.
const char * cpe_info_iterator_status(iterator_t *)
int osp_get_version_from_iterator(iterator_t *, char **, char **, char **, char **, char **, char **)
Get an OSP Scanner's get_version info.
int manage_set_config_nvts(config_t, const char *, GPtrArray *)
Set the NVT's selected for a single family of a config.
void init_config_file_iterator(iterator_t *, const char *, const char *)
int set_task_groups(task_t, array_t *, gchar **)
Set observer groups on a task, removing any previous groups.
int manage_report_host_detail(report_t, const char *, const char *)
Add a host detail to a report host.
int trash_scanner_writable(scanner_t)
Check whether a trashcan scanner is writable.
void init_task_alert_iterator(iterator_t *, task_t, event_t event)
Initialise a task alert iterator.
gchar * credential_encrypted_value(credential_t, const char *)
Get a possibly encrypted credential value in decrypted form.
char * target_uuid(target_t)
Return the UUID of a target.
const char * result_iterator_nvt_family(iterator_t *)
Get the NVT family from a result iterator.
int init_override_iterator(iterator_t *, const get_data_t *, nvt_t, result_t, task_t)
Initialise an override iterator.
void reports_clear_count_cache(int)
Clear all cached report result counts.
int asset_host_count(const get_data_t *)
Count number of hosts.
array_t * alts
Array of gchar's. Alternate values for radio type.
void add_task_alert(task_t, alert_t)
Add an alert to a task.
double setting_default_severity_dbl()
Return the Default Severity user setting as a double.
const char * alert_task_iterator_uuid(iterator_t *)
Return the uuid from an alert task iterator.
const char * target_iterator_exclude_hosts(iterator_t *)
int copy_alert(const char *, const char *, const char *, alert_t *)
Create an alert from an existing alert.
const char * tag_iterator_resource_uuid(iterator_t *)
int manage_restore(const char *)
Restore a resource from the trashcan.
char * family_or_nvt
Family or NVT that this selector selects.
int trash_report_format_writable(report_format_t)
Return whether a trashcan report_format is writable.
const char * setting_iterator_value(iterator_t *)
const char * tag_iterator_resource_name(iterator_t *)
int get_certificate_info(const gchar *, time_t *, time_t *, gchar **, gchar **)
Gathers info from a certificate.
int modify_task_check_config_scanner(task_t, const char *, const char *)
Check scanner and config values match for a task.
void init_nvt_iterator(iterator_t *, nvt_t, config_t, const char *, const char *, int, const char *)
Initialise an NVT iterator.
enum scanner_type scanner_type_t
Scanner types.
const char * agent_iterator_howto_use(iterator_t *)
int manage_scanner_set_default()
Set the default scanner as the scanner to connect to.
int trash_target_in_use(target_t)
Return whether a trashcan target is referenced by a task.
void manage_transaction_start()
Start a new IMMEDIATE transaction.
int tag_iterator_active(iterator_t *)
Get if a tag is active from a Tag iterator.
char * schedule_uuid(schedule_t)
Return the UUID of a schedule.
int nvt_selector_iterator_include(iterator_t *)
Get whether the selector rule is an include rule.
int create_scanner(const char *, const char *, const char *, const char *, const char *, scanner_t *, const char *, const char *)
Create a scanner.
double result_iterator_severity_double(iterator_t *)
Get the severity from a result iterator as double.
char * nvt_preference_iterator_type(iterator_t *)
Get the type from an NVT preference iterator.
gchar ** start
First type.
void init_os_host_iterator(iterator_t *, resource_t)
Initialise an OS host iterator.
int credential_count(const get_data_t *)
Count number of LSC Credentials.
int valid_db_resource_type(const char *)
Check whether a resource type table name is valid.
const char * nvt_preference_iterator_name(iterator_t *)
const char * user_group_iterator_uuid(iterator_t *)
int init_report_format_iterator(iterator_t *, const get_data_t *)
Initialise a Report Format iterator, including observed Report Formats.
time_t schedule_iterator_duration(iterator_t *)
Get the duration from a schedule iterator.
int schedule_in_use(schedule_t)
Return whether a schedule is in use by a task.
int delete_port_range(const char *, int)
Delete a port range.
const char * target_iterator_reverse_lookup_unify(iterator_t *)
const char * schedule_task_iterator_name(iterator_t *)
gboolean find_scanner_with_permission(const char *, scanner_t *, const char *)
Find a scanner for a specific permission, given a UUID.
char * nvt_preference_iterator_real_name(iterator_t *)
Get the real name from an NVT preference iterator.
int trash_target_readable(target_t)
Return whether a trashcan target is readable.
const char * task_group_iterator_name(iterator_t *)
char * schedule_name(schedule_t)
Return the name of a schedule.
int modify_target(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Modify a target.
void add_task_description_line(task_t, const char *, size_t)
const char * host_detail_iterator_value(iterator_t *)
int include
Whether family/NVT is included or excluded.
int init_port_list_iterator(iterator_t *, const get_data_t *)
Initialise a Port List iterator, including observed Port Lists.
int host_identifier_iterator_source_orphan(iterator_t *)
Get the source orphan state from a host identifier iterator.
char * credential_name(credential_t)
Get the name of an LSC credential.
int target_iterator_smb_trash(iterator_t *)
Get the location of the SMB LSC credential from a target iterator.
int create_agent(const char *, const char *, const char *, const char *, const char *, const char *, const char *, agent_t *)
Create an agent entry.
int result_detection_reference(result_t, char **, char **, char **, char **, char **)
Get product detection results corresponding to a given vulnerability detection result.
double severity_data_value(int)
Convert an index in the counts array to a severity value.
int manage_task_remove_file(task_t, const char *)
Remove a file on a task.
int config_families_growing(config_t)
Get the family growth status of a config.
const char * cpe_info_iterator_nvd_id(iterator_t *)
const char * scanner_uuid_default()
Return the UUID of the default scanner.
int create_task_check_config_scanner(config_t, scanner_t)
Check scanner and config values match for a task.
gchar * dir_name
Dir holding files.
char * nvt_preference_iterator_nvt(iterator_t *)
Get the NVT from an NVT preference iterator.
int total_info_count(const get_data_t *, int)
Count number of all SecInfo entries.
const char * resource_tag_iterator_name(iterator_t *)
const char * permission_iterator_resource_name(iterator_t *)
int user_resources_in_use(user_t, const char *, int(*)(resource_t), const char *, int(*)(resource_t))
Check if a user still has resources that are in use.
void append_to_task_name(task_t, const char *, int)
Append text to the name associated with a task.
const char * asset_host_iterator_severity(iterator_t *)
void manage_nvt_preference_add(const char *, const char *, int)
Add an NVT preference.
void report_set_slave_host(report_t, const gchar *)
Set the host of the slave of a report.
int override_iterator_active(iterator_t *)
Get the active status from an override iterator.
int severity_data_index(double)
Convert a severity value into an index in the counts array.
int manage_get_scanners(GSList *, const gchar *)
List scanners.
int trash_schedule_readable(schedule_t)
Return whether a trashcan schedule is readable.
const char * port_list_target_iterator_uuid(iterator_t *)
void set_report_format_summary(report_format_t, const char *)
Set the summary of the report format.
int asset_iterator_writable(iterator_t *)
Get the writable status from an asset iterator.
const char * cert_bund_adv_info_iterator_max_cvss(iterator_t *)
char * filter_replace
Column to replace in filter.
int trash_report_format_global(report_format_t)
int user_is_user(const char *)
event_t
Types of task events.
time_t note_iterator_modification_time(iterator_t *)
const char * scanner_task_iterator_uuid(iterator_t *)
const char * alert_data_iterator_name(iterator_t *)
Return the name from an alert data iterator.
char * task_name(task_t)
Return the name of a task.
int filter_writable(filter_t)
Check whether a filter is writable.
A host detail for create_report.
char * nvt_severity(const char *, const char *)
Get a severity string from an nvt and result type.
char * nvts_feed_version()
Return feed version of the plugins in the plugin cache.
int tag_count(const get_data_t *get)
Count number of tags.
int ignore_pagination
Whether to ignore the pagination (first and max).
int manage_scap_db_version()
Return the database version of the actual database.
int delete_agent(const char *, int)
Delete an agent.
task_t note_iterator_task(iterator_t *)
Get the task from a note iterator.
const char * alert_method_name(alert_method_t)
Get the name of an alert method.
int trash_user_writable(user_t)
Check whether a trashcan user is writable.
const char * all_info_iterator_severity(iterator_t *)
int modify_agent(const char *, const char *, const char *)
Modify an agent.
int task_infos_size(task_t)
int report_format_alert_iterator_readable(iterator_t *)
Get the read permission status from a GET iterator.
int init_scanner_iterator(iterator_t *, const get_data_t *)
Initialise an scanner iterator.
int manage_delete_user(GSList *, const gchar *, const gchar *, const gchar *)
Delete the given user.
const char * alert_task_iterator_name(iterator_t *)
Return the name from an alert task iterator.
char * scanner_key_pub(scanner_t)
Return the Certificate of a scanner.
void set_task_alterable(task_t, int)
Set the alterable state of a task.
credentials_t current_credentials
Current credentials during any OMP command.
int trash_target_login_port(target_t, const char *)
Get a port from a target in the trashcan.
int target_login_port(target_t, const char *)
Get a login port from a target.
const char * preference_iterator_type(iterator_t *)
int minimal
Whether to respond with minimal information.
void manage_cleanup_process_error(int)
Cleanup as immediately as possible.
int user_has_super(const char *, user_t)
int set_task_schedule_periods(const gchar *, int)
Set the schedule periods of a task, given a UUID.
void init_report_format_param_iterator(iterator_t *, report_format_t, int, int, const char *)
Initialise a report format iterator.
osp_connection_t * osp_scanner_connect(scanner_t)
Create a new connection to an OSP scanner.
report_format_param_type_t
Report format param types.
void set_scan_end_time_epoch(report_t, time_t)
Set the end time of a scan.
int delete_credential(const char *, int)
Delete a Credential.
gchar * xsl_transform(gchar *, gchar *, gchar **, gchar **)
Run xsltproc in an external process.
time_t note_iterator_creation_time(iterator_t *)
const char * nvt_selector_iterator_name(iterator_t *)
const char * credential_scanner_iterator_uuid(iterator_t *)
const char * cve_info_iterator_confidentiality_impact(iterator_t *)
report_format_param_type_t report_format_param_type_from_name(const char *)
Get a report format param type from a name.
int manage_trash_resource_name(const char *, const char *, char **)
Get the name of a trashcan resource.
char * scan_start_time(report_t)
Get the start time of a scan.
int delete_task_lock(task_t, int)
Complete deletion of a task.
int create_alert(const char *, const char *, const char *, event_t, GPtrArray *, alert_condition_t, GPtrArray *, alert_method_t, GPtrArray *, alert_t *)
Create an alert.
gchar * value
Param value.
double double_value
Floating point value of the keyword.
int task_average_scan_duration(task_t)
Get the average duration of all finished reports of a task.
int manage_read_info(gchar *, gchar *, gchar *, gchar **)
Read raw information.
int report_host_dead(report_host_t)
Tests if a report host is marked as dead.
const char * preference_iterator_default(iterator_t *)
const char * filter_alert_iterator_name(iterator_t *)
char * filter
Filter term.
const char * config_timeout_iterator_oid(iterator_t *)
void report_set_slave_username(report_t, const gchar *)
void init_param_option_iterator(iterator_t *, report_format_param_t, int, const char *)
Initialise a report format param option iterator.
void set_task_start_time(task_t, char *)
Set the start time of a task.
long long int resource_t
A resource, like a task or target.
const char * alert_data_iterator_data(iterator_t *)
Return the data from an alert data iterator.
gboolean find_config_with_permission(const char *, config_t *, const char *)
Find a config for a set of permissions, given a UUID.
const char * aggregate_iterator_value(iterator_t *)
Get the value of the group column from a statistics iterator.
long long int report_format_t
const char * dfn_cert_adv_info_iterator_title(iterator_t *)
int delete_report_format(const char *, int)
Delete a report format.
int init_config_iterator(iterator_t *, const get_data_t *)
Initialise a scan config iterator.
const char * credential_iterator_community(iterator_t *)
Get the SNMP community from a Credential iterator.
const char * task_trend(task_t, int, int)
Return the trend of a task.
int schedule_period(schedule_t)
Return the period of a schedule.
const char * user_role_iterator_name(iterator_t *)
char * nvt_preference_iterator_config_value(iterator_t *, config_t)
Get the config value from an NVT preference iterator.
int modify_role(const char *, const char *, const char *, const char *)
Modify a role.
char * config_nvt_timeout(config_t, const char *)
Get the timeout value for an NVT in a config.
int alert_writable(alert_t)
Return whether a alert is writable.
void set_db_version(int version)
Set the database version of the actual database.
void set_credential_privacy_algorithm(credential_t, const char *)
Set the privacy_algorithm of a Credential.
int permission_iterator_resource_orphan(iterator_t *)
Check if the permission resource has been deleted.
gboolean openvas_get_sync_script_identification(const gchar *, gchar **, int)
Retrieves the ID string of a feed sync script, with basic validation.
time_t task_schedule_next_time_uuid(const gchar *)
Set the next time a scheduled task will be due.