|
OpenVAS Scanner
5.1.3
|
#include <errno.h>#include <unistd.h>#include <string.h>#include <sys/stat.h>#include <glib.h>#include <sys/types.h>#include <utime.h>#include <openvas/base/drop_privileges.h>#include <openvas/base/nvticache.h>#include <openvas/nasl/nasl.h>#include <openvas/misc/network.h>#include <openvas/misc/nvt_categories.h>#include <openvas/misc/plugutils.h>#include <openvas/misc/internal_com.h>#include <openvas/misc/openvas_proctitle.h>#include <openvas/misc/prefs.h>#include "pluginload.h"#include "pluginscheduler.h"#include "pluginlaunch.h"#include "processes.h"#include "log.h"
Go to the source code of this file.
Data Structures | |
| struct | nasl_thread_args |
Functions | |
| int | nasl_plugin_add (char *folder, char *filename) |
| The nasl - plugin class. Loads or launches nasl- plugins. More... | |
| int | nasl_plugin_launch (struct arglist *globals, struct host_info *hostinfo, kb_t kb, char *name, const char *oid, int soc) |
| Launch a NASL plugin. More... | |
| 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 * | globals, |
| struct host_info * | hostinfo, | ||
| kb_t | kb, | ||
| char * | name, | ||
| const char * | oid, | ||
| int | soc | ||
| ) |
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.
