|
Greenbone Vulnerability Management Libraries
11.0.0
|
Protos and data structures for NVT Information data sets. More...
#include <glib.h>

Go to the source code of this file.
Typedefs | |
| typedef struct nvtpref | nvtpref_t |
| typedef struct vtref | vtref_t |
| The structure for a cross reference of a VT. More... | |
| typedef struct nvti | nvti_t |
| The structure of a information record that corresponds to a NVT. More... | |
| typedef GHashTable | nvtis_t |
| A collection of information records corresponding to NVTs. More... | |
Functions | |
| nvtpref_t * | nvtpref_new (int, gchar *, gchar *, gchar *) |
| Create a new nvtpref structure filled with the given values. More... | |
| void | nvtpref_free (nvtpref_t *) |
| Free memory of a nvtpref structure. More... | |
| gchar * | nvtpref_name (const nvtpref_t *) |
| Get the Name of a NVT Preference. More... | |
| gchar * | nvtpref_type (const nvtpref_t *) |
| Get the Type of a NVT Preference. More... | |
| gchar * | nvtpref_default (const nvtpref_t *) |
| Get the Default of a NVT Preference. More... | |
| int | nvtpref_id (const nvtpref_t *) |
| Get the ID of a NVT Preference. More... | |
| vtref_t * | vtref_new (const gchar *, const gchar *, const gchar *) |
| Create a new vtref structure filled with the given values. More... | |
| void | vtref_free (vtref_t *) |
| Free memory of a vtref structure. More... | |
| const gchar * | vtref_type (const vtref_t *) |
| Get the type of a reference. More... | |
| const gchar * | vtref_id (const vtref_t *) |
| Get the id of a reference. More... | |
| const gchar * | vtref_text (const vtref_t *) |
| Get the text of a reference. More... | |
| int | nvti_add_vtref (nvti_t *, vtref_t *) |
| Add a reference to the VT Info. More... | |
| guint | nvti_vtref_len (const nvti_t *) |
| Get the number of references of the NVT. More... | |
| vtref_t * | nvti_vtref (const nvti_t *, guint) |
| Get the n'th reference of the NVT. More... | |
| nvti_t * | nvti_new (void) |
| Create a new (empty) nvti structure. More... | |
| void | nvti_free (nvti_t *) |
| Free memory of a nvti structure. More... | |
| gchar * | nvti_oid (const nvti_t *) |
| Get the OID string. More... | |
| gchar * | nvti_name (const nvti_t *) |
| Get the name. More... | |
| gchar * | nvti_summary (const nvti_t *) |
| Get the summary. More... | |
| gchar * | nvti_affected (const nvti_t *) |
| Get the text about affected systems. More... | |
| gchar * | nvti_impact (const nvti_t *) |
| Get the text about impact. More... | |
| time_t | nvti_creation_time (const nvti_t *) |
| Get the creation time. More... | |
| time_t | nvti_modification_time (const nvti_t *) |
| Get the modification time. More... | |
| gchar * | nvti_insight (const nvti_t *) |
| Get the text about insight. More... | |
| gchar * | nvti_refs (const nvti_t *, const gchar *, const char *, guint) |
| gchar * | nvti_solution (const nvti_t *) |
| Get the solution. More... | |
| gchar * | nvti_solution_type (const nvti_t *) |
| Get the solution type. More... | |
| gchar * | nvti_tag (const nvti_t *) |
| Get the tags. More... | |
| gchar * | nvti_cvss_base (const nvti_t *) |
| Get the CVSS base. More... | |
| gchar * | nvti_dependencies (const nvti_t *) |
| Get the dependencies list. More... | |
| gchar * | nvti_required_keys (const nvti_t *) |
| Get the required keys list. More... | |
| gchar * | nvti_mandatory_keys (const nvti_t *) |
| Get the mandatory keys list. More... | |
| gchar * | nvti_excluded_keys (const nvti_t *) |
| Get the excluded keys list. More... | |
| gchar * | nvti_required_ports (const nvti_t *) |
| Get the required ports list. More... | |
| gchar * | nvti_required_udp_ports (const nvti_t *) |
| Get the required udp ports list. More... | |
| gchar * | nvti_detection (const nvti_t *) |
| Get the text about detection. More... | |
| gchar * | nvti_qod_type (const nvti_t *) |
| Get the QoD type. More... | |
| gint | nvti_timeout (const nvti_t *) |
| Get the timeout for this NVT. More... | |
| gint | nvti_category (const nvti_t *) |
| Get the category for this NVT. More... | |
| gchar * | nvti_family (const nvti_t *) |
| Get the family name. More... | |
| guint | nvti_pref_len (const nvti_t *) |
| Get the number of preferences of the NVT. More... | |
| const nvtpref_t * | nvti_pref (const nvti_t *, guint) |
| Get the n'th preferences of the NVT. More... | |
| int | nvti_set_oid (nvti_t *, const gchar *) |
| Set the OID of a NVT Info. More... | |
| int | nvti_set_name (nvti_t *, const gchar *) |
| Set the name of a NVT. More... | |
| int | nvti_set_summary (nvti_t *, const gchar *) |
| Set the summary of a NVT. More... | |
| int | nvti_set_insight (nvti_t *, const gchar *) |
| Set the insight text of a NVT. More... | |
| int | nvti_set_affected (nvti_t *, const gchar *) |
| Set the affected text of a NVT. More... | |
| int | nvti_set_impact (nvti_t *, const gchar *) |
| Set the impact text of a NVT. More... | |
| int | nvti_set_creation_time (nvti_t *, const time_t) |
| Set the creation time of a NVT. More... | |
| int | nvti_set_modification_time (nvti_t *, const time_t) |
| Set the modification time of a NVT. More... | |
| int | nvti_set_solution (nvti_t *, const gchar *) |
| Set the solution of a NVT. More... | |
| int | nvti_set_solution_type (nvti_t *, const gchar *) |
| Set the solution type of a NVT. More... | |
| 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: The value is expected to be a timestamp and it is being converted to seconds since epoch before added as a tag value. The tag name "cvss_base" will be ignored and not added. More... | |
| int | nvti_set_tag (nvti_t *, const gchar *) |
| Set the tags of a NVT. More... | |
| int | nvti_set_cvss_base (nvti_t *, const gchar *) |
| Set the CVSS base of an NVT. More... | |
| int | nvti_set_dependencies (nvti_t *, const gchar *) |
| Set the dependencies of a NVT. More... | |
| int | nvti_set_required_keys (nvti_t *, const gchar *) |
| Set the required keys of a NVT. More... | |
| int | nvti_set_mandatory_keys (nvti_t *, const gchar *) |
| Set the mandatory keys of a NVT. More... | |
| int | nvti_set_excluded_keys (nvti_t *, const gchar *) |
| Set the excluded keys of a NVT. More... | |
| int | nvti_set_required_ports (nvti_t *, const gchar *) |
| Set the required ports of a NVT. More... | |
| int | nvti_set_required_udp_ports (nvti_t *, const gchar *) |
| Set the required udp ports of a NVT. More... | |
| int | nvti_set_detection (nvti_t *, const gchar *) |
| Set the detection text of a NVT. More... | |
| int | nvti_set_qod_type (nvti_t *, const gchar *) |
| Set the QoD type of a NVT. More... | |
| int | nvti_set_timeout (nvti_t *, const gint) |
| Set the timeout of a NVT Info. More... | |
| int | nvti_set_category (nvti_t *, const gint) |
| Set the category type of a NVT Info. More... | |
| int | nvti_set_family (nvti_t *, const gchar *) |
| Set the family of a NVT. More... | |
| int | nvti_add_refs (nvti_t *, const gchar *, const gchar *, const gchar *) |
| Add many new vtref from a comma-separated list. More... | |
| int | nvti_add_required_keys (nvti_t *, const gchar *) |
| Add a required key of a NVT. More... | |
| int | nvti_add_mandatory_keys (nvti_t *, const gchar *) |
| Add a mandatory key of a NVT. More... | |
| int | nvti_add_excluded_keys (nvti_t *, const gchar *) |
| Add a excluded key of a NVT. More... | |
| int | nvti_add_required_ports (nvti_t *, const gchar *) |
| Add a required port of a NVT. More... | |
| int | nvti_add_required_udp_ports (nvti_t *, const gchar *) |
| Add a required udp port of a NVT. More... | |
| int | nvti_add_pref (nvti_t *, nvtpref_t *) |
| Add a preference to the NVT Info. More... | |
| nvtis_t * | nvtis_new (void) |
| Make a collection of NVT Infos. More... | |
| void | nvtis_free (nvtis_t *) |
| Free a collection of NVT Infos. More... | |
| void | nvtis_add (nvtis_t *, nvti_t *) |
| Add an NVT Info to a collection of NVT Infos. More... | |
| nvti_t * | nvtis_lookup (nvtis_t *, const char *) |
| Add an NVT Info to a collection of NVT Infos. More... | |
Protos and data structures for NVT Information data sets.
This file contains the protos for nvti.c
Definition in file nvti.h.
| typedef GHashTable nvtis_t |
| int nvti_add_excluded_keys | ( | nvti_t * | n, |
| const gchar * | key | ||
| ) |
Add a excluded key of a NVT.
| n | The NVT Info structure. |
| key | The excluded key to add. A copy will be created from this. |
Definition at line 1673 of file nvti.c.
References nvti::excluded_keys.
| int nvti_add_mandatory_keys | ( | nvti_t * | n, |
| const gchar * | key | ||
| ) |
Add a mandatory key of a NVT.
| n | The NVT Info structure. |
| key | The mandatory key to add. A copy will be created from this. |
Definition at line 1641 of file nvti.c.
References nvti::mandatory_keys.
Add a preference to the NVT Info.
| n | The NVT Info structure. |
| np | The NVT preference to add. |
Definition at line 1769 of file nvti.c.
References nvti::prefs.
| 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.
| n | The NVTI where to add the references. |
| type | The type for all references. If NULL, then for ref_ids a syntax is expected that includes the type like "type:id,type:id". |
| ref_ids | A CSV of reference to be added. |
| ref_text | The optional text accompanying all references. |
Definition at line 1557 of file nvti.c.
References nvti_add_vtref(), and vtref_new().
Referenced by redis_get_nvt_all().


| int nvti_add_required_keys | ( | nvti_t * | n, |
| const gchar * | key | ||
| ) |
Add a required key of a NVT.
| n | The NVT Info structure. |
| key | The required key to add. A copy will be created from this. |
Definition at line 1609 of file nvti.c.
References nvti::required_keys.
| int nvti_add_required_ports | ( | nvti_t * | n, |
| const gchar * | port | ||
| ) |
Add a required port of a NVT.
| n | The NVT Info structure. |
| port | The required port to add. A copy will be created from this. |
Definition at line 1705 of file nvti.c.
References nvti::required_ports.
| int nvti_add_required_udp_ports | ( | nvti_t * | n, |
| const gchar * | port | ||
| ) |
Add a required udp port of a NVT.
| n | The NVT Info structure. |
| port | The required udp port to add. A copy will be created from this. |
Definition at line 1737 of file nvti.c.
References nvti::required_udp_ports.
| int nvti_add_tag | ( | nvti_t * | n, |
| const gchar * | name, | ||
| const gchar * | value | ||
| ) |
Add a tag to the NVT tags. The tag names "last_modification" and "creation_date" are treated special: The value is expected to be a timestamp and it is being converted to seconds since epoch before added as a tag value. The tag name "cvss_base" will be ignored and not added.
| n | The NVT Info structure. |
| name | The tag name. A copy will be created from this. |
| value | The tag value. A copy will be created from this. |
Definition at line 1185 of file nvti.c.
References nvti_creation_time(), nvti_modification_time(), nvti_set_creation_time(), nvti_set_modification_time(), parse_nvt_timestamp(), and nvti::tag.

Add a reference to the VT Info.
| vt | The VT Info structure. |
| ref | The VT reference to add. |
Definition at line 319 of file nvti.c.
References nvti::refs.
Referenced by nvti_add_refs().

| gchar* nvti_affected | ( | const nvti_t * | n | ) |
Get the text about affected systems.
| n | The NVT Info structure of which the affected description should be returned. |
Definition at line 559 of file nvti.c.
References nvti::affected.
| gint nvti_category | ( | const nvti_t * | n | ) |
Get the category for this NVT.
| n | The NVT Info structure of which the category should be returned. |
Definition at line 956 of file nvti.c.
References nvti::category.
Referenced by redis_add_nvt().

| time_t nvti_creation_time | ( | const nvti_t * | n | ) |
Get the creation time.
| n | The NVT Info structure of which the creation time should be returned. |
Definition at line 587 of file nvti.c.
References nvti::creation_time.
Referenced by nvti_add_tag().

| gchar* nvti_cvss_base | ( | const nvti_t * | n | ) |
Get the CVSS base.
| n | The NVT Info structure of which the CVSS base should be returned. |
Definition at line 775 of file nvti.c.
References nvti::cvss_base.
| gchar* nvti_dependencies | ( | const nvti_t * | n | ) |
Get the dependencies list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 789 of file nvti.c.
References nvti::dependencies.
Referenced by redis_add_nvt().

| gchar* nvti_detection | ( | const nvti_t * | n | ) |
Get the text about detection.
| n | The NVT Info structure of which the detection should be returned. |
Definition at line 873 of file nvti.c.
References nvti::detection.
| gchar* nvti_excluded_keys | ( | const nvti_t * | n | ) |
Get the excluded keys list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 831 of file nvti.c.
References nvti::excluded_keys.
Referenced by redis_add_nvt().

| gchar* nvti_family | ( | const nvti_t * | n | ) |
Get the family name.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 901 of file nvti.c.
References nvti::family.
Referenced by redis_add_nvt().

| void nvti_free | ( | nvti_t * | n | ) |
Free memory of a nvti structure.
| n | The structure to be freed. |
Definition at line 465 of file nvti.c.
References nvti::affected, nvti::cvss_base, nvti::dependencies, nvti::detection, nvti::excluded_keys, nvti::family, nvti::impact, nvti::insight, nvti::mandatory_keys, nvti::name, nvtpref_free(), nvti::oid, nvti::prefs, nvti::qod_type, nvti::refs, nvti::required_keys, nvti::required_ports, nvti::required_udp_ports, nvti::solution, nvti::solution_type, nvti::summary, nvti::tag, and vtref_free().
Referenced by free_nvti_for_hash_table().


| gchar* nvti_impact | ( | const nvti_t * | n | ) |
Get the text about impact.
| n | The NVT Info structure of which the impact description should be returned. |
Definition at line 573 of file nvti.c.
References nvti::impact.
| gchar* nvti_insight | ( | const nvti_t * | n | ) |
Get the text about insight.
| n | The NVT Info structure of which the insight description should be returned. |
Definition at line 545 of file nvti.c.
References nvti::insight.
| gchar* nvti_mandatory_keys | ( | const nvti_t * | n | ) |
Get the mandatory keys list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 817 of file nvti.c.
References nvti::mandatory_keys.
Referenced by redis_add_nvt().

| time_t nvti_modification_time | ( | const nvti_t * | n | ) |
Get the modification time.
| n | The NVT Info structure of which the modification time should be returned. |
Definition at line 601 of file nvti.c.
References nvti::modification_time.
Referenced by nvti_add_tag().

| gchar* nvti_name | ( | const nvti_t * | n | ) |
Get the name.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 517 of file nvti.c.
References nvti::name.
Referenced by redis_add_nvt().

| nvti_t* nvti_new | ( | void | ) |
Create a new (empty) nvti structure.
Definition at line 454 of file nvti.c.
Referenced by redis_get_nvt_all().

| gchar* nvti_oid | ( | const nvti_t * | n | ) |
Get the OID string.
| n | The NVT Info structure of which the OID should be returned. |
Definition at line 503 of file nvti.c.
References nvti::oid.
Referenced by nvticache_add(), nvtis_add(), and redis_add_nvt().

Get the n'th preferences of the NVT.
| n | The NVT Info structure. |
| p | The position of the preference to return. |
Definition at line 929 of file nvti.c.
References nvti::prefs.
Referenced by redis_add_nvt().

| guint nvti_pref_len | ( | const nvti_t * | n | ) |
Get the number of preferences of the NVT.
| n | The NVT Info structure. |
Definition at line 914 of file nvti.c.
References nvti::prefs.
Referenced by redis_add_nvt().

| gchar* nvti_qod_type | ( | const nvti_t * | n | ) |
Get the QoD type.
| n | The NVT Info structure of which the QoD type should be returned. |
Definition at line 887 of file nvti.c.
References nvti::qod_type.
| gchar* nvti_refs | ( | const nvti_t * | , |
| const gchar * | , | ||
| const char * | , | ||
| guint | |||
| ) |
| gchar* nvti_required_keys | ( | const nvti_t * | n | ) |
Get the required keys list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 803 of file nvti.c.
References nvti::required_keys.
Referenced by redis_add_nvt().

| gchar* nvti_required_ports | ( | const nvti_t * | n | ) |
Get the required ports list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 845 of file nvti.c.
References nvti::required_ports.
Referenced by redis_add_nvt().

| gchar* nvti_required_udp_ports | ( | const nvti_t * | n | ) |
Get the required udp ports list.
| n | The NVT Info structure of which the name should be returned. |
Definition at line 859 of file nvti.c.
References nvti::required_udp_ports.
Referenced by redis_add_nvt().

| int nvti_set_affected | ( | nvti_t * | n, |
| const gchar * | affected | ||
| ) |
Set the affected text of a NVT.
| n | The NVT Info structure. |
| affected | The affected text to set. A copy will be created from this. |
Definition at line 1055 of file nvti.c.
References nvti::affected.
| int nvti_set_category | ( | nvti_t * | n, |
| const gint | category | ||
| ) |
Set the category type of a NVT Info.
| n | The NVT Info structure. |
| category | The category to set. Values <= 0 will indicate it is not set. |
Definition at line 1532 of file nvti.c.
References nvti::category.
Referenced by redis_get_nvt_all().

| int nvti_set_creation_time | ( | nvti_t * | n, |
| const time_t | creation_time | ||
| ) |
Set the creation time of a NVT.
| n | The NVT Info structure. |
| creation_time | The creation time to set. |
Definition at line 1097 of file nvti.c.
References nvti::creation_time.
Referenced by nvti_add_tag().

| int nvti_set_cvss_base | ( | nvti_t * | n, |
| const gchar * | cvss_base | ||
| ) |
Set the CVSS base of an NVT.
| n | The NVT Info structure. |
| cvss_base | The CVSS base to set. A copy will be created from this. |
Definition at line 1272 of file nvti.c.
References nvti::cvss_base.
| int nvti_set_dependencies | ( | nvti_t * | n, |
| const gchar * | dependencies | ||
| ) |
Set the dependencies of a NVT.
| n | The NVT Info structure. |
| dependencies | The dependencies to set. A copy will be created from this. |
Definition at line 1297 of file nvti.c.
References nvti::dependencies.
Referenced by redis_get_nvt_all().

| int nvti_set_detection | ( | nvti_t * | n, |
| const gchar * | detection | ||
| ) |
Set the detection text of a NVT.
| n | The NVT Info structure. |
| detection | The detection text to set. A copy will be created from this. |
Definition at line 1446 of file nvti.c.
References nvti::detection.
| int nvti_set_excluded_keys | ( | nvti_t * | n, |
| const gchar * | excluded_keys | ||
| ) |
Set the excluded keys of a NVT.
| n | The NVT Info structure. |
| excluded_keys | The excluded keys to set. A copy will be created from this. |
Definition at line 1372 of file nvti.c.
References nvti::excluded_keys.
Referenced by redis_get_nvt_all().

| int nvti_set_family | ( | nvti_t * | n, |
| const gchar * | family | ||
| ) |
Set the family of a NVT.
| n | The NVT Info structure. |
| family | The family to set. A copy will be created from this. |
Definition at line 1492 of file nvti.c.
References nvti::family.
Referenced by redis_get_nvt_all().

| int nvti_set_impact | ( | nvti_t * | n, |
| const gchar * | impact | ||
| ) |
Set the impact text of a NVT.
| n | The NVT Info structure. |
| affected | The impact text to set. A copy will be created from this. |
Definition at line 1076 of file nvti.c.
References nvti::impact.
| int nvti_set_insight | ( | nvti_t * | n, |
| const gchar * | insight | ||
| ) |
Set the insight text of a NVT.
| n | The NVT Info structure. |
| insight | The insight text to set. A copy will be created from this. |
Definition at line 1034 of file nvti.c.
References nvti::insight.
| int nvti_set_mandatory_keys | ( | nvti_t * | n, |
| const gchar * | mandatory_keys | ||
| ) |
Set the mandatory keys of a NVT.
| n | The NVT Info structure. |
| mandatory_keys | The mandatory keys to set. A copy will be created from this. |
Definition at line 1347 of file nvti.c.
References nvti::mandatory_keys.
Referenced by redis_get_nvt_all().

| int nvti_set_modification_time | ( | nvti_t * | n, |
| const time_t | modification_time | ||
| ) |
Set the modification time of a NVT.
| n | The NVT Info structure. |
| modification_time | The modification time to set. |
Definition at line 1116 of file nvti.c.
References nvti::modification_time.
Referenced by nvti_add_tag().

| int nvti_set_name | ( | nvti_t * | n, |
| const gchar * | name | ||
| ) |
Set the name of a NVT.
| n | The NVT Info structure. |
| name | The name to set. A copy will be created from this. |
Definition at line 992 of file nvti.c.
References nvti::name.
Referenced by redis_get_nvt_all().

| int nvti_set_oid | ( | nvti_t * | n, |
| const gchar * | oid | ||
| ) |
Set the OID of a NVT Info.
| n | The NVT Info structure. |
| oid | The OID to set. A copy will be created from this. |
Definition at line 971 of file nvti.c.
References nvti::oid.
Referenced by redis_get_nvt_all().

| int nvti_set_qod_type | ( | nvti_t * | n, |
| const gchar * | qod_type | ||
| ) |
Set the QoD type of a NVT.
| n | The NVT Info structure. |
| qod_type | The QoD type to set. A copy will be created from this. The string is not checked, any string is accepted as type. |
Definition at line 1468 of file nvti.c.
References nvti::qod_type.
| int nvti_set_required_keys | ( | nvti_t * | n, |
| const gchar * | required_keys | ||
| ) |
Set the required keys of a NVT.
| n | The NVT Info structure. |
| required_keys | The required keys to set. A copy will be created from this. |
Definition at line 1322 of file nvti.c.
References nvti::required_keys.
Referenced by redis_get_nvt_all().

| int nvti_set_required_ports | ( | nvti_t * | n, |
| const gchar * | required_ports | ||
| ) |
Set the required ports of a NVT.
| n | The NVT Info structure. |
| required_ports | The required ports to set. A copy will be created from this. |
Definition at line 1397 of file nvti.c.
References nvti::required_ports.
Referenced by redis_get_nvt_all().

| int nvti_set_required_udp_ports | ( | nvti_t * | n, |
| const gchar * | required_udp_ports | ||
| ) |
Set the required udp ports of a NVT.
| n | The NVT Info structure. |
| required_udp_ports | The required udp ports to set. A copy will be created from this. |
Definition at line 1422 of file nvti.c.
References nvti::required_udp_ports.
Referenced by redis_get_nvt_all().

| int nvti_set_solution | ( | nvti_t * | n, |
| const gchar * | solution | ||
| ) |
Set the solution of a NVT.
| n | The NVT Info structure. |
| solution | The solution to set. A copy will be created from this. |
Definition at line 1135 of file nvti.c.
References nvti::solution.
| int nvti_set_solution_type | ( | nvti_t * | n, |
| const gchar * | solution_type | ||
| ) |
Set the solution type of a NVT.
| n | The NVT Info structure. |
| solution_type | The solution type to set. A copy will be created from this. |
Definition at line 1157 of file nvti.c.
References nvti::solution_type.
| int nvti_set_summary | ( | nvti_t * | n, |
| const gchar * | summary | ||
| ) |
Set the summary of a NVT.
| n | The NVT Info structure. |
| solution | The summary to set. A copy will be created from this. |
Definition at line 1013 of file nvti.c.
References nvti::summary.
| int nvti_set_tag | ( | nvti_t * | n, |
| const gchar * | tag | ||
| ) |
Set the tags of a NVT.
| n | The NVT Info structure. |
| tag | The tags to set. A copy will be created from this. |
Definition at line 1248 of file nvti.c.
References nvti::tag.
Referenced by redis_get_nvt_all().

| int nvti_set_timeout | ( | nvti_t * | n, |
| const gint | timeout | ||
| ) |
Set the timeout of a NVT Info.
| n | The NVT Info structure. |
| timeout | The timeout to set. Values <= 0 will indicate it is not set. |
Definition at line 1513 of file nvti.c.
References nvti::timeout.
Referenced by redis_get_nvt_all().

| gchar* nvti_solution | ( | const nvti_t * | n | ) |
Get the solution.
| n | The NVT Info structure of which the solution should be returned. |
Definition at line 733 of file nvti.c.
References nvti::solution.
| gchar* nvti_solution_type | ( | const nvti_t * | n | ) |
Get the solution type.
| n | The NVT Info structure of which the solution type should be returned. |
Definition at line 747 of file nvti.c.
References nvti::solution_type.
| gchar* nvti_summary | ( | const nvti_t * | n | ) |
Get the summary.
| n | The NVT Info structure of which the summary should be returned. |
Definition at line 531 of file nvti.c.
References nvti::summary.
| gchar* nvti_tag | ( | const nvti_t * | n | ) |
Get the tags.
| n | The NVT Info structure of which the tags should be returned. |
Definition at line 761 of file nvti.c.
References nvti::tag.
Referenced by redis_add_nvt().

| gint nvti_timeout | ( | const nvti_t * | n | ) |
Get the timeout for this NVT.
| n | The NVT Info structure of which the timeout should be returned. |
Definition at line 943 of file nvti.c.
References nvti::timeout.
Referenced by redis_add_nvt().

Get the n'th reference of the NVT.
| n | The NVT Info structure. |
| p | The position of the reference to return. |
Definition at line 629 of file nvti.c.
References nvti::refs.
| guint nvti_vtref_len | ( | const nvti_t * | n | ) |
Get the number of references of the NVT.
| n | The NVT Info structure. |
Definition at line 614 of file nvti.c.
References nvti::refs.
Add an NVT Info to a collection of NVT Infos.
| nvtis | The collection of NVT Infos. |
| nvti | The NVT Info to add. |
Definition at line 1822 of file nvti.c.
References nvti_oid().

| void nvtis_free | ( | nvtis_t * | nvtis | ) |
| nvtis_t* nvtis_new | ( | void | ) |
Make a collection of NVT Infos.
Definition at line 1797 of file nvti.c.
References free_nvti_for_hash_table().

| gchar* nvtpref_default | ( | const nvtpref_t * | np | ) |
Get the Default of a NVT Preference.
| np | The NVT Pref structure of which the Default should be returned. |
Definition at line 440 of file nvti.c.
References nvtpref::dflt.
Referenced by redis_add_nvt().

| void nvtpref_free | ( | nvtpref_t * | np | ) |
Free memory of a nvtpref structure.
| np | The structure to be freed. |
Definition at line 378 of file nvti.c.
References nvtpref::dflt, nvtpref::name, and nvtpref::type.
Referenced by nvti_free().

| int nvtpref_id | ( | const nvtpref_t * | np | ) |
Get the ID of a NVT Preference.
| np | The NVT Pref structure of which the Name should be returned. |
Definition at line 398 of file nvti.c.
References nvtpref::id.
Referenced by redis_add_nvt().

| gchar* nvtpref_name | ( | const nvtpref_t * | np | ) |
Get the Name of a NVT Preference.
| np | The NVT Pref structure of which the Name should be returned. |
Definition at line 412 of file nvti.c.
References nvtpref::name.
Referenced by redis_add_nvt().

| nvtpref_t* nvtpref_new | ( | int | id, |
| gchar * | name, | ||
| gchar * | type, | ||
| gchar * | dflt | ||
| ) |
Create a new nvtpref structure filled with the given values.
| id | The ID to be set. |
| name | The name to be set. A copy will created of this. |
| type | The type to be set. A copy will created of this. |
| dflt | The default to be set. A copy will created of this. |
Definition at line 357 of file nvti.c.
References nvtpref::dflt, nvtpref::id, nvtpref::name, and nvtpref::type.
Referenced by nvticache_get_prefs().

| gchar* nvtpref_type | ( | const nvtpref_t * | np | ) |
Get the Type of a NVT Preference.
| np | The NVT Pref structure of which the Type should be returned. |
Definition at line 426 of file nvti.c.
References nvtpref::type.
Referenced by redis_add_nvt().

| void vtref_free | ( | vtref_t * | ref | ) |
Free memory of a vtref structure.
| ref | The structure to be freed. |
Definition at line 109 of file nvti.c.
References vtref::ref_id, vtref::ref_text, and vtref::type.
Referenced by nvti_free().

| const gchar* vtref_id | ( | const vtref_t * | r | ) |
Get the id of a reference.
| r | The VT Reference structure of which the id should be returned. |
Definition at line 143 of file nvti.c.
References vtref::ref_id.
| 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.
| type | The type to be set. |
| ref_id | The actual reference to be set. |
| ref_text | The optional text accompanying a reference. |
Definition at line 89 of file nvti.c.
References vtref::ref_id, vtref::ref_text, and vtref::type.
Referenced by nvti_add_refs().

| const gchar* vtref_text | ( | const vtref_t * | r | ) |
Get the text of a reference.
| r | The VT Reference structure of which the id should be returned. |
Definition at line 157 of file nvti.c.
References vtref::ref_text.
| const gchar* vtref_type | ( | const vtref_t * | r | ) |
Get the type of a reference.
| r | The VT Reference structure of which the type should be returned. |
Definition at line 129 of file nvti.c.
References vtref::type.