OpenVAS Scanner 23.23.1
nasl_global_ctxt.h File Reference
#include "nasl_tree.h"
#include <gvm/util/kb.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  naslctxt

Functions

int init_nasl_ctx (naslctxt *, const char *)
 Initialize a NASL context for a NASL file.
void nasl_clean_ctx (naslctxt *)

Function Documentation

◆ init_nasl_ctx()

int init_nasl_ctx ( naslctxt * pc,
const char * name )

Initialize a NASL context for a NASL file.

Parameters
pcThe NASL context handler.
nameThe filename of the NASL script.
Returns
0 in case of success. Then, file content is set in pc->buffer. -1 if either the filename was not found/accessible or the signature verification failed (provided signature checking is enabled. In any case, various elements of pc are modified (initialized);

◆ nasl_clean_ctx()

void nasl_clean_ctx ( naslctxt * c)