OpenVAS Scanner  6.0.0~git
nasl.h
Go to the documentation of this file.
1 /* Based on work Copyright (C) 2002 - 2005 Tenable Network Security
2  *
3  * SPDX-License-Identifier: GPL-2.0-only
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __LIB_NASL_H__
20 #define __LIB_NASL_H__
21 
22 #include "../misc/scanneraux.h"
23 
24 #include <glib.h>
25 
26 /* Signature information extraction and verification (not nasl- specific
27  anymore, thus likely to be moved to openvas-libraries): */
28 int
29 nasl_verify_signature (const char *filename);
30 
31 char *
32 nasl_extract_signature_fprs (const char *filename);
33 
34 GSList *
36 /* End of Signature information extraction */
37 
38 int
39 add_nasl_inc_dir (const char *);
40 
41 void
42 nasl_clean_inc (void);
43 
44 int
45 exec_nasl_script (struct script_infos *, int);
46 
47 char *
48 nasl_version (void);
49 
50 pid_t
51 nasl_server_start (char *, char *);
52 
53 void
54 nasl_server_recompile (char *, char *);
55 
56 /* exec_nasl_script modes */
57 #define NASL_EXEC_DESCR (1 << 0)
58 #define NASL_EXEC_PARSE_ONLY (1 << 1)
59 #define NASL_ALWAYS_SIGNED (1 << 2)
60 #define NASL_COMMAND_LINE (1 << 3)
61 #define NASL_LINT (1 << 4)
62 
63 #define NASL_ERR_NOERR 0
64 #define NASL_ERR_ETIMEDOUT 1
65 #define NASL_ERR_ECONNRESET 2
66 #define NASL_ERR_EUNREACH 3
67 #define NASL_ERR_EUNKNOWN 99
68 #endif
pid_t nasl_server_start(char *, char *)
int exec_nasl_script(struct script_infos *, int)
Execute a NASL script.
Definition: exec.c:1627
void nasl_clean_inc(void)
Definition: nasl_grammar.tab.c:2928
GSList * nasl_get_all_certificates(void)
void nasl_server_recompile(char *, char *)
char * nasl_extract_signature_fprs(const char *filename)
int nasl_verify_signature(const char *filename)
char * nasl_version(void)
Definition: nasl_init.c:500
Definition: scanneraux.h:44
int add_nasl_inc_dir(const char *)
Adds the given string as directory for searching for includes.
Definition: nasl_grammar.tab.c:2663