Greenbone Vulnerability Manager
9.0.1
|
Manager Manage library: SQL backend headers. More...
Go to the source code of this file.
Macros | |
#define | NVT_INFO_ITERATOR_FILTER_COLUMNS |
Filter columns for NVT info iterator. More... | |
#define | NVT_ITERATOR_COLUMNS |
NVT iterator columns. More... | |
#define | NVT_ITERATOR_COLUMNS_NVTS |
NVT iterator columns. More... | |
Functions | |
const char * | get_osp_vt_update_socket () |
Get the current file socket for OSP NVT update. More... | |
void | set_osp_vt_update_socket (const char *new_socket) |
Set the file socket for OSP NVT update. More... | |
int | check_osp_vt_update_socket () |
Check the files socket used for OSP NVT update. More... | |
void | check_db_nvts () |
Ensures the sanity of nvts cache in DB. | |
int | check_config_families () |
Ensure that all configs refer to the right NVT families. More... | |
void | manage_sync_nvts (int(*)()) |
Sync NVTs if newer NVTs are available. More... | |
int | manage_update_nvt_cache_osp (const gchar *) |
Update VTs via OSP. More... | |
int | family_count () |
Get the number of families. More... | |
Manager Manage library: SQL backend headers.
#define NVT_INFO_ITERATOR_FILTER_COLUMNS |
Filter columns for NVT info iterator.
#define NVT_ITERATOR_COLUMNS |
NVT iterator columns.
#define NVT_ITERATOR_COLUMNS_NVTS |
NVT iterator columns.
int check_config_families | ( | ) |
Ensure that all configs refer to the right NVT families.
When the family of an NVT is changed in the feed, then the config refers to the wrong family.
int check_osp_vt_update_socket | ( | ) |
Check the files socket used for OSP NVT update.
int family_count | ( | ) |
Get the number of families.
const char* get_osp_vt_update_socket | ( | ) |
Get the current file socket for OSP NVT update.
void manage_sync_nvts | ( | int(*)() | fork_update_nvt_cache | ) |
Sync NVTs if newer NVTs are available.
[in] | fork_update_nvt_cache | Function to do the update. |
int manage_update_nvt_cache_osp | ( | const gchar * | update_socket | ) |
Update VTs via OSP.
Expect to be called in the child after a fork.
[in] | update_socket | Socket to use to contact ospd-openvas scanner. |
void set_osp_vt_update_socket | ( | const char * | new_socket | ) |
Set the file socket for OSP NVT update.
new_socket | The new path of the file socket for OSP NVT update. |