OpenVAS Scanner 23.23.1
nasl.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2005 Tenable Network Security
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 */
6
7#ifndef NASL_H
8#define NASL_H
9
10#include "../misc/scanneraux.h"
11
12#include <glib.h>
13
14/* Signature information extraction and verification (not nasl- specific
15 anymore, thus likely to be moved to openvas-libraries): */
16int
17nasl_verify_signature (const char *filename);
18
19char *
20nasl_extract_signature_fprs (const char *filename);
21
22GSList *
24/* End of Signature information extraction */
25
26int
27add_nasl_inc_dir (const char *);
28
29void
30nasl_clean_inc (void);
31
32int
33exec_nasl_script (struct script_infos *, int);
34
35char *
36nasl_version (void);
37
38pid_t
39nasl_server_start (char *, char *);
40
41void
42nasl_server_recompile (char *, char *);
43
44/* exec_nasl_script modes */
45#define NASL_EXEC_DESCR (1 << 0)
46#define NASL_EXEC_PARSE_ONLY (1 << 1)
47#define NASL_ALWAYS_SIGNED (1 << 2)
48#define NASL_COMMAND_LINE (1 << 3)
49#define NASL_LINT (1 << 4)
50
51#define NASL_ERR_NOERR 0
52#define NASL_ERR_ETIMEDOUT 1
53#define NASL_ERR_ECONNRESET 2
54#define NASL_ERR_EUNREACH 3
55#define NASL_ERR_EUNKNOWN 99
56#endif
char * nasl_version(void)
Definition nasl_init.c:567
pid_t nasl_server_start(char *, char *)
void nasl_clean_inc(void)
Definition nasl_grammar.tab.c:2803
int exec_nasl_script(struct script_infos *, int)
Execute a NASL script.
Definition exec.c:1614
int nasl_verify_signature(const char *filename)
GSList * nasl_get_all_certificates(void)
char * nasl_extract_signature_fprs(const char *filename)
int add_nasl_inc_dir(const char *)
Adds the given string as directory for searching for includes.
Definition nasl_grammar.tab.c:2536
void nasl_server_recompile(char *, char *)
Auxiliary structures for scanner.
Definition scanneraux.h:29