OpenVAS Libraries  4.0+rc3.SVN
nasl/nasl_global_ctxt.h
00001 /* Nessus Attack Scripting Language 
00002  *
00003  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2,
00007  * as published by the Free Software Foundation
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef _NASL_CTX_H
00020 #define _NASL_CTX_H
00021 
00022 /* for FILE */
00023 #include <stdio.h>
00024 
00025 typedef struct
00026 {
00027   int line_nb;
00028   FILE *fp;
00029   tree_cell *tree;
00030   char *buffer;
00031   int authenticated;
00032   int always_authenticated;
00033   int maxlen;
00034 } naslctxt;
00035 
00036 int init_nasl_ctx (naslctxt *, const char *);
00037 void nasl_clean_ctx (naslctxt *);
00038 
00039 #endif