OpenVAS Scanner
23.32.3
kb_cache.c
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Greenbone AG
2
* SPDX-FileCopyrightText: 1998-2003 Renaud Deraison
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
11
12
#include "
kb_cache.h
"
13
14
// shared database between openvas and ospd.
15
kb_t
main_kb
= NULL;
16
26
void
27
set_main_kb
(kb_t kb)
28
{
29
main_kb
= kb;
30
}
31
40
kb_t
41
get_main_kb
(
void
)
42
{
43
assert (
main_kb
);
44
return
main_kb
;
45
}
set_main_kb
void set_main_kb(kb_t kb)
sets the shared database between ospd and openvas as a main_kb for further usage. @description this s...
Definition
kb_cache.c:27
get_main_kb
kb_t get_main_kb(void)
gets the main_kb. @description returns the previously set main_kb; when asserts are enabled it will a...
Definition
kb_cache.c:41
main_kb
kb_t main_kb
Definition
kb_cache.c:15
kb_cache.h
Header file to cache main_kb.
misc
kb_cache.c
Generated on
for OpenVAS Scanner by
1.15.0