27 #ifndef _GVM_NVTICACHE_H 28 #define _GVM_NVTICACHE_H 30 #include "../base/nvti.h" 36 #define NVTICACHE_STR "nvticache10" int nvticache_get_category(const char *)
Get the Category from a plugin OID.
Definition: nvticache.c:380
char * nvticache_get_required_keys(const char *)
Get the Required Keys from a plugin OID.
Definition: nvticache.c:296
int nvticache_check(const gchar *)
Check if the nvt for the given filename exists in cache.
Definition: nvticache.c:115
size_t nvticache_count(void)
Get the number of nvt's in the cache.
Definition: nvticache.c:567
The structure of a information record that corresponds to a NVT.
Definition: nvti.h:62
int nvticache_get_timeout(const char *)
Get the Timeout from a plugin OID.
Definition: nvticache.c:400
char * nvticache_get_dependencies(const char *)
Get the Dependencies from a plugin OID.
Definition: nvticache.c:366
GSList * nvticache_get_oids(void)
Get the list of nvti OIDs.
Definition: nvticache.c:554
char * nvticache_get_tags(const char *)
Get the tags from a plugin OID.
Definition: nvticache.c:490
void nvticache_save()
Save the nvticache to disk.
Definition: nvticache.c:178
int nvticache_check_feed(void)
Check if the plugins feed was newer than cached feed.
Definition: nvticache.c:618
char * nvticache_get_oid(const char *)
Get the OID from a plugin filename.
Definition: nvticache.c:267
kb_t nvticache_get_kb()
Return the nvticache kb.
Definition: nvticache.c:98
int nvticache_add(const nvti_t *, const char *)
Add a NVT Information to the cache.
Definition: nvticache.c:204
void nvticache_delete(const char *)
Delete NVT from the cache.
Definition: nvticache.c:579
char * nvticache_get_bids(const char *)
Get the bids from a plugin OID.
Definition: nvticache.c:448
char * nvticache_get_required_ports(const char *)
Get the Required ports from a plugin OID.
Definition: nvticache.c:352
char * nvticache_get_src(const char *)
Get the full source filename of an OID.
Definition: nvticache.c:245
int nvticache_init(const char *, const char *)
Initializes the nvti cache.
Definition: nvticache.c:73
Top-level KB. This is to be inherited by KB implementations.
Definition: kb.h:101
char * nvticache_feed_version(void)
Get the NVT feed version.
Definition: nvticache.c:607
Knowledge base management API - Redis backend.
nvti_t * nvticache_get_nvt(const char *)
Get the nvti from a plugin OID.
Definition: nvticache.c:504
char * nvticache_get_excluded_keys(const char *)
Get the Excluded Keys from a plugin OID.
Definition: nvticache.c:324
char * nvticache_get_required_udp_ports(const char *)
Get the Required udp ports from a plugin OID.
Definition: nvticache.c:338
int nvticache_initialized(void)
Return whether the nvt cache is initialized.
Definition: nvticache.c:59
char * nvticache_get_xrefs(const char *)
Get the xrefs from a plugin OID.
Definition: nvticache.c:462
char * nvticache_get_filename(const char *)
Get the filename from a plugin OID.
Definition: nvticache.c:282
GSList * nvticache_get_prefs(const char *)
Get the prefs from a plugin OID.
Definition: nvticache.c:518
char * nvticache_get_name(const char *)
Get the name from a plugin OID.
Definition: nvticache.c:420
char * nvticache_get_family(const char *)
Get the family from a plugin OID.
Definition: nvticache.c:476
char * nvticache_get_mandatory_keys(const char *)
Get the Mandatory Keys from a plugin OID.
Definition: nvticache.c:310
char * nvticache_get_cves(const char *)
Get the cves from a plugin OID.
Definition: nvticache.c:434
void nvticache_reset()
Reset connection to KB. To be called after a fork().
Definition: nvticache.c:136