|
OpenVAS Scanner 23.23.1
|
Source of the NASL linter of OpenVAS. More...
#include "lint.h"#include "nasl.h"#include <gio/gio.h>#include <glib.h>#include <stdio.h>#include <stdlib.h>Functions | |
| static GDataInputStream * | get_DIS_from_filename (const gchar *filename) |
| Returns a GDataInputStream* for a given filepath. | |
| static int | process_file (const gchar *filepath, int mode, struct script_infos *script_args) |
| Process a file through the linter. | |
| static int | process_file_list (const gchar *list_file, int mode, struct script_infos *script_args) |
| Process each files in the list_file through the linter. | |
| static int | process_files (const gchar **files, int mode, struct script_infos *script_args) |
| Process each given files through the linter. | |
| static void | custom_log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| custom log handler | |
| int | main (int argc, char **argv) |
| Main of the nasl QA linter. | |
Source of the NASL linter of OpenVAS.
|
static |
custom log handler
This handler absorb each log_level not present in the log_mask, and forward the other ones to the default handler.
|
static |
Returns a GDataInputStream* for a given filepath.
| filename | the path to the file to open |
| int main | ( | int | argc, |
| char ** | argv ) |
Main of the nasl QA linter.
|
static |
Process a file through the linter.
| filepath | the path of the file to be processed |
| mode,script_args | The parameters to be given to the linter |
|
static |
Process each files in the list_file through the linter.
| list_file | the path to a text file containing path to the files to process, one per line |
| mode,script_args | Parameters for the linter |
|
static |
Process each given files through the linter.
| files | The path to the files to be processed |
| mode,script_args | Parameters to be given to the linter |