OpenVAS Libraries
9.0.1
|
Protos and data structures for NVT Information Cache. More...
Go to the source code of this file.
Functions | |
int | nvticache_init (const char *, const char *, const char *) |
Initializes the nvti cache. More... | |
void | nvticache_reset () |
Reset connection to KB. To be called after a fork(). More... | |
int | nvticache_initialized (void) |
Return whether the nvt cache is initialized. More... | |
void | nvticache_free (void) |
Free the nvti cache. More... | |
nvti_t * | nvticache_get (const gchar *) |
Retrieve NVT Information from the nvt cache for the given filename. More... | |
int | nvticache_add (const nvti_t *, const char *) |
Add a NVT Information to the cache. More... | |
nvti_t * | nvticache_get_by_oid_full (const char *) |
Get a full NVTI from the cache by OID. More... | |
nvti_t * | nvticache_get_by_name_full (const char *) |
Get a full NVTI from the cache file by filename. More... | |
char * | nvticache_get_src (const char *) |
Get the full source filename of an OID. More... | |
char * | nvticache_get_oid (const char *) |
Get the OID from a plugin filename. More... | |
char * | nvticache_get_name (const char *) |
Get the name from a plugin OID. More... | |
char * | nvticache_get_required_keys (const char *) |
Get the Required Keys from a plugin OID. More... | |
char * | nvticache_get_mandatory_keys (const char *) |
Get the Mandatory Keys from a plugin OID. More... | |
char * | nvticache_get_excluded_keys (const char *) |
Get the Excluded Keys from a plugin OID. More... | |
char * | nvticache_get_required_ports (const char *) |
Get the Required ports from a plugin OID. More... | |
char * | nvticache_get_required_udp_ports (const char *) |
Get the Required udp ports from a plugin OID. More... | |
int | nvticache_get_category (const char *) |
Get the Category from a plugin OID. More... | |
int | nvticache_get_timeout (const char *) |
Get the Timeout from a plugin OID. More... | |
char * | nvticache_get_dependencies (const char *) |
Get the Dependencies from a plugin OID. More... | |
GSList * | nvticache_get_names (void) |
Get the list of nvti filenames. More... | |
GSList * | nvticache_get_oids (void) |
Get the list of nvti OIDs. More... | |
Protos and data structures for NVT Information Cache.
This file contains the protos for nvticache.c
int nvticache_add | ( | const nvti_t * | nvti, |
const char * | filename | ||
) |
Add a NVT Information to the cache.
nvti | The NVT Information to add |
filename | The name of the original NVT without the path to the base location of NVTs (e.g. "scriptname1.nasl" or even "subdir1/subdir2/scriptname2.nasl" ) |
void nvticache_free | ( | void | ) |
Free the nvti cache.
nvti_t* nvticache_get | ( | const gchar * | filename | ) |
Retrieve NVT Information from the nvt cache for the given filename.
filename | The name of the original NVT without the path to the base location of NVTs (e.g. "scriptname1.nasl" or even "subdir1/subdir2/scriptname2.nasl" ) |
nvti_t* nvticache_get_by_name_full | ( | const char * | filename | ) |
Get a full NVTI from the cache file by filename.
filename | Filename of nvti to lookup |
nvti_t* nvticache_get_by_oid_full | ( | const char * | oid | ) |
Get a full NVTI from the cache by OID.
oid | The OID to look up |
int nvticache_get_category | ( | const char * | oid | ) |
Get the Category from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_dependencies | ( | const char * | oid | ) |
Get the Dependencies from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_excluded_keys | ( | const char * | oid | ) |
Get the Excluded Keys from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_mandatory_keys | ( | const char * | oid | ) |
Get the Mandatory Keys from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_name | ( | const char * | oid | ) |
Get the name from a plugin OID.
[in] | oid | OID to match. |
GSList* nvticache_get_names | ( | void | ) |
Get the list of nvti filenames.
char* nvticache_get_oid | ( | const char * | filename | ) |
Get the OID from a plugin filename.
filename | Filename to lookup. |
GSList* nvticache_get_oids | ( | void | ) |
Get the list of nvti OIDs.
char* nvticache_get_required_keys | ( | const char * | oid | ) |
Get the Required Keys from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_required_ports | ( | const char * | oid | ) |
Get the Required ports from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_required_udp_ports | ( | const char * | oid | ) |
Get the Required udp ports from a plugin OID.
[in] | oid | OID to match. |
char* nvticache_get_src | ( | const char * | oid | ) |
Get the full source filename of an OID.
oid | The OID to look up. |
int nvticache_get_timeout | ( | const char * | oid | ) |
Get the Timeout from a plugin OID.
[in] | oid | OID to match. |
int nvticache_init | ( | const char * | cache, |
const char * | src, | ||
const char * | kb_path | ||
) |
Initializes the nvti cache.
cache | The directory where the cache is to be stored. |
src | The directory that contains the nvt files. |
kb_path | Path to kb socket. |
int nvticache_initialized | ( | void | ) |
Return whether the nvt cache is initialized.
void nvticache_reset | ( | ) |
Reset connection to KB. To be called after a fork().