OpenVAS Libraries  8.0.3
Macros | Functions | Variables
nasl.c File Reference
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <libssh/libssh.h>
#include "kb.h"
#include "network.h"
#include "nasl.h"
#include "nasl_lex_ctxt.h"
#include "exec.h"
#include "../base/gpgme_util.h"
#include <../base/openvas_hosts.h>
#include <../base/nvti.h>
#include <../misc/prefs.h>
#include <glib.h>

Macros

#define MAP_FAILED   ((void*)-1)
 

Functions

char * nasl_version (void)
 
int execute_instruction (struct arglist *, char *)
 
void exit_nasl (struct arglist *, int)
 
void sighandler (int s)
 
struct arglistinit (char *hostname, struct in6_addr ip, kb_t kb)
 
int main (int argc, char **argv)
 Main of the standalone nasl interpretor. More...
 

Variables

int safe_checks_only = 0
 
FILE * nasl_trace_fp
 

Detailed Description

Source of the standalone NASL interpreter of OpenVAS.

Macro Definition Documentation

#define MAP_FAILED   ((void*)-1)

Function Documentation

int execute_instruction ( struct arglist ,
char *   
)
void exit_nasl ( struct arglist ,
int   
)
struct arglist* init ( char *  hostname,
struct in6_addr  ip,
kb_t  kb 
)
int main ( int  argc,
char **  argv 
)

Main of the standalone nasl interpretor.

Returns
The number of times a NVT was launched (should be (number of targets) * (number of NVTS provided)).
char* nasl_version ( void  )
void sighandler ( int  s)

Variable Documentation

FILE* nasl_trace_fp
int safe_checks_only = 0