Greenbone Vulnerability Manager
21.4.5
|
24 #ifndef _GVMD_MANAGE_UTILS_H
25 #define _GVMD_MANAGE_UTILS_H
31 #include <libical/ical.h>
35 #define SEVERITY_LOG 0.0
37 #define SEVERITY_FP -1.0
39 #define SEVERITY_ERROR -3.0
41 #define SEVERITY_MISSING -99.0
43 #define SEVERITY_UNDEFINED -98.0
45 #define SEVERITY_MAX 10.0
47 #define SEVERITY_SUBDIVISIONS 10
56 next_time (time_t,
int,
int,
int,
const char *,
int);
int icalendar_approximate_rrule_from_vcalendar(icalcomponent *vcalendar, time_t *period, time_t *period_months, int *byday_mask)
Approximate the recurrence of a VCALENDAR as classic schedule data. The VCALENDAR must have simplifie...
Definition: manage_utils.c:856
int hosts_str_contains(const char *hosts_str, const char *find_host_str, int max_hosts)
Returns whether a host has an equal host in a hosts string.
Definition: manage_utils.c:267
time_t icalendar_next_time_from_string(const char *ical_string, const char *default_tzid, int periods_offset)
Get the next or previous due time from a VCALENDAR string. The string must be a VCALENDAR simplified ...
Definition: manage_utils.c:1302
long current_offset(const char *zone)
Get the current offset from UTC of a timezone.
Definition: manage_utils.c:61
void blank_control_chars(char *string)
Replace any control characters in string with spaces.
Definition: manage_utils.c:337
time_t add_months(time_t time, int months)
Add months to a time.
Definition: manage_utils.c:131
double level_max_severity(const char *level)
Get the maximum severity for a severity level.
Definition: manage_utils.c:235
icaltimezone * icalendar_timezone_from_string(const char *tzid)
Try to get a built-in libical timezone from a tzid or city name.
Definition: manage_utils.c:357
icalcomponent * icalendar_from_string(const char *ical_string, icaltimezone *zone, gchar **error)
Creates a new, simplified VCALENDAR component from a string.
Definition: manage_utils.c:691
time_t icalendar_first_time_from_vcalendar(icalcomponent *vcalendar, icaltimezone *default_tz)
Get the first time from a VCALENDAR component. The VCALENDAR must have simplified with icalendar_from...
Definition: manage_utils.c:1361
gchar * clean_hosts_string(const char *hosts)
Cleans up a hosts string, removing extra zeroes from IPv4 addresses.
Definition: manage_utils.c:1401
int manage_count_hosts_max(const char *given_hosts, const char *exclude_hosts, int max_hosts)
Return number of hosts described by a hosts string.
Definition: manage_utils.c:154
int icalendar_duration_from_vcalendar(icalcomponent *vcalendar)
Get the duration VCALENDAR component. The VCALENDAR must have simplified with icalendar_from_string f...
Definition: manage_utils.c:1326
icalcomponent * icalendar_from_old_schedule_data(time_t first_time, time_t period, time_t period_months, time_t duration, int byday_mask)
Create an iCalendar component from old schedule data.
Definition: manage_utils.c:384
int valid_db_resource_type(const char *type)
Check whether a resource type table name is valid.
Definition: manage_utils.c:296
double level_min_severity(const char *level)
Get the minimum severity for a severity level.
Definition: manage_utils.c:205
time_t icalendar_next_time_from_vcalendar(icalcomponent *vcalendar, const char *default_tzid, int periods_offset)
Get the next or previous due time from a VCALENDAR component. The VCALENDAR must have simplified with...
Definition: manage_utils.c:1211