OpenVAS Libraries
9.0.3
|
Go to the source code of this file.
Data Structures | |
struct | kb_item |
Knowledge base item (defined by name, type (int/char*) and value). Implemented as a singly linked list. More... | |
struct | kb |
Top-level KB. This is to be inherited by KB implementations. More... | |
struct | kb_operations |
KB interface. Functions provided by an implementation. All functions have to be provided, there is no default/fallback. These functions should be called via the corresponding static inline wrappers below. See the wrappers for the documentation. More... | |
Macros | |
#define | KB_PATH_DEFAULT "/tmp/redis.sock" |
Default KB location. More... | |
Typedefs | |
typedef struct kb * | kb_t |
type abstraction to hide KB internals. More... | |
Enumerations | |
enum | kb_item_type { KB_TYPE_UNSPEC, KB_TYPE_INT, KB_TYPE_STR, KB_TYPE_CNT } |
Possible type of a kb_item. More... | |
enum | kb_nvt_pos { NVT_FILENAME_POS, NVT_REQUIRED_KEYS_POS, NVT_MANDATORY_KEYS_POS, NVT_EXCLUDED_KEYS_POS, NVT_REQUIRED_UDP_PORTS_POS, NVT_REQUIRED_PORTS_POS, NVT_DEPENDENCIES_POS, NVT_TAGS_POS, NVT_CVES_POS, NVT_BIDS_POS, NVT_XREFS_POS, NVT_CATEGORY_POS, NVT_TIMEOUT_POS, NVT_FAMILY_POS, NVT_COPYRIGHT_POS, NVT_NAME_POS, NVT_VERSION_POS } |
Possible positions of nvt values in cache list. More... | |
Functions | |
void | kb_item_free (struct kb_item *) |
Release a KB item (or a list). More... | |
Variables | |
const struct kb_operations * | KBDefaultOperations |
Default KB operations. No selection mechanism is provided yet since there's only one implementation (redis-based). More... | |
#define KB_PATH_DEFAULT "/tmp/redis.sock" |
Default KB location.
TODO This should eventually be expressed as an URI when/if multiple KB backends are supported (e.g.: redis:///tmp/redis.sock).
enum kb_item_type |
Possible type of a kb_item.
enum kb_nvt_pos |
Possible positions of nvt values in cache list.
void kb_item_free | ( | struct kb_item * | ) |
Release a KB item (or a list).
|
extern |
Default KB operations. No selection mechanism is provided yet since there's only one implementation (redis-based).