gchar * copyright
Copyright for the NVT.
Definition: nvti.h:70
int nvti_set_category(nvti_t *n, const gint category)
Set the category type of a NVT Info.
Definition: nvti.c:920
gchar * nvtpref_default(const nvtpref_t *np)
Get the Default of a NVT Preference.
Definition: nvti.c:139
gchar * nvtpref_name(const nvtpref_t *np)
Get the Name of a NVT Preference.
Definition: nvti.c:111
gchar * nvti_xref(const nvti_t *n)
Get the xref's.
Definition: nvti.c:321
struct nvtpref nvtpref_t
The structure for a preference of a NVT.
void nvti_free(nvti_t *n)
Free memory of a nvti structure.
Definition: nvti.c:164
gchar * nvti_required_ports(const nvti_t *n)
Get the required ports list.
Definition: nvti.c:419
gchar * required_keys
List of required KB keys of this NVT.
Definition: nvti.h:81
int nvti_set_copyright(nvti_t *n, const gchar *copyright)
Set the copyright of a NVT.
Definition: nvti.c:601
int nvti_set_cvss_base(nvti_t *n, const gchar *cvss_base)
Set the CVSS base of an NVT.
Definition: nvti.c:712
nvti_t * nvti_new(void)
Create a new (empty) nvti structure.
Definition: nvti.c:153
int nvti_set_family(nvti_t *n, const gchar *family)
Set the family of a NVT.
Definition: nvti.c:880
gchar * nvtpref_type(const nvtpref_t *np)
Get the Type of a NVT Preference.
Definition: nvti.c:125
int nvti_set_required_ports(nvti_t *n, const gchar *required_ports)
Set the required ports of a NVT.
Definition: nvti.c:832
nvtpref_t * nvtpref_new(gchar *name, gchar *type, gchar *dflt)
Create a new nvtpref structure filled with the given values.
Definition: nvti.c:65
gchar * nvti_copyright(const nvti_t *n)
Get the copyright notice.
Definition: nvti.c:279
gchar * nvti_cve(const nvti_t *n)
Get the CVE references.
Definition: nvti.c:293
gchar * cvss_base
CVSS base score for this NVT.
Definition: nvti.h:78
gchar * name
Name of the preference.
Definition: nvti.h:48
The structure of a information record that corresponds to a NVT.
Definition: nvti.h:64
gint timeout
Default timeout time for this NVT.
Definition: nvti.h:90
const nvtpref_t * nvti_pref(const nvti_t *n, guint p)
Get the n'th preferences of the NVT.
Definition: nvti.c:475
gchar * version
Version of the NVT.
Definition: nvti.h:67
gchar * bid
List of Bugtraq IDs, this NVT corresponds to.
Definition: nvti.h:73
gint nvti_category(const nvti_t *n)
Get the category for this NVT.
Definition: nvti.c:502
gchar * name
The name.
Definition: nvti.h:68
void nvtpref_free(nvtpref_t *np)
Free memory of a nvtpref structure.
Definition: nvti.c:88
int nvti_set_timeout(nvti_t *n, const gint timeout)
Set the timout of a NVT Info.
Definition: nvti.c:901
int nvti_set_tag(nvti_t *n, const gchar *tag)
Set the tags of a NVT.
Definition: nvti.c:688
int nvti_add_required_udp_ports(nvti_t *n, const gchar *port)
Add a required udp port of a NVT.
Definition: nvti.c:1119
gchar * oid
Object ID.
Definition: nvti.h:66
gint nvti_timeout(const nvti_t *n)
Get the timeout for this NVT.
Definition: nvti.c:489
int nvti_add_cve(nvti_t *n, const gchar *cve_id)
Add a single CVE ID of a NVT.
Definition: nvti.c:939
int nvti_set_cve(nvti_t *n, const gchar *cve)
Set the CVE references of a NVT.
Definition: nvti.c:622
gint category
The category, this NVT belongs to.
Definition: nvti.h:91
gchar * nvti_tag(const nvti_t *n)
Get the tag.
Definition: nvti.c:335
nvti_t * nvti_from_keyfile(const gchar *fn)
Read NVT Info from a keyfile.
Definition: nvti.c:1193
gchar * nvti_family(const nvti_t *n)
Get the family name.
Definition: nvti.c:447
gchar * type
Preference type.
Definition: nvti.h:47
gchar * nvti_dependencies(const nvti_t *n)
Get the dependencies list.
Definition: nvti.c:363
gchar * nvti_excluded_keys(const nvti_t *n)
Get the excluded keys list.
Definition: nvti.c:405
gchar * required_udp_ports
List of required UDP ports of this NVT.
Definition: nvti.h:85
int nvti_set_summary(nvti_t *n, const gchar *summary)
Set the summary of a NVT.
Definition: nvti.c:580
gchar * nvti_mandatory_keys(const nvti_t *n)
Get the mandatory keys list.
Definition: nvti.c:391
void nvtis_add(nvtis_t *nvtis, nvti_t *nvti)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1455
int nvti_set_oid(nvti_t *n, const gchar *oid)
Set the OID of a NVT Info.
Definition: nvti.c:517
gchar * cve
List of CVEs, this NVT corresponds to.
Definition: nvti.h:72
int nvti_add_mandatory_keys(nvti_t *n, const gchar *key)
Add a mandatory key of a NVT.
Definition: nvti.c:1029
int nvti_set_version(nvti_t *n, const gchar *version)
Set the version of a NVT.
Definition: nvti.c:538
int nvti_add_bid(nvti_t *n, const gchar *bid_id)
Add a single BID ID of a NVT.
Definition: nvti.c:969
int nvti_set_mandatory_keys(nvti_t *n, const gchar *mandatory_keys)
Set the mandatory keys of a NVT.
Definition: nvti.c:784
gchar * summary
Summary about the NVT.
Definition: nvti.h:69
int nvti_set_name(nvti_t *n, const gchar *name)
Set the name of a NVT.
Definition: nvti.c:559
int nvti_set_xref(nvti_t *n, const gchar *xref)
Set the xrefs of a NVT.
Definition: nvti.c:664
int nvti_add_pref(nvti_t *n, nvtpref_t *np)
Add a preference to the NVT Info.
Definition: nvti.c:1149
gchar * excluded_keys
List of excluded KB keys of this NVT.
Definition: nvti.h:83
int nvti_set_bid(nvti_t *n, const gchar *bid)
Set the bid references of a NVT.
Definition: nvti.c:643
int nvti_to_keyfile(const nvti_t *n, const char *src, const gchar *fn)
Store NVT Info into a keyfile.
Definition: nvti.c:1299
gchar * nvti_required_udp_ports(const nvti_t *n)
Get the required udp ports list.
Definition: nvti.c:433
int nvti_set_required_udp_ports(nvti_t *n, const gchar *required_udp_ports)
Set the required udp ports of a NVT.
Definition: nvti.c:856
gchar * dependencies
List of dependencies of this NVT.
Definition: nvti.h:80
gchar * dflt
Default value of the preference.
Definition: nvti.h:49
gchar * nvti_summary(const nvti_t *n)
Get the summary.
Definition: nvti.c:265
int nvti_add_excluded_keys(nvti_t *n, const gchar *key)
Add a excluded key of a NVT.
Definition: nvti.c:1059
nvtis_t * nvtis_new(void)
Make a collection of NVT Infos.
Definition: nvti.c:1430
gchar * required_ports
List of required ports of this NVT.
Definition: nvti.h:84
int nvti_set_excluded_keys(nvti_t *n, const gchar *excluded_keys)
Set the excluded keys of a NVT.
Definition: nvti.c:808
void nvtis_free(nvtis_t *nvtis)
Free a collection of NVT Infos.
Definition: nvti.c:1442
gchar * family
Family the NVT belongs to.
Definition: nvti.h:92
The structure for a preference of a NVT.
Definition: nvti.h:45
int nvti_set_dependencies(nvti_t *n, const gchar *dependencies)
Set the dependencies of a NVT.
Definition: nvti.c:736
gchar * nvti_required_keys(const nvti_t *n)
Get the required keys list.
Definition: nvti.c:377
gchar * mandatory_keys
List of mandatory KB keys of this NVT.
Definition: nvti.h:82
gchar * tag
List of tags attached to this NVT.
Definition: nvti.h:77
struct nvti nvti_t
The structure of a information record that corresponds to a NVT.
int nvti_add_required_ports(nvti_t *n, const gchar *port)
Add a required port of a NVT.
Definition: nvti.c:1089
nvti_t * nvtis_lookup(nvtis_t *nvtis, const char *oid)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1470
int nvti_add_required_keys(nvti_t *n, const gchar *key)
Add a required key of a NVT.
Definition: nvti.c:999
guint nvti_pref_len(const nvti_t *n)
Get the number of preferences of the NVT.
Definition: nvti.c:460
gchar * nvti_cvss_base(const nvti_t *n)
Get the CVSS base.
Definition: nvti.c:349
gchar * nvti_oid(const nvti_t *n)
Get the OID string.
Definition: nvti.c:223
gchar * nvti_bid(const nvti_t *n)
Get the bid references.
Definition: nvti.c:307
GHashTable nvtis_t
A collection of information records corresponding to NVTs.
Definition: nvti.h:157
gchar * xref
List of Cross-references, this NVT corresponds to.
Definition: nvti.h:75
gchar * nvti_version(const nvti_t *n)
Get the version.
Definition: nvti.c:237
int nvti_set_required_keys(nvti_t *n, const gchar *required_keys)
Set the required keys of a NVT.
Definition: nvti.c:760
gchar * nvti_name(const nvti_t *n)
Get the name.
Definition: nvti.c:251
GSList * prefs
Collection of NVT preferences.
Definition: nvti.h:87