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.
15kb_t main_kb = NULL;
16
26void
27set_main_kb (kb_t kb)
28{
29 main_kb = kb;
30}
31
40kb_t
42{
43 assert (main_kb);
44 return main_kb;
45}
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
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
kb_t main_kb
Definition kb_cache.c:15
Header file to cache main_kb.