OpenVAS Scanner  6.0.1
Functions
plugs_req.h File Reference

plugs_req.c header. More...

#include <gvm/util/kb.h>

Go to the source code of this file.

Functions

char * requirements_plugin (kb_t, nvti_t *)
 Determine if the plugin requirements are met. More...
 
int mandatory_requirements_met (kb_t, nvti_t *)
 Check whether mandatory requirements for plugin are met. More...
 

Detailed Description

plugs_req.c header.

Function Documentation

◆ mandatory_requirements_met()

int mandatory_requirements_met ( kb_t  kb,
nvti_t *  nvti 
)

Check whether mandatory requirements for plugin are met.

Parameters
kbThe knowledge base with all keys.
pluginThe scheduler plugin.
Returns
1 if all mandatory requirements for the plugin are met. 0 if it is not the case.

◆ requirements_plugin()

char* requirements_plugin ( kb_t  kb,
nvti_t *  nvti 
)

Determine if the plugin requirements are met.

Returns
Returns NULL is everything is ok, else an error message.