OpenVAS Libraries  9.0.1
nasl_global_ctxt.h
Go to the documentation of this file.
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
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 _NASL_CTX_H
20 #define _NASL_CTX_H
21 
22 /* for FILE */
23 #include <stdio.h>
24 #include "../base/kb.h"
25 
26 typedef struct
27 {
28  int line_nb;
30  int maxlen;
31  FILE *fp;
33  char *buffer;
35 } naslctxt;
36 
37 int init_nasl_ctx (naslctxt *, const char *);
38 void nasl_clean_ctx (naslctxt *);
39 
40 #endif
kb_t kb
Definition: nasl_global_ctxt.h:34
Definition: nasl_global_ctxt.h:26
char * buffer
Definition: nasl_global_ctxt.h:33
void nasl_clean_ctx(naslctxt *)
Definition: nasl_grammar.tab.c:2742
int line_nb
Definition: nasl_global_ctxt.h:28
tree_cell * tree
Definition: nasl_global_ctxt.h:32
int maxlen
Definition: nasl_global_ctxt.h:30
int always_authenticated
Definition: nasl_global_ctxt.h:29
int init_nasl_ctx(naslctxt *, const char *)
Initialize a NASL context for a NASL file.
Definition: nasl_grammar.tab.c:2652
Top-level KB. This is to be inherited by KB implementations.
Definition: kb.h:77
Definition: nasl_tree.h:105
FILE * fp
Definition: nasl_global_ctxt.h:31