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