|
OpenVAS Scanner 23.40.3
|
kb_cache.h implementation. More...
#include "kb_cache.h"
Go to the source code of this file.
Functions | |
| void | set_main_kb (kb_t kb) |
| sets the shared database between ospd and openvas as a main_kb for further usage. @description this sets the given kb as a main_kb global variable. It is NOT threadsafe and must be called after each reconnect or fork. | |
| kb_t | get_main_kb (void) |
| gets the main_kb. @description returns the previously set main_kb; when asserts are enabled it will abort when main_kb is not set. However each usage must check if the return is NULL or not. | |
Variables | |
| kb_t | main_kb = NULL |
kb_cache.h implementation.
Definition in file kb_cache.c.
| kb_t get_main_kb | ( | void | ) |
gets the main_kb. @description returns the previously set main_kb; when asserts are enabled it will abort when main_kb is not set. However each usage must check if the return is NULL or not.
Definition at line 41 of file kb_cache.c.
References main_kb.
Referenced by attack_host(), attack_start(), call_lsc(), call_rs_notus(), check_kb_inconsistency_log(), launch_plugin(), nasl_thread(), open_sock_tcp(), plug_fork_child(), plugin_run_find_service(), proto_post_wrapped(), and security_notus().

| void set_main_kb | ( | kb_t | kb | ) |
sets the shared database between ospd and openvas as a main_kb for further usage. @description this sets the given kb as a main_kb global variable. It is NOT threadsafe and must be called after each reconnect or fork.
| main_kb | Current main kb. |
Definition at line 27 of file kb_cache.c.
References main_kb.
Referenced by Ensure(), main(), and overwrite_openvas_prefs_with_prefs_from_client().

| kb_t main_kb = NULL |
Definition at line 15 of file kb_cache.c.
Referenced by attack_network(), attack_start(), check_deprecated_prefs(), check_kb_inconsistency(), comm_send_status(), comm_send_status_host_dead(), connect_main_kb(), get_main_kb(), hosts_new(), next_free_process(), plugin_launch(), pluginlaunch_wait(), pluginlaunch_wait_for_free_process(), scan_stop_cleanup(), set_kb_readable(), set_main_kb(), set_scan_status(), and update_running_processes().