OpenVAS Libraries  9.0.1
nasl.h
Go to the documentation of this file.
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2005 Tenable Network Security
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2,
7  * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __LIB_NASL_H__
20 #define __LIB_NASL_H__
21 
32 #include <glib.h>
33 
34 #include "../misc/arglists.h" /* for struct arglist */
35 
36 /* Signature information extraction and verification (not nasl- specific
37  anymore, thus likely to be moved to openvas-libraries): */
38 int nasl_verify_signature (const char *filename);
39 char *nasl_extract_signature_fprs (const char *filename);
40 GSList *nasl_get_all_certificates (void);
41 /* End of Signature information extraction */
42 
43 int add_nasl_inc_dir (const char *);
44 
45 int
46 exec_nasl_script (struct arglist *, const char *, const char *, int);
47 int
48 execute_preparsed_nasl_script (struct arglist *, char *, char *, int, int);
49 char *
50 nasl_version (void);
51 pid_t
52 nasl_server_start (char *, char *);
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 
64 #define NASL_ERR_NOERR 0
65 #define NASL_ERR_ETIMEDOUT 1
66 #define NASL_ERR_ECONNRESET 2
67 #define NASL_ERR_EUNREACH 3
68 #define NASL_ERR_EUNKNOWN 99
69 #endif
int execute_preparsed_nasl_script(struct arglist *, char *, char *, int, int)
pid_t nasl_server_start(char *, char *)
GSList * nasl_get_all_certificates(void)
void nasl_server_recompile(char *, char *)
char * nasl_extract_signature_fprs(const char *filename)
int exec_nasl_script(struct arglist *, const char *, const char *, int)
Execute a NASL script.
Definition: exec.c:1688
Definition: arglists.h:29
int nasl_verify_signature(const char *filename)
Definition: nasl_signature.c:126
char * nasl_version(void)
Definition: nasl_init.c:713
int add_nasl_inc_dir(const char *)
Adds the given string as directory for searching for includes.
Definition: nasl_grammar.tab.c:2582