Greenbone Vulnerability Management Libraries 22.22.0
vtparser.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#ifndef _GVM_VTPARSER_H
12#define _GVM_VTPARSER_H
13
14#define _GNU_SOURCE /* See feature_test_macros(7) */
15#define _FILE_OFFSET_BITS 64
16#include "../base/cvss.h"
17#include "../base/nvti.h" /* for nvti_t */
18#include "../util/jsonpull.h"
19
20#include <cjson/cJSON.h>
21#include <glib.h>
22#include <stdio.h>
23#include <stdlib.h>
24#include <unistd.h>
25
43
44int
46
47#endif /* _GVM_VTPARSER_H */
Protos for CVSS utility functions.
struct nvti nvti_t
The structure of a information record that corresponds to a NVT.
Protos and data structures for NVT Information data sets.
Event generated by the JSON pull parser.
Definition jsonpull.h:59
A json pull parser.
Definition jsonpull.h:86
nvt_category
VT categories.
Definition vtparser.h:30
@ ACT_KILL_HOST
Definition vtparser.h:39
@ ACT_DESTRUCTIVE_ATTACK
Definition vtparser.h:37
@ ACT_SCANNER
Definition vtparser.h:32
@ ACT_END
Definition vtparser.h:41
@ ACT_FLOOD
Definition vtparser.h:40
@ ACT_GATHER_INFO
Definition vtparser.h:34
@ ACT_DENIAL
Definition vtparser.h:38
@ ACT_ATTACK
Definition vtparser.h:35
@ ACT_SETTINGS
Definition vtparser.h:33
@ ACT_MIXED_ATTACK
Definition vtparser.h:36
@ ACT_INIT
Definition vtparser.h:31
int parse_vt_json(gvm_json_pull_parser_t *, gvm_json_pull_event_t *, nvti_t **)
Parse a VT element given in json format.
Definition vtparser.c:229