|
OpenVAS Scanner 23.40.3
|


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. | |
| void | nasl_clean_inc (void) |
| int | exec_nasl_script (struct script_infos *, int) |
| Execute a NASL script. | |
| char * | nasl_version (void) |
| pid_t | nasl_server_start (char *, char *) |
| void | nasl_server_recompile (char *, char *) |
| #define NASL_ALWAYS_SIGNED (1 << 2) |
Definition at line 47 of file nasl.h.
Referenced by exec_nasl_script(), main(), nasl_file_check(), nasl_plugin_add(), nasl_thread(), and parse_script_infos().
| #define NASL_COMMAND_LINE (1 << 3) |
Definition at line 48 of file nasl.h.
Referenced by exec_nasl_script(), and main().
| #define NASL_ERR_ECONNRESET 2 |
Definition at line 53 of file nasl.h.
Referenced by nasl_socket_get_error().
| #define NASL_ERR_ETIMEDOUT 1 |
Definition at line 52 of file nasl.h.
Referenced by nasl_socket_get_error().
| #define NASL_ERR_EUNREACH 3 |
Definition at line 54 of file nasl.h.
Referenced by nasl_socket_get_error().
| #define NASL_ERR_NOERR 0 |
Definition at line 51 of file nasl.h.
Referenced by nasl_socket_get_error().
| #define NASL_EXEC_DESCR (1 << 0) |
Definition at line 45 of file nasl.h.
Referenced by exec_nasl_script(), main(), nasl_file_check(), nasl_plugin_add(), and parse_script_infos().
| #define NASL_EXEC_PARSE_ONLY (1 << 1) |
Definition at line 46 of file nasl.h.
Referenced by exec_nasl_script(), and main().
| #define NASL_LINT (1 << 4) |
Definition at line 49 of file nasl.h.
Referenced by exec_nasl_script(), and main().
| 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 2536 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 1614 of file exec.c.
References add_named_var_to_ctxt(), naslctxt::always_signed, CONST_DATA, CONST_INT, deref_cell(), naslctxt::exec_descr, FAKE_CELL, free_lex_ctxt(), get_func_ref_by_name(), TC::i_val, init_empty_lex_ctxt(), init_nasl_ctx(), naslctxt::kb, name, script_infos::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(), oid, script_infos::oid, struct_lex_ctxt::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_file_check(), nasl_plugin_add(), nasl_thread(), parse_script_infos(), and process_file().


| void nasl_clean_inc | ( | void | ) |
Definition at line 2858 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 571 of file nasl_init.c.