"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/nvti.h" between
gvm-libs-10.0.1.tar.gz and gvm-libs-11.0.0.tar.gz

About: GVM Libraries for the Greenbone Vulnerability Management (GVM-10) framework (derived from the former openvas-libraries).

nvti.h  (gvm-libs-10.0.1):nvti.h  (gvm-libs-11.0.0)
skipping to change at line 32 skipping to change at line 32
* @brief Protos and data structures for NVT Information data sets. * @brief Protos and data structures for NVT Information data sets.
* *
* This file contains the protos for \ref nvti.c * This file contains the protos for \ref nvti.c
*/ */
#ifndef _NVTI_H #ifndef _NVTI_H
#define _NVTI_H #define _NVTI_H
#include <glib.h> #include <glib.h>
/** typedef struct nvtpref nvtpref_t;
* @brief The structure for a preference of a NVT.
*
* The elements of this structure should never be accessed directly.
* Only the functions corresponding to this module should be used.
*/
typedef struct nvtpref
{
gchar *type; ///< Preference type
gchar *name; ///< Name of the preference
gchar *dflt; ///< Default value of the preference
} nvtpref_t;
nvtpref_t * nvtpref_t *
nvtpref_new (gchar *, gchar *, gchar *); nvtpref_new (int, gchar *, gchar *, gchar *);
void void
nvtpref_free (nvtpref_t *); nvtpref_free (nvtpref_t *);
gchar * gchar *
nvtpref_name (const nvtpref_t *); nvtpref_name (const nvtpref_t *);
gchar * gchar *
nvtpref_type (const nvtpref_t *); nvtpref_type (const nvtpref_t *);
gchar * gchar *
nvtpref_default (const nvtpref_t *); nvtpref_default (const nvtpref_t *);
int
nvtpref_id (const nvtpref_t *);
/**
* @brief The structure for a cross reference of a VT.
*/
typedef struct vtref vtref_t;
/** /**
* @brief The structure of a information record that corresponds to a NVT. * @brief The structure of a information record that corresponds to a NVT.
*
* The elements of this structure should never be accessed directly.
* Only the functions corresponding to this module should be used.
*/ */
typedef struct nvti typedef struct nvti nvti_t;
{
gchar *oid; /**< @brief Object ID */ vtref_t *
gchar *name; /**< @brief The name */ vtref_new (const gchar *, const gchar *, const gchar *);
void
gchar *cve; /**< @brief List of CVEs, this NVT corresponds to */ vtref_free (vtref_t *);
gchar *bid; /**< @brief List of Bugtraq IDs, this NVT const gchar *
corresponds to */ vtref_type (const vtref_t *);
gchar *xref; /**< @brief List of Cross-references, this NVT const gchar *
corresponds to */ vtref_id (const vtref_t *);
gchar *tag; /**< @brief List of tags attached to this NVT */ const gchar *
gchar *cvss_base; /**< @brief CVSS base score for this NVT. */ vtref_text (const vtref_t *);
gchar *dependencies; /**< @brief List of dependencies of this NVT */ int
gchar *required_keys; /**< @brief List of required KB keys of this NVT */ nvti_add_vtref (nvti_t *, vtref_t *);
gchar *mandatory_keys; /**< @brief List of mandatory KB keys of this NVT */ guint
gchar *excluded_keys; /**< @brief List of excluded KB keys of this NVT */ nvti_vtref_len (const nvti_t *);
gchar *required_ports; /**< @brief List of required ports of this NVT */ vtref_t *
gchar nvti_vtref (const nvti_t *, guint);
*required_udp_ports; /**< @brief List of required UDP ports of this NVT*/
GSList *prefs; /**< @brief Collection of NVT preferences */
// The following are not settled yet.
gint timeout; /**< @brief Default timeout time for this NVT */
gint category; /**< @brief The category, this NVT belongs to */
gchar *family; /**< @brief Family the NVT belongs to */
} nvti_t;
nvti_t * nvti_t *
nvti_new (void); nvti_new (void);
void void
nvti_free (nvti_t *); nvti_free (nvti_t *);
gchar * gchar *
nvti_oid (const nvti_t *); nvti_oid (const nvti_t *);
gchar * gchar *
nvti_name (const nvti_t *); nvti_name (const nvti_t *);
gchar * gchar *
nvti_cve (const nvti_t *); nvti_summary (const nvti_t *);
gchar *
nvti_affected (const nvti_t *);
gchar *
nvti_impact (const nvti_t *);
time_t
nvti_creation_time (const nvti_t *);
time_t
nvti_modification_time (const nvti_t *);
gchar *
nvti_insight (const nvti_t *);
gchar * gchar *
nvti_bid (const nvti_t *); nvti_refs (const nvti_t *, const gchar *, const char *, guint);
gchar * gchar *
nvti_xref (const nvti_t *); nvti_solution (const nvti_t *);
gchar *
nvti_solution_type (const nvti_t *);
gchar * gchar *
nvti_tag (const nvti_t *); nvti_tag (const nvti_t *);
gchar * gchar *
nvti_cvss_base (const nvti_t *); nvti_cvss_base (const nvti_t *);
gchar * gchar *
nvti_dependencies (const nvti_t *); nvti_dependencies (const nvti_t *);
gchar * gchar *
nvti_required_keys (const nvti_t *); nvti_required_keys (const nvti_t *);
gchar * gchar *
nvti_mandatory_keys (const nvti_t *); nvti_mandatory_keys (const nvti_t *);
gchar * gchar *
nvti_excluded_keys (const nvti_t *); nvti_excluded_keys (const nvti_t *);
gchar * gchar *
nvti_required_ports (const nvti_t *); nvti_required_ports (const nvti_t *);
gchar * gchar *
nvti_required_udp_ports (const nvti_t *); nvti_required_udp_ports (const nvti_t *);
gchar *
nvti_detection (const nvti_t *);
gchar *
nvti_qod_type (const nvti_t *);
gint gint
nvti_timeout (const nvti_t *); nvti_timeout (const nvti_t *);
gint gint
nvti_category (const nvti_t *); nvti_category (const nvti_t *);
gchar * gchar *
nvti_family (const nvti_t *); nvti_family (const nvti_t *);
guint guint
nvti_pref_len (const nvti_t *); nvti_pref_len (const nvti_t *);
const nvtpref_t * const nvtpref_t *
nvti_pref (const nvti_t *, guint); nvti_pref (const nvti_t *, guint);
int int
nvti_set_oid (nvti_t *, const gchar *); nvti_set_oid (nvti_t *, const gchar *);
int int
nvti_set_name (nvti_t *, const gchar *); nvti_set_name (nvti_t *, const gchar *);
int int
nvti_set_cve (nvti_t *, const gchar *); nvti_set_summary (nvti_t *, const gchar *);
int
nvti_set_insight (nvti_t *, const gchar *);
int int
nvti_set_bid (nvti_t *, const gchar *); nvti_set_affected (nvti_t *, const gchar *);
int int
nvti_set_xref (nvti_t *, const gchar *); nvti_set_impact (nvti_t *, const gchar *);
int
nvti_set_creation_time (nvti_t *, const time_t);
int
nvti_set_modification_time (nvti_t *, const time_t);
int
nvti_set_solution (nvti_t *, const gchar *);
int
nvti_set_solution_type (nvti_t *, const gchar *);
int
nvti_add_tag (nvti_t *, const gchar *, const gchar *);
int int
nvti_set_tag (nvti_t *, const gchar *); nvti_set_tag (nvti_t *, const gchar *);
int int
nvti_set_cvss_base (nvti_t *, const gchar *); nvti_set_cvss_base (nvti_t *, const gchar *);
int int
nvti_set_dependencies (nvti_t *, const gchar *); nvti_set_dependencies (nvti_t *, const gchar *);
int int
nvti_set_required_keys (nvti_t *, const gchar *); nvti_set_required_keys (nvti_t *, const gchar *);
int int
nvti_set_mandatory_keys (nvti_t *, const gchar *); nvti_set_mandatory_keys (nvti_t *, const gchar *);
int int
nvti_set_excluded_keys (nvti_t *, const gchar *); nvti_set_excluded_keys (nvti_t *, const gchar *);
int int
nvti_set_required_ports (nvti_t *, const gchar *); nvti_set_required_ports (nvti_t *, const gchar *);
int int
nvti_set_required_udp_ports (nvti_t *, const gchar *); nvti_set_required_udp_ports (nvti_t *, const gchar *);
int int
nvti_set_detection (nvti_t *, const gchar *);
int
nvti_set_qod_type (nvti_t *, const gchar *);
int
nvti_set_timeout (nvti_t *, const gint); nvti_set_timeout (nvti_t *, const gint);
int int
nvti_set_category (nvti_t *, const gint); nvti_set_category (nvti_t *, const gint);
int int
nvti_set_family (nvti_t *, const gchar *); nvti_set_family (nvti_t *, const gchar *);
int int
nvti_add_cve (nvti_t *, const gchar *); nvti_add_refs (nvti_t *, const gchar *, const gchar *, const gchar *);
int
nvti_add_bid (nvti_t *, const gchar *);
int int
nvti_add_required_keys (nvti_t *, const gchar *); nvti_add_required_keys (nvti_t *, const gchar *);
int int
nvti_add_mandatory_keys (nvti_t *, const gchar *); nvti_add_mandatory_keys (nvti_t *, const gchar *);
int int
nvti_add_excluded_keys (nvti_t *, const gchar *); nvti_add_excluded_keys (nvti_t *, const gchar *);
int int
nvti_add_required_ports (nvti_t *, const gchar *); nvti_add_required_ports (nvti_t *, const gchar *);
int int
nvti_add_required_udp_ports (nvti_t *, const gchar *); nvti_add_required_udp_ports (nvti_t *, const gchar *);
 End of changes. 17 change blocks. 
53 lines changed or deleted 72 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)