OpenVAS Scanner
7.0.1~git
|
Go to the source code of this file.
Macros | |
#define | NASL_EXEC_DESCR (1 << 0) |
#define | NASL_EXEC_PARSE_ONLY (1 << 1) |
#define | NASL_ALWAYS_SIGNED (1 << 2) |
#define | NASL_COMMAND_LINE (1 << 3) |
#define | NASL_LINT (1 << 4) |
#define | NASL_ERR_NOERR 0 |
#define | NASL_ERR_ETIMEDOUT 1 |
#define | NASL_ERR_ECONNRESET 2 |
#define | NASL_ERR_EUNREACH 3 |
#define | NASL_ERR_EUNKNOWN 99 |
Functions | |
int | nasl_verify_signature (const char *filename) |
char * | nasl_extract_signature_fprs (const char *filename) |
GSList * | nasl_get_all_certificates (void) |
int | add_nasl_inc_dir (const char *) |
Adds the given string as directory for searching for includes. More... | |
void | nasl_clean_inc (void) |
int | exec_nasl_script (struct script_infos *, int) |
Execute a NASL script. More... | |
char * | nasl_version (void) |
pid_t | nasl_server_start (char *, char *) |
void | nasl_server_recompile (char *, char *) |
int add_nasl_inc_dir | ( | const char * | dir | ) |
Adds the given string as directory for searching for includes.
dir | A directory path. This function will add a copy of this parameter to the list of include folders. This means the parameter can be freed elsewhere without affecting the list. |
Definition at line 2738 of file nasl_grammar.tab.c.
References inc_dirs.
Referenced by include_dirs(), init_nasl_ctx(), and main().
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) |
Definition at line 1624 of file exec.c.
References add_named_var_to_ctxt(), naslctxt::always_signed, CONST_DATA, CONST_INT, deref_cell(), free_lex_ctxt(), get_func_ref_by_name(), TC::i_val, init_empty_lex_ctxt(), init_nasl_ctx(), naslctxt::kb, naslctxt::line_nb, script_infos::name, name, NASL_ALWAYS_SIGNED, nasl_clean_ctx(), NASL_COMMAND_LINE, nasl_exec(), NASL_EXEC_DESCR, NASL_EXEC_PARSE_ONLY, nasl_func_call(), NASL_LINT, nasl_lint(), nasl_set_filename(), nasl_set_plugin_filename(), naslparse(), struct_lex_ctxt::oid, script_infos::oid, oid, plug_get_kb(), struct_lex_ctxt::recv_timeout, struct_lex_ctxt::script_infos, TC::size, TC::str_val, naslctxt::tree, truc, TC::type, and TC::x.
Referenced by main(), nasl_plugin_add(), nasl_thread(), parse_script_infos(), and process_file().
void nasl_clean_inc | ( | void | ) |
Definition at line 3003 of file nasl_grammar.tab.c.
References includes_hash.
Referenced by plugins_reload_from_dir().
char* nasl_extract_signature_fprs | ( | const char * | filename | ) |
GSList* nasl_get_all_certificates | ( | void | ) |
void nasl_server_recompile | ( | char * | , |
char * | |||
) |
pid_t nasl_server_start | ( | char * | , |
char * | |||
) |
int nasl_verify_signature | ( | const char * | filename | ) |
char* nasl_version | ( | void | ) |
Definition at line 502 of file nasl_init.c.