OpenVAS Scanner
7.0.0~git
|
pluginload.c header. More...
Go to the source code of this file.
Functions | |
int | plugins_init (void) |
void | init_loading_shm (void) |
void | destroy_loading_shm (void) |
int | current_loading_plugins (void) |
int | total_loading_plugins (void) |
int | nasl_plugin_add (char *, char *) |
Add one .nasl plugin to the plugin list. More... | |
int | nasl_plugin_launch (struct scan_globals *, struct in6_addr *, GSList *, kb_t, const char *) |
Launch a NASL plugin. More... | |
pluginload.c header.
Definition in file pluginload.h.
int current_loading_plugins | ( | void | ) |
Definition at line 184 of file pluginload.c.
References loading_shm.
void destroy_loading_shm | ( | void | ) |
void init_loading_shm | ( | void | ) |
int nasl_plugin_add | ( | char * | folder, |
char * | filename | ||
) |
Add one .nasl plugin to the plugin list.
The plugin is first attempted to be loaded from the cache. If that fails, it is parsed (via exec_nasl_script) and added to the cache.
folder | Path to the plugin folder. |
filename | File-name of the plugin |
Definition at line 99 of file nasl_plugins.c.
References check_nvti(), exec_nasl_script(), NASL_ALWAYS_SIGNED, and NASL_EXEC_DESCR.
Referenced by plugins_reload_from_dir().
int nasl_plugin_launch | ( | struct scan_globals * | , |
struct in6_addr * | , | ||
GSList * | , | ||
kb_t | , | ||
const char * | |||
) |
Launch a NASL plugin.
Definition at line 151 of file nasl_plugins.c.
References create_process(), script_infos::globals, script_infos::ip, script_infos::key, script_infos::name, nasl_thread(), script_infos::oid, oid, and script_infos::vhosts.
Referenced by plugin_launch().
int plugins_init | ( | void | ) |
Definition at line 359 of file pluginload.c.
References create_process(), include_dirs(), and plugins_reload_from_dir().
Referenced by openvas(), reload_openvas(), and start_single_task_scan().
int total_loading_plugins | ( | void | ) |
Definition at line 195 of file pluginload.c.
References loading_shm.