Greenbone Vulnerability Management Libraries
11.0.1
|
Go to the documentation of this file.
63 vtref_new (
const gchar *,
const gchar *,
const gchar *);
nvti_t * nvti_new(void)
Create a new (empty) nvti structure.
Definition: nvti.c:454
GHashTable nvtis_t
A collection of information records corresponding to NVTs.
Definition: nvti.h:207
int nvti_set_affected(nvti_t *, const gchar *)
Set the affected text of a NVT.
Definition: nvti.c:1055
int nvti_set_impact(nvti_t *, const gchar *)
Set the impact text of a NVT.
Definition: nvti.c:1076
int nvti_set_family(nvti_t *, const gchar *)
Set the family of a NVT.
Definition: nvti.c:1492
gchar * nvti_oid(const nvti_t *)
Get the OID string.
Definition: nvti.c:503
int nvtpref_id(const nvtpref_t *)
Get the ID of a NVT Preference.
Definition: nvti.c:398
The structure for a cross reference of a VT.
Definition: nvti.c:68
gchar * nvti_refs(const nvti_t *, const gchar *, const char *, guint)
int nvti_set_mandatory_keys(nvti_t *, const gchar *)
Set the mandatory keys of a NVT.
Definition: nvti.c:1347
gchar * nvti_detection(const nvti_t *)
Get the text about detection.
Definition: nvti.c:873
int nvti_set_qod_type(nvti_t *, const gchar *)
Set the QoD type of a NVT.
Definition: nvti.c:1468
nvtis_t * nvtis_new(void)
Make a collection of NVT Infos.
Definition: nvti.c:1797
int nvti_set_dependencies(nvti_t *, const gchar *)
Set the dependencies of a NVT.
Definition: nvti.c:1297
int nvti_add_pref(nvti_t *, nvtpref_t *)
Add a preference to the NVT Info.
Definition: nvti.c:1769
int nvti_set_required_udp_ports(nvti_t *, const gchar *)
Set the required udp ports of a NVT.
Definition: nvti.c:1422
void nvtpref_free(nvtpref_t *)
Free memory of a nvtpref structure.
Definition: nvti.c:378
int nvti_set_summary(nvti_t *, const gchar *)
Set the summary of a NVT.
Definition: nvti.c:1013
int nvti_set_solution(nvti_t *, const gchar *)
Set the solution of a NVT.
Definition: nvti.c:1135
gchar * nvti_qod_type(const nvti_t *)
Get the QoD type.
Definition: nvti.c:887
int nvti_set_modification_time(nvti_t *, const time_t)
Set the modification time of a NVT.
Definition: nvti.c:1116
guint nvti_pref_len(const nvti_t *)
Get the number of preferences of the NVT.
Definition: nvti.c:914
gchar * nvti_tag(const nvti_t *)
Get the tags.
Definition: nvti.c:761
gchar * nvti_summary(const nvti_t *)
Get the summary.
Definition: nvti.c:531
The structure of a information record that corresponds to a NVT.
Definition: nvti.c:270
gchar * nvti_insight(const nvti_t *)
Get the text about insight.
Definition: nvti.c:545
gchar * nvti_affected(const nvti_t *)
Get the text about affected systems.
Definition: nvti.c:559
vtref_t * vtref_new(const gchar *, const gchar *, const gchar *)
Create a new vtref structure filled with the given values.
Definition: nvti.c:89
gint nvti_timeout(const nvti_t *)
Get the timeout for this NVT.
Definition: nvti.c:943
int nvti_set_name(nvti_t *, const gchar *)
Set the name of a NVT.
Definition: nvti.c:992
gchar * nvti_dependencies(const nvti_t *)
Get the dependencies list.
Definition: nvti.c:789
gchar * nvti_family(const nvti_t *)
Get the family name.
Definition: nvti.c:901
const nvtpref_t * nvti_pref(const nvti_t *, guint)
Get the n'th preferences of the NVT.
Definition: nvti.c:929
The structure for a preference of a NVT.
Definition: nvti.c:333
int nvti_add_excluded_keys(nvti_t *, const gchar *)
Add a excluded key of a NVT.
Definition: nvti.c:1673
const gchar * vtref_text(const vtref_t *)
Get the text of a reference.
Definition: nvti.c:157
int nvti_set_oid(nvti_t *, const gchar *)
Set the OID of a NVT Info.
Definition: nvti.c:971
int nvti_set_category(nvti_t *, const gint)
Set the category type of a NVT Info.
Definition: nvti.c:1532
gchar * nvti_name(const nvti_t *)
Get the name.
Definition: nvti.c:517
int nvti_add_refs(nvti_t *, const gchar *, const gchar *, const gchar *)
Add many new vtref from a comma-separated list.
Definition: nvti.c:1557
gchar * nvtpref_type(const nvtpref_t *)
Get the Type of a NVT Preference.
Definition: nvti.c:426
time_t nvti_creation_time(const nvti_t *)
Get the creation time.
Definition: nvti.c:587
void vtref_free(vtref_t *)
Free memory of a vtref structure.
Definition: nvti.c:109
gchar * nvtpref_name(const nvtpref_t *)
Get the Name of a NVT Preference.
Definition: nvti.c:412
gchar * nvti_cvss_base(const nvti_t *)
Get the CVSS base.
Definition: nvti.c:775
gchar * nvti_required_ports(const nvti_t *)
Get the required ports list.
Definition: nvti.c:845
gchar * nvti_required_keys(const nvti_t *)
Get the required keys list.
Definition: nvti.c:803
int nvti_add_required_udp_ports(nvti_t *, const gchar *)
Add a required udp port of a NVT.
Definition: nvti.c:1737
int nvti_set_solution_type(nvti_t *, const gchar *)
Set the solution type of a NVT.
Definition: nvti.c:1157
int nvti_set_creation_time(nvti_t *, const time_t)
Set the creation time of a NVT.
Definition: nvti.c:1097
nvtpref_t * nvtpref_new(int, gchar *, gchar *, gchar *)
Create a new nvtpref structure filled with the given values.
Definition: nvti.c:357
int nvti_set_insight(nvti_t *, const gchar *)
Set the insight text of a NVT.
Definition: nvti.c:1034
int nvti_set_cvss_base(nvti_t *, const gchar *)
Set the CVSS base of an NVT.
Definition: nvti.c:1272
int nvti_add_required_keys(nvti_t *, const gchar *)
Add a required key of a NVT.
Definition: nvti.c:1609
guint nvti_vtref_len(const nvti_t *)
Get the number of references of the NVT.
Definition: nvti.c:614
const gchar * vtref_id(const vtref_t *)
Get the id of a reference.
Definition: nvti.c:143
void nvti_free(nvti_t *)
Free memory of a nvti structure.
Definition: nvti.c:465
int nvti_set_required_ports(nvti_t *, const gchar *)
Set the required ports of a NVT.
Definition: nvti.c:1397
time_t nvti_modification_time(const nvti_t *)
Get the modification time.
Definition: nvti.c:601
void nvtis_free(nvtis_t *)
Free a collection of NVT Infos.
Definition: nvti.c:1809
vtref_t * nvti_vtref(const nvti_t *, guint)
Get the n'th reference of the NVT.
Definition: nvti.c:629
void nvtis_add(nvtis_t *, nvti_t *)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1822
gchar * nvti_required_udp_ports(const nvti_t *)
Get the required udp ports list.
Definition: nvti.c:859
int nvti_set_required_keys(nvti_t *, const gchar *)
Set the required keys of a NVT.
Definition: nvti.c:1322
int nvti_add_tag(nvti_t *, const gchar *, const gchar *)
Add a tag to the NVT tags. The tag names "last_modification" and "creation_date" are treated special:...
Definition: nvti.c:1185
int nvti_set_excluded_keys(nvti_t *, const gchar *)
Set the excluded keys of a NVT.
Definition: nvti.c:1372
int nvti_set_timeout(nvti_t *, const gint)
Set the timeout of a NVT Info.
Definition: nvti.c:1513
gint nvti_category(const nvti_t *)
Get the category for this NVT.
Definition: nvti.c:956
int nvti_add_required_ports(nvti_t *, const gchar *)
Add a required port of a NVT.
Definition: nvti.c:1705
nvti_t * nvtis_lookup(nvtis_t *, const char *)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1837
gchar * nvti_excluded_keys(const nvti_t *)
Get the excluded keys list.
Definition: nvti.c:831
gchar * nvti_solution(const nvti_t *)
Get the solution.
Definition: nvti.c:733
gchar * nvti_solution_type(const nvti_t *)
Get the solution type.
Definition: nvti.c:747
int nvti_add_vtref(nvti_t *, vtref_t *)
Add a reference to the VT Info.
Definition: nvti.c:319
gchar * nvti_impact(const nvti_t *)
Get the text about impact.
Definition: nvti.c:573
gchar * nvtpref_default(const nvtpref_t *)
Get the Default of a NVT Preference.
Definition: nvti.c:440
int nvti_set_tag(nvti_t *, const gchar *)
Set the tags of a NVT.
Definition: nvti.c:1248
const gchar * vtref_type(const vtref_t *)
Get the type of a reference.
Definition: nvti.c:129
int nvti_set_detection(nvti_t *, const gchar *)
Set the detection text of a NVT.
Definition: nvti.c:1446
gchar * nvti_mandatory_keys(const nvti_t *)
Get the mandatory keys list.
Definition: nvti.c:817
int nvti_add_mandatory_keys(nvti_t *, const gchar *)
Add a mandatory key of a NVT.
Definition: nvti.c:1641