OpenVAS Scanner  22.7.9
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): */
16 int
17 nasl_verify_signature (const char *filename);
18 
19 char *
20 nasl_extract_signature_fprs (const char *filename);
21 
22 GSList *
24 /* End of Signature information extraction */
25 
26 int
27 add_nasl_inc_dir (const char *);
28 
29 void
30 nasl_clean_inc (void);
31 
32 int
33 exec_nasl_script (struct script_infos *, int);
34 
35 char *
36 nasl_version (void);
37 
38 pid_t
39 nasl_server_start (char *, char *);
40 
41 void
42 nasl_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
nasl_extract_signature_fprs
char * nasl_extract_signature_fprs(const char *filename)
script_infos
Definition: scanneraux.h:29
nasl_server_recompile
void nasl_server_recompile(char *, char *)
add_nasl_inc_dir
int add_nasl_inc_dir(const char *)
Adds the given string as directory for searching for includes.
Definition: nasl_grammar.tab.c:2539
nasl_server_start
pid_t nasl_server_start(char *, char *)
nasl_verify_signature
int nasl_verify_signature(const char *filename)
nasl_version
char * nasl_version(void)
Definition: nasl_init.c:542
nasl_get_all_certificates
GSList * nasl_get_all_certificates(void)
exec_nasl_script
int exec_nasl_script(struct script_infos *, int)
Execute a NASL script.
Definition: exec.c:1614
nasl_clean_inc
void nasl_clean_inc(void)
Definition: nasl_grammar.tab.c:2806