|
Greenbone Vulnerability Manager
22.4.0~dev1
|
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 | update_or_rebuild_nvts (int) |
| Update or rebuild NVT db. More... | |
| int | nvts_feed_version_status () |
| Check VTs feed version status. More... | |
| int | manage_update_nvt_cache_osp (const gchar *) |
| Update VTs via OSP. More... | |
| char * | nvt_family (const char *) |
| Get the family of an NVT. 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. |
| char* nvt_family | ( | const char * | oid | ) |
Get the family of an NVT.
| [in] | oid | The OID of the NVT. |
| int nvts_feed_version_status | ( | ) |
Check VTs feed version status.
| 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. |
| int update_or_rebuild_nvts | ( | int | update | ) |
Update or rebuild NVT db.
Caller must get the lock.
| [in] | update | 0 rebuild, else update. |