OpenVAS Libraries  9.0.3
nvticache.c File Reference

Implementation of API to handle NVT Info Cache. More...

#include <sys/stat.h>
#include "nvticache.h"
#include "kb.h"
#include <string.h>
#include <assert.h>
#include <stdlib.h>
Include dependency graph for nvticache.c:

Go to the source code of this file.

Macros

#define G_LOG_DOMAIN   "lib nvticache"
 

Functions

int nvticache_initialized (void)
 Return whether the nvt cache is initialized. More...
 
int nvticache_init (const char *src, const char *kb_path)
 Initializes the nvti cache. More...
 
kb_t nvticache_get_kb (void)
 Return the nvticache kb. More...
 
int nvticache_check (const gchar *filename)
 Check if the nvt for the given filename exists in cache. More...
 
void nvticache_reset ()
 Reset connection to KB. To be called after a fork(). More...
 
int nvticache_add (const nvti_t *nvti, const char *filename)
 Add a NVT Information to the cache. More...
 
char * nvticache_get_src (const char *oid)
 Get the full source filename of an OID. More...
 
char * nvticache_get_oid (const char *filename)
 Get the OID from a plugin filename. More...
 
char * nvticache_get_filename (const char *oid)
 Get the filename from a plugin OID. More...
 
char * nvticache_get_required_keys (const char *oid)
 Get the Required Keys from a plugin OID. More...
 
char * nvticache_get_mandatory_keys (const char *oid)
 Get the Mandatory Keys from a plugin OID. More...
 
char * nvticache_get_excluded_keys (const char *oid)
 Get the Excluded Keys from a plugin OID. More...
 
char * nvticache_get_required_udp_ports (const char *oid)
 Get the Required udp ports from a plugin OID. More...
 
char * nvticache_get_required_ports (const char *oid)
 Get the Required ports from a plugin OID. More...
 
char * nvticache_get_dependencies (const char *oid)
 Get the Dependencies from a plugin OID. More...
 
int nvticache_get_category (const char *oid)
 Get the Category from a plugin OID. More...
 
int nvticache_get_timeout (const char *oid)
 Get the Timeout from a plugin OID. More...
 
char * nvticache_get_name (const char *oid)
 Get the name from a plugin OID. More...
 
char * nvticache_get_version (const char *oid)
 Get the version from a plugin OID. More...
 
char * nvticache_get_copyright (const char *oid)
 Get the copyright from a plugin OID. More...
 
char * nvticache_get_cves (const char *oid)
 Get the cves from a plugin OID. More...
 
char * nvticache_get_bids (const char *oid)
 Get the bids from a plugin OID. More...
 
char * nvticache_get_xrefs (const char *oid)
 Get the xrefs from a plugin OID. More...
 
char * nvticache_get_family (const char *oid)
 Get the family from a plugin OID. More...
 
char * nvticache_get_tags (const char *oid)
 Get the tags from a plugin OID. More...
 
GSList * nvticache_get_prefs (const char *oid)
 Get the prefs from a plugin OID. More...
 
GSList * nvticache_get_oids ()
 Get the list of nvti OIDs. More...
 
size_t nvticache_count ()
 Get the number of nvt's in the cache. More...
 
void nvticache_delete (const char *oid)
 

Variables

char * src_path = NULL
 
kb_t cache_kb = NULL
 

Detailed Description

Implementation of API to handle NVT Info Cache.

This file contains all methods to handle NVT Information Cache (nvticache_t).

The module consequently uses glib datatypes and api for memory management etc.

Definition in file nvticache.c.

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "lib nvticache"

Definition at line 49 of file nvticache.c.

Function Documentation

◆ nvticache_add()

int nvticache_add ( const nvti_t nvti,
const char *  filename 
)

Add a NVT Information to the cache.

Parameters
nvtiThe NVT Information to add
filenameThe name of the original NVT without the path to the base location of NVTs (e.g. "scriptname1.nasl" or even "subdir1/subdir2/scriptname2.nasl" )
Returns
0 in case of success, anything else indicates an error.

Definition at line 157 of file nvticache.c.

158 {
159  char *oid, *dummy, pattern[4096];
160  GSList *element;
161 
162  assert (cache_kb);
163 
164  /* Check for duplicate OID. */
165  oid = nvti_oid (nvti);
166  dummy = nvticache_get_filename (oid);
167  if (dummy && strcmp (filename, dummy))
168  {
169  struct stat src_stat;
170  char *src_file = g_build_filename (src_path, dummy, NULL);
171 
172  /* If .nasl file was duplicated, not moved. */
173  if (src_file && stat (src_file, &src_stat) >= 0)
174  g_warning ("NVT %s with duplicate OID %s will be replaced with %s",
175  src_file, oid, filename);
176  g_free (src_file);
177  }
178  if (dummy)
180 
181  g_free (dummy);
182  if (kb_nvt_add (cache_kb, nvti, filename))
183  goto kb_fail;
184  element = nvti->prefs;
185  while (element)
186  {
187  char value[4096];
188  nvtpref_t *pref = element->data;
189 
190  g_snprintf (pattern, sizeof (pattern), "oid:%s:prefs", oid);
191  g_snprintf (value, sizeof (value), "%s|||%s|||%s", pref->name, pref->type,
192  pref->dflt);
193  if (kb_item_add_str (cache_kb, pattern, value))
194  goto kb_fail;
195  element = element->next;
196  }
197  g_snprintf (pattern, sizeof (pattern), "filename:%s:timestamp", filename);
198  if (kb_item_set_int (cache_kb, pattern, time (NULL)))
199  goto kb_fail;
200 
201  return 0;
202 
203 kb_fail:
204  return -1;
205 }
char * nvticache_get_filename(const char *oid)
Get the filename from a plugin OID.
Definition: nvticache.c:268
gchar * name
Name of the preference.
Definition: nvti.h:48
The structure of a information record that corresponds to a NVT.
Definition: nvti.h:64
const char * oid
gchar * type
Preference type.
Definition: nvti.h:47
void nvticache_delete(const char *oid)
Definition: nvticache.c:587
kb_t cache_kb
Definition: nvticache.c:52
gchar * dflt
Default value of the preference.
Definition: nvti.h:49
The structure for a preference of a NVT.
Definition: nvti.h:45
char * src_path
Definition: nvticache.c:51
gchar * nvti_oid(const nvti_t *n)
Get the OID string.
Definition: nvti.c:218
GSList * prefs
Collection of NVT preferences.
Definition: nvti.h:86

References cache_kb, nvti_oid(), nvticache_delete(), nvticache_get_filename(), oid, and src_path.

Here is the call graph for this function:

◆ nvticache_check()

int nvticache_check ( const gchar *  filename)

Check if the nvt for the given filename exists in cache.

Parameters
filenameThe name of the original NVT without the path to the base location of NVTs (e.g. "scriptname1.nasl" or even "subdir1/subdir2/scriptname2.nasl" )
Returns
1 if nvt is in cache and up to date, 0 otherwise.

Definition at line 114 of file nvticache.c.

115 {
116  assert (cache_kb);
117  char pattern[2048], *src_file;
118  time_t timestamp;
119  struct stat src_stat;
120 
121  src_file = g_build_filename (src_path, filename, NULL);
122  g_snprintf (pattern, sizeof (pattern), "filename:%s:timestamp", filename);
123  timestamp = kb_item_get_int (cache_kb, pattern);
124  if (timestamp && src_file && stat (src_file, &src_stat) >= 0
125  && timestamp > src_stat.st_mtime)
126  {
127  g_free (src_file);
128  return 1;
129  }
130  g_free (src_file);
131  return 0;
132 }
kb_t cache_kb
Definition: nvticache.c:52
char * src_path
Definition: nvticache.c:51

References cache_kb, and src_path.

◆ nvticache_count()

size_t nvticache_count ( void  )

Get the number of nvt's in the cache.

Returns
Number of nvt's.

Definition at line 579 of file nvticache.c.

580 {
581  assert (cache_kb);
582 
583  return kb_item_count (cache_kb, "nvt:*");
584 }
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_delete()

void nvticache_delete ( const char *  oid)

Definition at line 587 of file nvticache.c.

588 {
589  char pattern[4096];
590  char *filename;
591 
592  assert (cache_kb);
593  assert (oid);
594 
595  filename = nvticache_get_filename (oid);
596  g_snprintf (pattern, sizeof (pattern), "oid:%s:prefs", oid);
597  kb_del_items (cache_kb, pattern);
598  g_snprintf (pattern, sizeof (pattern), "nvt:%s", oid);
599  kb_del_items (cache_kb, pattern);
600 
601  if (filename)
602  {
603  g_snprintf (pattern, sizeof (pattern), "filename:%s:timestamp", filename);
604  kb_del_items (cache_kb, pattern);
605  g_snprintf (pattern, sizeof (pattern), "filename:%s:oid", filename);
606  kb_del_items (cache_kb, pattern);
607  }
608  g_free (filename);
609 }
char * nvticache_get_filename(const char *oid)
Get the filename from a plugin OID.
Definition: nvticache.c:268
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb, nvticache_get_filename(), and oid.

Referenced by nvticache_add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nvticache_get_bids()

char* nvticache_get_bids ( const char *  oid)

Get the bids from a plugin OID.

Parameters
[in]oidOID to match.
Returns
BIDs matching OID, NULL otherwise.

Definition at line 462 of file nvticache.c.

463 {
464  assert (cache_kb);
465  return kb_nvt_get (cache_kb, oid, NVT_BIDS_POS);
466 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_category()

int nvticache_get_category ( const char *  oid)

Get the Category from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Category matching OID, -1 otherwise.

Definition at line 366 of file nvticache.c.

367 {
368  int category;
369  char *category_s;
370 
371  assert (cache_kb);
372  category_s = kb_nvt_get (cache_kb, oid, NVT_CATEGORY_POS);
373  category = atoi (category_s);
374  g_free (category_s);
375  return category;
376 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_copyright()

char* nvticache_get_copyright ( const char *  oid)

Get the copyright from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Copyright matching OID, NULL otherwise.

Definition at line 434 of file nvticache.c.

435 {
436  assert (cache_kb);
437  return kb_nvt_get (cache_kb, oid, NVT_COPYRIGHT_POS);
438 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_cves()

char* nvticache_get_cves ( const char *  oid)

Get the cves from a plugin OID.

Parameters
[in]oidOID to match.
Returns
CVEs matching OID, NULL otherwise.

Definition at line 448 of file nvticache.c.

449 {
450  assert (cache_kb);
451  return kb_nvt_get (cache_kb, oid, NVT_CVES_POS);
452 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_dependencies()

char* nvticache_get_dependencies ( const char *  oid)

Get the Dependencies from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Dependencies matching OID, NULL otherwise.

Definition at line 352 of file nvticache.c.

353 {
354  assert (cache_kb);
355  return kb_nvt_get (cache_kb, oid, NVT_DEPENDENCIES_POS);
356 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_excluded_keys()

char* nvticache_get_excluded_keys ( const char *  oid)

Get the Excluded Keys from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Excluded Keys matching OID, NULL otherwise.

Definition at line 310 of file nvticache.c.

311 {
312  assert (cache_kb);
313  return kb_nvt_get (cache_kb, oid, NVT_EXCLUDED_KEYS_POS);
314 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_family()

char* nvticache_get_family ( const char *  oid)

Get the family from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Family matching OID, NULL otherwise.

Definition at line 490 of file nvticache.c.

491 {
492  assert (cache_kb);
493  return kb_nvt_get (cache_kb, oid, NVT_FAMILY_POS);
494 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_filename()

char* nvticache_get_filename ( const char *  oid)

Get the filename from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Filanem matching OID, NULL otherwise.

Definition at line 268 of file nvticache.c.

269 {
270  assert (cache_kb);
271  return kb_nvt_get (cache_kb, oid, NVT_FILENAME_POS);
272 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Referenced by nvticache_add(), and nvticache_delete().

Here is the caller graph for this function:

◆ nvticache_get_kb()

kb_t nvticache_get_kb ( void  )

Return the nvticache kb.

Returns
Cache kb.

Definition at line 97 of file nvticache.c.

98 {
99  assert (cache_kb);
100  return cache_kb;
101 }
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Referenced by exec_nasl_script().

Here is the caller graph for this function:

◆ nvticache_get_mandatory_keys()

char* nvticache_get_mandatory_keys ( const char *  oid)

Get the Mandatory Keys from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Mandatory Keys matching OID, NULL otherwise.

Definition at line 296 of file nvticache.c.

297 {
298  assert (cache_kb);
299  return kb_nvt_get (cache_kb, oid, NVT_MANDATORY_KEYS_POS);
300 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_name()

char* nvticache_get_name ( const char *  oid)

Get the name from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Name matching OID, NULL otherwise.

Definition at line 406 of file nvticache.c.

407 {
408  assert (cache_kb);
409  return kb_nvt_get (cache_kb, oid, NVT_NAME_POS);
410 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Referenced by get_plugin_preference().

Here is the caller graph for this function:

◆ nvticache_get_oid()

char* nvticache_get_oid ( const char *  filename)

Get the OID from a plugin filename.

Parameters
filenameFilename to lookup.
Returns
OID matching filename if found, NULL otherwise.

Definition at line 237 of file nvticache.c.

238 {
239  char *ret, pattern[2048];
240  struct kb_item *kbi;
241 
242  assert (cache_kb);
243 
244  g_snprintf (pattern, sizeof (pattern), "filename:%s:oid", filename);
245  ret = kb_item_get_str (cache_kb, pattern);
246  if (ret)
247  return ret;
248 
249  /* NVT filename in subfolder case. */
250  g_snprintf (pattern, sizeof (pattern), "filename:*/%s:oid", filename);
251  kbi = kb_item_get_pattern (cache_kb, pattern);
252  if (!kbi)
253  return NULL;
254 
255  ret = g_strdup (kbi->v_str);
256  kb_item_free (kbi);
257  return ret;
258 }
void kb_item_free(struct kb_item *)
Release a KB item (or a list).
Definition: kb_redis.c:501
Knowledge base item (defined by name, type (int/char*) and value). Implemented as a singly linked lis...
Definition: kb.h:81
kb_t cache_kb
Definition: nvticache.c:52
char * v_str
Definition: kb.h:87

References cache_kb.

◆ nvticache_get_oids()

GSList* nvticache_get_oids ( void  )

Get the list of nvti OIDs.

Returns
OIDs list.

Definition at line 553 of file nvticache.c.

554 {
555  struct kb_item *kbi, *item;
556  GSList *list = NULL;
557 
558  assert (cache_kb);
559 
560  kbi = item = kb_item_get_pattern (cache_kb, "filename:*:oid");
561  if (!kbi)
562  return NULL;
563 
564  while (item)
565  {
566  list = g_slist_prepend (list, g_strdup (item->v_str));
567  item = item->next;
568  }
569  kb_item_free (kbi);
570  return list;
571 }
void kb_item_free(struct kb_item *)
Release a KB item (or a list).
Definition: kb_redis.c:501
Knowledge base item (defined by name, type (int/char*) and value). Implemented as a singly linked lis...
Definition: kb.h:81
struct kb_item * next
Definition: kb.h:91
kb_t cache_kb
Definition: nvticache.c:52
char * v_str
Definition: kb.h:87

References cache_kb.

◆ nvticache_get_prefs()

GSList* nvticache_get_prefs ( const char *  oid)

Get the prefs from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Prefs matching OID, NULL otherwise.

Definition at line 518 of file nvticache.c.

519 {
520  char pattern[4096];
521  struct kb_item *prefs, *element;
522  GSList *list = NULL;
523 
524  assert (cache_kb);
525 
526  g_snprintf (pattern, sizeof (pattern), "oid:%s:prefs", oid);
527  prefs = element = kb_item_get_all (cache_kb, pattern);
528  while (element)
529  {
530  nvtpref_t *np;
531  char **array = g_strsplit (element->v_str, "|||", -1);
532 
533  assert (array[2]);
534  assert (!array[3]);
535  np = g_malloc0 (sizeof (nvtpref_t));
536  np->name = array[0];
537  np->type = array[1];
538  np->dflt = array[2];
539  list = g_slist_append (list, np);
540  element = element->next;
541  }
542  kb_item_free (prefs);
543 
544  return list;
545 }
void kb_item_free(struct kb_item *)
Release a KB item (or a list).
Definition: kb_redis.c:501
gchar * name
Name of the preference.
Definition: nvti.h:48
Knowledge base item (defined by name, type (int/char*) and value). Implemented as a singly linked lis...
Definition: kb.h:81
struct kb_item * next
Definition: kb.h:91
const char * oid
gchar * type
Preference type.
Definition: nvti.h:47
kb_t cache_kb
Definition: nvticache.c:52
gchar * dflt
Default value of the preference.
Definition: nvti.h:49
The structure for a preference of a NVT.
Definition: nvti.h:45
char * v_str
Definition: kb.h:87

References cache_kb, and oid.

Referenced by get_plugin_preference().

Here is the caller graph for this function:

◆ nvticache_get_required_keys()

char* nvticache_get_required_keys ( const char *  oid)

Get the Required Keys from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Required Keys matching OID, NULL otherwise.

Definition at line 282 of file nvticache.c.

283 {
284  assert (cache_kb);
285  return kb_nvt_get (cache_kb, oid, NVT_REQUIRED_KEYS_POS);
286 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_required_ports()

char* nvticache_get_required_ports ( const char *  oid)

Get the Required ports from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Required ports matching OID, NULL otherwise.

Definition at line 338 of file nvticache.c.

339 {
340  assert (cache_kb);
341  return kb_nvt_get (cache_kb, oid, NVT_REQUIRED_PORTS_POS);
342 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_required_udp_ports()

char* nvticache_get_required_udp_ports ( const char *  oid)

Get the Required udp ports from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Required udp ports matching OID, NULL otherwise.

Definition at line 324 of file nvticache.c.

325 {
326  assert (cache_kb);
327  return kb_nvt_get (cache_kb, oid, NVT_REQUIRED_UDP_PORTS_POS);
328 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_src()

char* nvticache_get_src ( const char *  oid)

Get the full source filename of an OID.

Parameters
oidThe OID to look up.
Returns
Filename with full path matching OID if found, NULL otherwise.

Definition at line 215 of file nvticache.c.

216 {
217  char *filename, *src;
218 
219  assert (cache_kb);
220 
221  filename = kb_nvt_get (cache_kb, oid, NVT_FILENAME_POS);
222  if (!filename)
223  return NULL;
224  src = g_build_filename (src_path, filename, NULL);
225  g_free (filename);
226  return src;
227 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52
char * src_path
Definition: nvticache.c:51

References cache_kb.

◆ nvticache_get_tags()

char* nvticache_get_tags ( const char *  oid)

Get the tags from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Tags matching OID, NULL otherwise.

Definition at line 504 of file nvticache.c.

505 {
506  assert (cache_kb);
507  return kb_nvt_get (cache_kb, oid, NVT_TAGS_POS);
508 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Referenced by proto_post_wrapped().

Here is the caller graph for this function:

◆ nvticache_get_timeout()

int nvticache_get_timeout ( const char *  oid)

Get the Timeout from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Timeout matching OID, -1 otherwise.

Definition at line 386 of file nvticache.c.

387 {
388  int timeout;
389  char *timeout_s;
390 
391  assert (cache_kb);
392  timeout_s = kb_nvt_get (cache_kb, oid, NVT_TIMEOUT_POS);
393  timeout = atoi (timeout_s);
394  g_free (timeout_s);
395  return timeout;
396 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_version()

char* nvticache_get_version ( const char *  oid)

Get the version from a plugin OID.

Parameters
[in]oidOID to match.
Returns
Version matching OID, NULL otherwise.

Definition at line 420 of file nvticache.c.

421 {
422  assert (cache_kb);
423  return kb_nvt_get (cache_kb, oid, NVT_VERSION_POS);
424 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_get_xrefs()

char* nvticache_get_xrefs ( const char *  oid)

Get the xrefs from a plugin OID.

Parameters
[in]oidOID to match.
Returns
XREFs matching OID, NULL otherwise.

Definition at line 476 of file nvticache.c.

477 {
478  assert (cache_kb);
479  return kb_nvt_get (cache_kb, oid, NVT_XREFS_POS);
480 }
const char * oid
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

◆ nvticache_init()

int nvticache_init ( const char *  src,
const char *  kb_path 
)

Initializes the nvti cache.

Parameters
cacheThe directory where the cache is to be stored.
srcThe directory that contains the nvt files.
kb_pathPath to kb socket.

Definition at line 73 of file nvticache.c.

74 {
75  assert (src);
76 
77  if (src_path)
78  g_free (src_path);
79  src_path = g_strdup (src);
80  if (cache_kb)
81  kb_lnk_reset (cache_kb);
82  cache_kb = kb_find (kb_path, "nvticache");
83  if (cache_kb)
84  return 0;
85 
86  if (kb_new (&cache_kb, kb_path) || kb_item_set_int (cache_kb, "nvticache", 1))
87  return -1;
88  return 0;
89 }
kb_t cache_kb
Definition: nvticache.c:52
char * src_path
Definition: nvticache.c:51

References cache_kb, and src_path.

◆ nvticache_initialized()

int nvticache_initialized ( void  )

Return whether the nvt cache is initialized.

Returns
1 if cache is initialized, 0 otherwise.

Definition at line 60 of file nvticache.c.

61 {
62  return !!cache_kb;
63 }
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Referenced by exec_nasl_script(), get_plugin_preference(), and proto_post_wrapped().

Here is the caller graph for this function:

◆ nvticache_reset()

void nvticache_reset ( )

Reset connection to KB. To be called after a fork().

Definition at line 138 of file nvticache.c.

139 {
140  if (cache_kb)
141  kb_lnk_reset (cache_kb);
142 }
kb_t cache_kb
Definition: nvticache.c:52

References cache_kb.

Variable Documentation

◆ cache_kb

◆ src_path

char* src_path = NULL

Definition at line 51 of file nvticache.c.

Referenced by nvticache_add(), nvticache_check(), and nvticache_init().