OpenVAS Scanner 23.23.1
pluginload.h File Reference

pluginload.c header. More...

#include "../misc/network.h"
#include "../misc/scanneraux.h"
#include <gvm/util/kb.h>

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.

Detailed Description

pluginload.c header.

Function Documentation

◆ current_loading_plugins()

int current_loading_plugins ( void )

◆ destroy_loading_shm()

void destroy_loading_shm ( void )

◆ init_loading_shm()

void init_loading_shm ( void )

◆ nasl_file_check()

int nasl_file_check ( const char * folder,
const char * filename )

Check a single .nasl/.inc file.

Parameters
folderPath to the plugin folder.
filenameFile-name of the plugin
Returns
0 on success, -1 on error.

◆ nasl_plugin_add()

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

Parameters
folderPath to the plugin folder.
filenameFile-name of the plugin
Returns
0 on success, -1 on error.

◆ nasl_plugin_launch()

int nasl_plugin_launch ( struct scan_globals * globals,
struct in6_addr * ip,
GSList * vhosts,
kb_t kb,
const char * oid )

Launch a NASL plugin.

◆ plugins_cache_init()

int plugins_cache_init ( void )

Main function for nvticache initialization without loading the plugins.

Returns
0 on success, -1 on failure.

◆ plugins_init()

int plugins_init ( void )

main function for loading all the plugins

Returns
0 on success, !=0 on failure.

◆ total_loading_plugins()

int total_loading_plugins ( void )