|
OpenVAS Scanner 23.40.3
|
pluginload.c header. More...


Go to the source code of this file.
Functions | |
| int | plugins_init (void) |
| main function for loading all the plugins | |
| int | plugins_cache_init (void) |
| Main function for nvticache initialization without loading the plugins. | |
| void | init_loading_shm (void) |
| void | destroy_loading_shm (void) |
| int | current_loading_plugins (void) |
| int | total_loading_plugins (void) |
| int | nasl_plugin_add (const char *, char *) |
| Add one .nasl plugin to the plugin list. | |
| int | nasl_file_check (const char *, const char *) |
| Check a single .nasl/.inc file. | |
| int | nasl_plugin_launch (struct scan_globals *, struct in6_addr *, GSList *, kb_t, const char *) |
| Launch a NASL plugin. | |
pluginload.c header.
Definition in file pluginload.h.
| int current_loading_plugins | ( | void | ) |
| void destroy_loading_shm | ( | void | ) |
Definition at line 153 of file pluginload.c.
References loading_shm, and loading_shmid.
| void init_loading_shm | ( | void | ) |
Definition at line 120 of file pluginload.c.
References loading_shm, and loading_shmid.
| int nasl_file_check | ( | const char * | folder, |
| const char * | filename ) |
Check a single .nasl/.inc file.
| folder | Path to the plugin folder. |
| filename | File-name of the plugin |
Definition at line 83 of file nasl_plugins.c.
References exec_nasl_script(), script_infos::key, script_infos::name, NASL_ALWAYS_SIGNED, NASL_EXEC_DESCR, and script_infos::nvti.
Referenced by plugins_cache_init().


| int nasl_plugin_add | ( | const char * | folder, |
| char * | filename ) |
Add one .nasl plugin to the plugin list.
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 120 of file nasl_plugins.c.
References check_nvti(), exec_nasl_script(), script_infos::key, script_infos::name, NASL_ALWAYS_SIGNED, NASL_EXEC_DESCR, and script_infos::nvti.
Referenced by plugins_reload_from_dir().


| int nasl_plugin_launch | ( | struct scan_globals * | globals, |
| struct in6_addr * | ip, | ||
| GSList * | vhosts, | ||
| kb_t | kb, | ||
| const char * | oid ) |
Launch a NASL plugin.
Definition at line 166 of file nasl_plugins.c.
References script_infos::globals, script_infos::ip, script_infos::ipc_context, script_infos::key, script_infos::name, oid, script_infos::oid, and script_infos::vhosts.
Referenced by plugin_launch().

| int plugins_cache_init | ( | void | ) |
Main function for nvticache initialization without loading the plugins.
Definition at line 348 of file pluginload.c.
References include_dirs(), and nasl_file_check().
Referenced by attack_network_init(), openvas(), and plugins_init().


| int plugins_init | ( | void | ) |
main function for loading all the plugins
Definition at line 372 of file pluginload.c.
References plugins_cache_init(), and plugins_reload_from_dir().
Referenced by openvas().


| int total_loading_plugins | ( | void | ) |
Definition at line 182 of file pluginload.c.
References loading_shm.