OpenVAS Libraries
9.0.3
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
;
29
int
always_authenticated
;
30
int
maxlen
;
31
FILE *
fp
;
32
tree_cell
*
tree
;
33
char
*
buffer
;
34
kb_t
kb
;
35
}
naslctxt
;
36
37
int
init_nasl_ctx
(
naslctxt
*,
const
char
*);
38
void
nasl_clean_ctx
(
naslctxt
*);
39
40
#endif
naslctxt::kb
kb_t kb
Definition:
nasl_global_ctxt.h:34
naslctxt
Definition:
nasl_global_ctxt.h:26
naslctxt::buffer
char * buffer
Definition:
nasl_global_ctxt.h:33
nasl_clean_ctx
void nasl_clean_ctx(naslctxt *)
Definition:
nasl_grammar.tab.c:2873
naslctxt::line_nb
int line_nb
Definition:
nasl_global_ctxt.h:28
naslctxt::tree
tree_cell * tree
Definition:
nasl_global_ctxt.h:32
naslctxt::maxlen
int maxlen
Definition:
nasl_global_ctxt.h:30
naslctxt::always_authenticated
int always_authenticated
Definition:
nasl_global_ctxt.h:29
init_nasl_ctx
int init_nasl_ctx(naslctxt *, const char *)
Initialize a NASL context for a NASL file.
Definition:
nasl_grammar.tab.c:2772
kb
Top-level KB. This is to be inherited by KB implementations.
Definition:
kb.h:102
TC
Definition:
nasl_tree.h:105
naslctxt::fp
FILE * fp
Definition:
nasl_global_ctxt.h:31
nasl
nasl_global_ctxt.h
Generated on Tue Feb 26 2019 09:44:08 for OpenVAS Libraries by
1.8.14