OpenVAS Scanner
5.1.3
|
#include <openvas/misc/arglists.h>
#include <openvas/base/kb.h>
#include <openvas/misc/network.h>
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 *) |
The nasl - plugin class. Loads or launches nasl- plugins. More... | |
int | nasl_plugin_launch (struct arglist *, struct host_info *, kb_t, char *, const char *, int) |
Launch a NASL plugin. More... | |
int current_loading_plugins | ( | void | ) |
Definition at line 183 of file pluginload.c.
Referenced by comm_loading().
void destroy_loading_shm | ( | void | ) |
Definition at line 165 of file pluginload.c.
Referenced by loading_handler_stop().
void init_loading_shm | ( | void | ) |
Definition at line 132 of file pluginload.c.
int nasl_plugin_add | ( | char * | folder, |
char * | filename | ||
) |
The nasl - plugin class. Loads or launches nasl- plugins.
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. If a plugin with the same (file)name is already present in the plugins arglist, it will be replaced.
folder | Path to the plugin folder. |
filename | File-name of the plugin |
Definition at line 73 of file nasl_plugins.c.
References log_write().
int nasl_plugin_launch | ( | struct arglist * | , |
struct host_info * | , | ||
kb_t | , | ||
char * | , | ||
const char * | , | ||
int | |||
) |
Launch a NASL plugin.
Definition at line 145 of file nasl_plugins.c.
References nasl_thread_args::args, create_process(), nasl_thread_args::name, nasl_thread_args::oid, and nasl_thread_args::soc.
int plugins_init | ( | void | ) |
Definition at line 358 of file pluginload.c.
References log_write().
int total_loading_plugins | ( | void | ) |
Definition at line 194 of file pluginload.c.
Referenced by comm_loading().