175 #define nvtis_find g_hash_table_find
int nvti_set_version(nvti_t *, const gchar *)
Set the version of a NVT.
Definition: nvti.c:608
gchar * copyright
Copyright for the NVT.
Definition: nvti.h:70
nvtpref_t * nvtpref_new(gchar *, gchar *, gchar *)
Create a new nvtpref structure filled with the given values.
Definition: nvti.c:64
int nvti_set_cve(nvti_t *, const gchar *)
Set the CVE references of a NVT.
Definition: nvti.c:692
struct nvtpref nvtpref_t
The structure for a preference of a NVT.
void nvti_free(nvti_t *)
Free memory of a nvti structure.
Definition: nvti.c:163
int nvti_set_excluded_keys(nvti_t *, const gchar *)
Set the excluded keys of a NVT.
Definition: nvti.c:878
gchar * nvti_tag(const nvti_t *)
Get the tag.
Definition: nvti.c:389
gchar * required_keys
List of required KB keys of this NVT.
Definition: nvti.h:81
int nvti_add_pref(nvti_t *, nvtpref_t *)
Add a preference to the NVT Info.
Definition: nvti.c:1240
int nvti_set_src(nvti_t *, const gchar *)
Set the source identifier for the acutal NVT.
Definition: nvti.c:971
int nvti_set_required_keys(nvti_t *, const gchar *)
Set the required keys of a NVT.
Definition: nvti.c:830
nvti_t * nvtis_lookup(nvtis_t *, const char *)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1610
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:93
gchar * nvti_family(const nvti_t *)
Get the family name.
Definition: nvti.c:501
gchar * nvti_version(const nvti_t *)
Get the version.
Definition: nvti.c:291
gchar * version
Version of the NVT.
Definition: nvti.h:67
nvtpref_t * nvti_pref(const nvti_t *, guint)
Get the n'th preferences of the NVT.
Definition: nvti.c:529
gchar * bid
List of Bugtraq IDs, this NVT corresponds to.
Definition: nvti.h:73
int nvti_set_tag(nvti_t *, const gchar *)
Set the tags of a NVT.
Definition: nvti.c:758
nvtis_t * nvtis_new()
Make a collection of NVT Infos.
Definition: nvti.c:1570
gint nvti_category(const nvti_t *)
Get the category for this NVT.
Definition: nvti.c:572
int nvti_set_oid(nvti_t *, const gchar *)
Set the OID of a NVT Info.
Definition: nvti.c:587
gchar * name
The name.
Definition: nvti.h:68
int nvti_set_category(nvti_t *, const gint)
Set the category type of a NVT Info.
Definition: nvti.c:1011
gchar * oid
Object ID.
Definition: nvti.h:66
int nvti_set_name(nvti_t *, const gchar *)
Set the name of a NVT.
Definition: nvti.c:629
gchar * nvtpref_type(const nvtpref_t *)
Get the Type of a NVT Preference.
Definition: nvti.c:124
gint category
The category, this NVT belongs to.
Definition: nvti.h:94
int nvti_set_copyright(nvti_t *, const gchar *)
Set the copyright of a NVT.
Definition: nvti.c:671
nvti_t * nvti_clone(const nvti_t *)
Create a full copy of a NVT Info.
Definition: nvti.c:1511
int nvti_add_excluded_keys(nvti_t *, const gchar *)
Add a excluded key of a NVT.
Definition: nvti.c:1150
void nvtis_free(nvtis_t *)
Free a collection of NVT Infos.
Definition: nvti.c:1582
gchar * nvti_mandatory_keys(const nvti_t *)
Get the mandatory keys list.
Definition: nvti.c:445
gchar * nvtpref_name(const nvtpref_t *)
Get the Name of a NVT Preference.
Definition: nvti.c:110
nvti_t * nvti_new(void)
Create a new (empty) nvti structure.
Definition: nvti.c:152
gchar * nvti_cvss_base(const nvti_t *)
Get the CVSS base.
Definition: nvti.c:403
int nvti_add_mandatory_keys(nvti_t *, const gchar *)
Add a mandatory key of a NVT.
Definition: nvti.c:1120
int nvti_set_family(nvti_t *, const gchar *)
Set the family of a NVT.
Definition: nvti.c:950
gchar * nvti_bid(const nvti_t *)
Get the bid references.
Definition: nvti.c:361
gchar * type
Preference type.
Definition: nvti.h:47
int nvti_add_cve(nvti_t *, const gchar *)
Add a single CVE ID of a NVT.
Definition: nvti.c:1030
int nvti_add_required_keys(nvti_t *, const gchar *)
Add a required key of a NVT.
Definition: nvti.c:1090
gchar * nvti_oid(const nvti_t *)
Get the OID string.
Definition: nvti.c:277
int nvti_add_bid(nvti_t *, const gchar *)
Add a single BID ID of a NVT.
Definition: nvti.c:1060
int nvti_set_required_ports(nvti_t *, const gchar *)
Set the required ports of a NVT.
Definition: nvti.c:902
void nvtis_add(nvtis_t *, nvti_t *)
Add an NVT Info to a collection of NVT Infos.
Definition: nvti.c:1595
gchar * required_udp_ports
List of required UDP ports of this NVT.
Definition: nvti.h:85
int nvti_set_dependencies(nvti_t *, const gchar *)
Set the dependencies of a NVT.
Definition: nvti.c:806
gchar * nvtpref_default(const nvtpref_t *)
Get the Default of a NVT Preference.
Definition: nvti.c:138
gchar * cve
List of CVEs, this NVT corresponds to.
Definition: nvti.h:72
gchar * nvti_cve(const nvti_t *)
Get the CVE references.
Definition: nvti.c:347
gchar * summary
Summary about the NVT.
Definition: nvti.h:69
gchar * src
the source of the corresponding script, can be filename or other URI
Definition: nvti.h:87
gchar * excluded_keys
List of excluded KB keys of this NVT.
Definition: nvti.h:83
gchar * nvti_excluded_keys(const nvti_t *)
Get the excluded keys list.
Definition: nvti.c:459
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_name(const nvti_t *)
Get the name.
Definition: nvti.c:305
int nvti_add_required_ports(nvti_t *, const gchar *)
Add a required port of a NVT.
Definition: nvti.c:1180
guint nvti_pref_len(const nvti_t *)
Get the number of preferences of the NVT.
Definition: nvti.c:514
int nvti_set_xref(nvti_t *, const gchar *)
Set the xrefs of a NVT.
Definition: nvti.c:734
gchar * nvti_required_ports(const nvti_t *)
Get the required ports list.
Definition: nvti.c:473
gchar * required_ports
List of required ports of this NVT.
Definition: nvti.h:84
nvti_t * nvti_from_keyfile(const gchar *)
Read NVT Info from a keyfile.
Definition: nvti.c:1284
gint nvti_timeout(const nvti_t *)
Get the timeout for this NVT.
Definition: nvti.c:559
gchar * family
Family the NVT belongs to.
Definition: nvti.h:95
int nvti_set_cvss_base(nvti_t *, const gchar *)
Set the CVSS base of an NVT.
Definition: nvti.c:782
int nvti_set_bid(nvti_t *, const gchar *)
Set the bid references of a NVT.
Definition: nvti.c:713
The structure for a preference of a NVT.
Definition: nvti.h:45
gchar * nvti_dependencies(const nvti_t *)
Get the dependencies list.
Definition: nvti.c:417
void nvti_shrink(nvti_t *)
Free memory of all elements except src and oid.
Definition: nvti.c:221
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
int nvti_to_keyfile(const nvti_t *, const gchar *)
Store NVT Info into a keyfile.
Definition: nvti.c:1391
struct nvti nvti_t
The structure of a information record that corresponds to a NVT.
int nvti_set_summary(nvti_t *, const gchar *)
Set the summary of a NVT.
Definition: nvti.c:650
gchar * nvti_xref(const nvti_t *)
Get the xref's.
Definition: nvti.c:375
gchar * nvti_required_keys(const nvti_t *)
Get the required keys list.
Definition: nvti.c:431
int nvti_add_required_udp_ports(nvti_t *, const gchar *)
Add a required udp port of a NVT.
Definition: nvti.c:1210
GHashTable nvtis_t
A collection of information records corresponding to NVTs.
Definition: nvti.h:165
int nvti_set_mandatory_keys(nvti_t *, const gchar *)
Set the mandatory keys of a NVT.
Definition: nvti.c:854
gchar * nvti_src(const nvti_t *)
Get the source URI of a NVT Info.
Definition: nvti.c:545
gchar * nvti_copyright(const nvti_t *)
Get the copyright notice.
Definition: nvti.c:333
gchar * xref
List of Cross-references, this NVT corresponds to.
Definition: nvti.h:75
int nvti_set_required_udp_ports(nvti_t *, const gchar *)
Set the required udp ports of a NVT.
Definition: nvti.c:926
gchar * nvti_summary(const nvti_t *)
Get the summary.
Definition: nvti.c:319
gchar * nvti_required_udp_ports(const nvti_t *)
Get the required udp ports list.
Definition: nvti.c:487
int nvti_set_timeout(nvti_t *, const gint)
Set the timout of a NVT Info.
Definition: nvti.c:992
GSList * prefs
Collection of NVT preferences.
Definition: nvti.h:90
void nvtpref_free(nvtpref_t *)
Free memory of a nvtpref structure.
Definition: nvti.c:87