OpenVAS Scanner 21.4.1
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): */
28int
29nasl_verify_signature (const char *filename);
30
31char *
32nasl_extract_signature_fprs (const char *filename);
33
34GSList *
36/* End of Signature information extraction */
37
38int
39add_nasl_inc_dir (const char *);
40
41void
42nasl_clean_inc (void);
43
44int
45exec_nasl_script (struct script_infos *, int);
46
47char *
48nasl_version (void);
49
50pid_t
51nasl_server_start (char *, char *);
52
53void
54nasl_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
char * nasl_version(void)
Definition: nasl_init.c:518
pid_t nasl_server_start(char *, char *)
void nasl_clean_inc(void)
Definition: nasl_grammar.tab.c:2775
int exec_nasl_script(struct script_infos *, int)
Execute a NASL script.
Definition: exec.c:1625
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:2510
void nasl_server_recompile(char *, char *)
Definition: scanneraux.h:42