#include <stdio.h>
Go to the source code of this file.
int init_nasl_ctx |
( |
naslctxt * |
pc, |
|
|
const char * |
name |
|
) |
| |
Initialize a NASL context for a NASL file.
- Parameters
-
pc | The NASL context handler. |
name | The filename of the NASL script. |
- Returns
- 0 in case of success. Then, pc->fp is set with the respective file descriptor -1 if either the filename was not found/accessable or the signature verification failed (provided signature checking is enabled. Also, the pc->fp is set to NULL. In any case, various elements of pc are modified (initialized);