|
OpenVAS Scanner 23.23.1
|
#include "exec.h"#include "../misc/plugutils.h"#include "lint.h"#include "nasl.h"#include "nasl_debug.h"#include "nasl_func.h"#include "nasl_global_ctxt.h"#include "nasl_init.h"#include "nasl_lex_ctxt.h"#include "nasl_tree.h"#include "nasl_var.h"#include <errno.h>#include <glib.h>#include <glib/gstdio.h>#include <gvm/base/logging.h>#include <gvm/base/prefs.h>#include <gvm/util/nvticache.h>#include <regex.h>#include <stdlib.h>#include <string.h>#include <unistd.h>Macros | |
| #define | _GNU_SOURCE |
| #define | G_LOG_DOMAIN "lib nasl" |
| GLib logging domain. | |
Functions | |
| int | naslparse (naslctxt *, int *) |
| static int | cell2bool (lex_ctxt *lexic, tree_cell *c) |
| static long int | cell2int3 (lex_ctxt *lexic, tree_cell *c, int warn, named_nasl_var *v) |
| static long int | cell2int (lex_ctxt *lexic, tree_cell *c) |
| static long int | cell2intW (lex_ctxt *lexic, tree_cell *c) |
| static tree_cell * | int2cell (long int x) |
| static tree_cell * | bool2cell (long int x) |
| static char * | cell2str (lex_ctxt *lexic, tree_cell *c) |
| tree_cell * | cell2atom (lex_ctxt *lexic, tree_cell *c1) |
| long int | cell_cmp (lex_ctxt *lexic, tree_cell *c1, tree_cell *c2) |
| static void | nasl_dump_expr (FILE *fp, const tree_cell *c) |
| static void | nasl_short_dump (FILE *fp, const tree_cell *c) |
| static long int | expo (long int x, long int y) |
| tree_cell * | nasl_exec (lex_ctxt *lexic, tree_cell *st) |
| Execute a parse tree. | |
| int | exec_nasl_script (struct script_infos *script_infos, int mode) |
| Execute a NASL script. | |
Variables | |
| FILE * | nasl_trace_fp = NULL |
| lex_ctxt * | truc = NULL |
| #define _GNU_SOURCE |
| #define G_LOG_DOMAIN "lib nasl" |
GLib logging domain.
|
static |
|
static |
| int exec_nasl_script | ( | struct script_infos * | script_infos, |
| int | mode ) |
Execute a NASL script.
"mode" is a bit field: bit #0 (1) is "description" Bit #1 (2) is "parse only"
| script_infos | The plugin script_infos. #param mode Flags for different execution modes (Description, parse-only, always-signed, command-line, lint) |
|
static |
|
static |
|
static |
Execute a parse tree.
|
static |
|
extern |
| FILE* nasl_trace_fp = NULL |
| lex_ctxt* truc = NULL |