OpenVAS Scanner  6.0.0~git
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)
 
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, 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 ,
struct in6_addr *  ,
GSList *  ,
kb_t  ,
const char *   
)

Launch a NASL plugin.

◆ plugins_init()

int plugins_init ( void  )

◆ total_loading_plugins()

int total_loading_plugins ( void  )