13#ifndef _GVM_BASE_NVTI_H
14#define _GVM_BASE_NVTI_H
18#define NVTPREF_TIMEOUT_ID 0
23nvtpref_new (
int,
const gchar *,
const gchar *,
const gchar *);
56vtref_new (
const gchar *,
const gchar *,
const gchar *);
67vtseverity_new (
const gchar *,
const gchar *,
int,
double,
const gchar *);
vtref_t * nvti_vtref(const nvti_t *n, guint p)
Get the n'th reference of the NVT.
struct vtseverity vtseverity_t
The structure for a severity of a VT.
nvti_t * nvti_new(void)
Create a new (empty) nvti structure.
int nvti_put_impact(nvti_t *n, gchar *impact)
Set the impact text of a NVT, using the given memory.
void vtseverity_free(vtseverity_t *s)
Free memory of a vtseverity structure.
gchar * nvti_dependencies(const nvti_t *n)
Get the dependencies list.
int nvti_add_required_keys(nvti_t *n, const gchar *key)
Add a required key of a NVT.
guint nvti_pref_len(const nvti_t *n)
Get the number of preferences of the NVT.
int nvti_set_qod(nvti_t *n, const gchar *qod)
Set the QoD of a NVT.
gchar * nvti_detection(const nvti_t *n)
Get the text about detection.
gchar * nvti_required_udp_ports(const nvti_t *n)
Get the required udp ports list.
int nvti_set_solution(nvti_t *n, const gchar *solution)
Set the solution of a NVT.
gchar * nvti_get_tag(const nvti_t *n, const gchar *name)
Get a tag value by a tag name.
gchar * nvti_summary(const nvti_t *n)
Get the summary.
int nvti_set_solution_type(nvti_t *n, const gchar *solution_type)
Set the solution type of a NVT.
gchar * nvti_required_ports(const nvti_t *n)
Get the required ports list.
int nvti_put_insight(nvti_t *n, gchar *insight)
Set the insight text of a NVT, using the given memory.
gchar * nvti_refs(const nvti_t *n, const gchar *type, const gchar *exclude_types, guint use_types)
Get references as string.
double nvti_severity_score(const nvti_t *n)
Get the maximum severity score.
gchar * nvtpref_type(const nvtpref_t *np)
Get the Type of a NVT Preference.
int nvti_set_excluded_keys(nvti_t *n, const gchar *excluded_keys)
Set the excluded keys of a NVT.
struct nvti nvti_t
The structure of a information record that corresponds to a NVT.
int nvti_set_qod_type(nvti_t *n, const gchar *qod_type)
Set the QoD type of a NVT.
int nvti_add_excluded_keys(nvti_t *n, const gchar *key)
Add a excluded key of a NVT.
int nvti_put_detection(nvti_t *n, gchar *detection)
Set the detection text of a NVT, using the given memory.
nvtis_t * nvtis_new(void)
Make a collection of NVT Infos.
int nvti_set_dependencies(nvti_t *n, const gchar *dependencies)
Set the dependencies of a NVT.
int nvti_set_required_ports(nvti_t *n, const gchar *required_ports)
Set the required ports of a NVT.
int nvti_set_oid(nvti_t *n, const gchar *oid)
Set the OID of a NVT Info.
int nvti_add_required_udp_ports(nvti_t *n, const gchar *port)
Add a required udp port of a NVT.
int nvti_set_tag(nvti_t *n, const gchar *tag)
Set the tags of a NVT.
int nvti_set_cvss_base(nvti_t *n, const gchar *cvss_base)
Set the CVSS base of an NVT.
int nvti_set_mandatory_keys(nvti_t *n, const gchar *mandatory_keys)
Set the mandatory keys of a NVT.
int nvti_put_name(nvti_t *n, gchar *name)
Set the name of a NVT, using the given memory.
int nvti_put_family(nvti_t *n, gchar *family)
Set the family of a NVT, using the given memory.
gint nvti_category(const nvti_t *n)
Get the category for this NVT.
int nvti_set_impact(nvti_t *n, const gchar *impact)
Set the impact text of a NVT.
const gchar * vtseverity_type(const vtseverity_t *s)
Get the type of a severity.
int nvti_add_required_ports(nvti_t *n, const gchar *port)
Add a required port of a NVT.
struct nvtpref nvtpref_t
The structure for a preference of a NVT.
gchar * nvti_family(const nvti_t *n)
Get the family name.
gchar * nvti_severity_vector_from_tag(const nvti_t *n)
Get the severity score.
struct vtref vtref_t
The structure for a cross reference of a VT.
gchar * nvti_solution_method(const nvti_t *n)
Get the solution method.
guint nvti_vtseverities_len(const nvti_t *n)
Get the number of severities of the NVT.
const nvtpref_t * nvti_pref(const nvti_t *n, guint p)
Get the n'th preferences of the NVT.
gchar * nvti_qod(const nvti_t *n)
Get the QoD.
gchar * nvti_excluded_keys(const nvti_t *n)
Get the excluded keys list.
int nvti_set_summary(nvti_t *n, const gchar *summary)
Set the summary of a NVT.
gchar * nvti_name(const nvti_t *n)
Get the name.
gchar * nvti_oid(const nvti_t *n)
Get the OID string.
nvtpref_t * nvtpref_new(int id, const gchar *name, const gchar *type, const gchar *dflt)
Create a new nvtpref structure filled with the given values.
int nvti_put_affected(nvti_t *n, gchar *affected)
Set the affected text of a NVT, using the given memory.
int nvti_put_solution(nvti_t *n, gchar *solution)
Set the solution of a NVT, using the given memory.
double vtseverity_score(const vtseverity_t *s)
Get the score of a severity.
const gchar * vtref_type(const vtref_t *r)
Get the type of a reference.
int nvti_add_pref(nvti_t *n, nvtpref_t *np)
Add a preference to the NVT Info.
int nvti_put_summary(nvti_t *n, gchar *summary)
Set the summary of a NVT, using the given memory.
const gchar * vtseverity_value(const vtseverity_t *s)
Get the value of a severity.
int nvti_set_insight(nvti_t *n, const gchar *insight)
Set the insight text of a NVT.
vtref_t * vtref_new(const gchar *type, const gchar *ref_id, const gchar *ref_text)
Create a new vtref structure filled with the given values.
gchar * nvti_cvss_base(const nvti_t *n)
Get the CVSS base.
int nvti_set_required_keys(nvti_t *n, const gchar *required_keys)
Set the required keys of a NVT.
int nvti_add_vtseverity(nvti_t *vt, vtseverity_t *s)
Add a severity to the VT Info.
void nvtpref_free(nvtpref_t *np)
Free memory of a nvtpref structure.
int nvti_set_solution_method(nvti_t *n, const gchar *solution_method)
Set the solution method of a NVT.
int nvtpref_id(const nvtpref_t *np)
Get the ID of a NVT Preference.
int nvti_set_name(nvti_t *n, const gchar *name)
Set the name of a NVT.
nvti_t * nvtis_lookup(nvtis_t *nvtis, const char *oid)
Add an NVT Info to a collection of NVT Infos.
gchar * nvti_qod_type(const nvti_t *n)
Get the QoD type.
int nvti_add_mandatory_keys(nvti_t *n, const gchar *key)
Add a mandatory key of a NVT.
time_t nvti_creation_time(const nvti_t *n)
Get the creation time.
gchar * nvti_affected(const nvti_t *n)
Get the text about affected systems.
vtseverity_t * nvti_vtseverity(const nvti_t *n, guint p)
Get the n'th reference of the NVT.
vtseverity_t * vtseverity_new(const gchar *type, const gchar *origin, int date, double score, const gchar *value)
Create a new vtseverity structure filled with the given values.
gchar * nvti_solution(const nvti_t *n)
Get the solution.
int nvti_set_modification_time(nvti_t *n, const time_t modification_time)
Set the modification time of a NVT.
int nvti_set_creation_time(nvti_t *n, const time_t creation_time)
Set the creation time of a NVT.
gchar * nvti_required_keys(const nvti_t *n)
Get the required keys list.
gchar * nvti_insight(const nvti_t *n)
Get the text about insight.
int nvti_add_refs(nvti_t *n, const gchar *type, const gchar *ref_ids, const gchar *ref_text)
Add many new vtref from a comma-separated list.
time_t nvti_modification_time(const nvti_t *n)
Get the modification time.
void vtref_free(vtref_t *ref)
Free memory of a vtref structure.
const gchar * vtseverity_origin(const vtseverity_t *s)
Get the origin of a severity.
guint nvti_vtref_len(const nvti_t *n)
Get the number of references of the NVT.
int nvti_set_required_udp_ports(nvti_t *n, const gchar *required_udp_ports)
Set the required udp ports of a NVT.
gchar * nvti_mandatory_keys(const nvti_t *n)
Get the mandatory keys list.
gchar * nvtpref_default(const nvtpref_t *np)
Get the Default of a NVT Preference.
int nvti_set_family(nvti_t *n, const gchar *family)
Set the family of a NVT.
gchar * nvtpref_name(const nvtpref_t *np)
Get the Name of a NVT Preference.
int nvti_set_affected(nvti_t *n, const gchar *affected)
Set the affected text of a NVT.
int vtseverity_date(const vtseverity_t *s)
Get the date of a severity.
gchar * nvti_solution_type(const nvti_t *n)
Get the solution type.
const gchar * vtref_id(const vtref_t *r)
Get the id of a reference.
int nvti_add_tag(nvti_t *n, const gchar *name, const gchar *value)
Add a tag to the NVT tags. The tag names "severity_date", "last_modification" and "creation_date" are...
void nvtis_add(nvtis_t *nvtis, nvti_t *nvti)
Add an NVT Info to a collection of NVT Infos.
gchar * nvti_impact(const nvti_t *n)
Get the text about impact.
const gchar * vtref_text(const vtref_t *r)
Get the text of a reference.
void nvtis_free(nvtis_t *nvtis)
Free a collection of NVT Infos.
int nvti_set_detection(nvti_t *n, const gchar *detection)
Set the detection text of a NVT.
gchar * nvti_tag(const nvti_t *n)
Get the tags.
int nvti_set_category(nvti_t *n, const gint category)
Set the category type of a NVT Info.
void nvti_free(nvti_t *n)
Free memory of a nvti structure.
int nvti_add_vtref(nvti_t *vt, vtref_t *ref)
Add a reference to the VT Info.
gint nvti_timeout(const nvti_t *)
GHashTable nvtis_t
A collection of information records corresponding to NVTs.
int nvti_set_timeout(nvti_t *, const gint)
The structure of a information record that corresponds to a NVT.
The structure for a preference of a NVT.
The structure for a cross reference of a VT.
The structure for a severity of a VT.