#include "nasl_tree.h"
#include <gvm/util/kb.h>
#include <stdio.h>
Go to the source code of this file.
◆ init_nasl_ctx()
| 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, file content is set in pc->buffer. -1 if either the filename was not found/accessible or the signature verification failed (provided signature checking is enabled. In any case, various elements of pc are modified (initialized);
◆ nasl_clean_ctx()