19 #ifndef __LIB_NASL_H__
20 #define __LIB_NASL_H__
110 #define NASL_LEVEL 2205
112 #define OPENVAS_NASL_LEVEL 2320
116 #include "../misc/arglists.h"
120 int nasl_verify_signature (
const char *filename);
121 char *nasl_extract_signature_fprs (
const char *filename);
122 GSList *nasl_get_all_certificates ();
125 int add_nasl_inc_dir (
const char *);
128 __attribute__ ((__deprecated__))
130 execute_nasl_script (struct
arglist *, const
char *, const
char *,
int);
133 exec_nasl_script (struct arglist *, const
char *,
int);
135 execute_preparsed_nasl_script (struct arglist *,
char *,
char *,
int,
int);
139 nasl_server_start (
char *,
char *);
141 nasl_server_recompile (
char *,
char *);
144 #define NASL_EXEC_DESCR (1 << 0)
145 #define NASL_EXEC_PARSE_ONLY (1 << 1)
146 #define NASL_EXEC_DONT_CLEANUP (1 << 2)
147 #define NASL_ALWAYS_SIGNED (1 << 3)
148 #define NASL_COMMAND_LINE (1 << 4)
149 #define NASL_LINT (1 << 5)
152 #define NASL_ERR_NOERR 0
153 #define NASL_ERR_ETIMEDOUT 1
154 #define NASL_ERR_ECONNRESET 2
155 #define NASL_ERR_EUNREACH 3
156 #define NASL_ERR_EUNKNOWN 99