OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
nasl
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
();
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
*,
int
);
47
int
48
execute_preparsed_nasl_script
(
struct
arglist
*,
char
*,
char
*,
int
,
int
);
49
char
*
50
nasl_version
();
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_EXEC_DONT_CLEANUP (1 << 2)
60
#define NASL_ALWAYS_SIGNED (1 << 3)
61
#define NASL_COMMAND_LINE (1 << 4)
62
#define NASL_LINT (1 << 5)
63
64
65
#define NASL_ERR_NOERR 0
66
#define NASL_ERR_ETIMEDOUT 1
67
#define NASL_ERR_ECONNRESET 2
68
#define NASL_ERR_EUNREACH 3
69
#define NASL_ERR_EUNKNOWN 99
70
#endif
Generated by
1.8.3.1