OpenVAS Scanner  21.4.1
Functions
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)
 
int plugins_cache_init (void)
 Main function for nvticache initialization without loading the plugins. More...
 
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, kb_t, const char *)
 Launch a NASL plugin. More...
 

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_plugin_add()

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.

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,
kb_t  main_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.

◆ plugins_init()

int plugins_init ( void  )

◆ total_loading_plugins()

int total_loading_plugins ( void  )