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" |
enum kb_item_type |
Possible type of a kb_item.
enum kb_nvt_pos |
Possible positions of nvt values in cache list.
Definition at line 57 of file kb.h.
void kb_item_free | ( | struct kb_item * | ) |
Release a KB item (or a list).
Definition at line 501 of file kb_redis.c.
References KB_TYPE_STR, kb_item::next, kb_item::type, and kb_item::v_str.
const struct kb_operations* KBDefaultOperations |
Default KB operations. No selection mechanism is provided yet since there's only one implementation (redis-based).
Definition at line 1228 of file kb_redis.c.