119 const char *,
char **);
199osp_target_new (
const char *,
const char *,
const char *,
int,
int,
int);
void osp_target_free(osp_target_t *)
Free an OSP target, including all added credentials.
int osp_get_vts(osp_connection_t *, entity_t *)
Get all VTs from an OSP server.
int osp_get_performance_ext(osp_connection_t *, osp_get_performance_opts_t, char **, char **)
Get performance graphics from an OSP server.
int osp_stop_scan(osp_connection_t *, const char *, char **)
Stop a scan on an OSP server.
int osp_get_scanner_details(osp_connection_t *, char **, GSList **)
Get an OSP scanner's details.
void osp_vt_single_free(osp_vt_single_t *)
Free a single OSP VT, including all preference values.
struct osp_connection osp_connection_t
const char * osp_param_type_str(const osp_param_t *)
Get an OSP parameter in string format form its type.
int osp_get_vts_feed_info(osp_connection_t *, char **, char **, char **, char **, char **)
Get the VTs version as well as other feed info from an OSP server.
void osp_target_add_alive_test_methods(osp_target_t *, gboolean, gboolean, gboolean, gboolean, gboolean)
Add alive test methods to OSP target.
struct osp_target osp_target_t
void osp_connection_close(osp_connection_t *)
Close a connection to an OSP server.
static const osp_get_vts_opts_t osp_get_vts_opts_default
Sensible default values for osp_get_vts_opts_t.
struct osp_vt_group osp_vt_group_t
const char * osp_param_default(const osp_param_t *)
Get an OSP parameter's default value.
osp_scan_status_t osp_get_scan_status_ext(osp_connection_t *, osp_get_scan_status_opts_t, char **)
Get a scan status from an OSP server.
osp_credential_t * osp_credential_new(const char *, const char *, const char *)
Allocate and initialize a new OSP credential.
int osp_get_version(osp_connection_t *, char **, char **, char **, char **, char **, char **)
Get the scanner version from an OSP server.
const gchar * osp_credential_get_auth_data(osp_credential_t *, const char *)
Get authentication data from an OSP credential.
osp_scan_status_t
OSP scan status.
@ OSP_SCAN_STATUS_STOPPED
@ OSP_SCAN_STATUS_INTERRUPTED
@ OSP_SCAN_STATUS_FINISHED
@ OSP_SCAN_STATUS_RUNNING
const char * osp_param_desc(const osp_param_t *)
Get an OSP parameter's description.
struct osp_vt_single osp_vt_single_t
void osp_credential_set_auth_data(osp_credential_t *, const char *, const char *)
Get authentication data from an OSP credential.
int osp_check_feed(osp_connection_t *, int *, int *, char **, char **)
Gets additional status info about the feed.
int osp_param_mandatory(const osp_param_t *)
Get an OSP parameter's mandatory value.
void osp_vt_single_add_value(osp_vt_single_t *, const char *, const char *)
Add a preference value to an OSP VT. This creates a copy of the name and value.
osp_vt_single_t * osp_vt_single_new(const char *)
Create a new single OSP VT.
osp_connection_t * osp_connection_new(const char *, int, const char *, const char *, const char *)
int osp_start_scan(osp_connection_t *, const char *, const char *, GHashTable *, const char *, char **)
Start an OSP scan against a target.
int osp_get_vts_version(osp_connection_t *, char **, char **error)
Get the VTs version from an OSP server.
osp_param_t * osp_param_new(void)
Create a new OSP parameter.
int osp_get_vts_ext(osp_connection_t *, osp_get_vts_opts_t, entity_t *)
Get filtered set of VTs from an OSP server.
osp_vt_group_t * osp_vt_group_new(const char *)
Create a new OSP VT group.
int osp_delete_scan(osp_connection_t *, const char *)
Delete a scan from an OSP server.
void osp_credential_free(osp_credential_t *)
Free an OSP credential.
struct osp_param osp_param_t
const char * osp_param_name(const osp_param_t *)
Get an OSP parameter's name.
struct osp_credential osp_credential_t
int osp_get_scan_pop(osp_connection_t *, const char *, char **, int, int, char **)
Get a scan from an OSP server, optionally removing the results.
osp_param_type_t
OSP parameter types.
@ OSP_PARAM_TYPE_SELECTION
@ OSP_PARAM_TYPE_PASSWORD
@ OSP_PARAM_TYPE_OVALDEF_FILE
void osp_target_set_finished_hosts(osp_target_t *, const char *)
Set the finished hosts of an OSP target.
osp_target_t * osp_target_new(const char *, const char *, const char *, int, int, int)
Create a new OSP target.
void osp_vt_group_free(osp_vt_group_t *)
Free a OSP VT group.
int osp_get_scan(osp_connection_t *, const char *, char **, int, char **)
Get a scan from an OSP server.
const char * osp_param_id(const osp_param_t *)
Get an OSP parameter's id.
void osp_param_free(osp_param_t *)
Free an OSP parameter.
void osp_target_add_credential(osp_target_t *, osp_credential_t *)
Add a credential to an OSP target.
int osp_get_vts_ext_str(osp_connection_t *, osp_get_vts_opts_t, gchar **)
Get filtered set of VTs from an OSP server.
int osp_start_scan_ext(osp_connection_t *, osp_start_scan_opts_t, char **)
Start an OSP scan against a target.
Struct holding options for OSP connection.
Struct credential information for OSP.
const char * scan_id
UUID of the scan which get the status from.
char * filter
the filter to apply for a vt sub-selection.
int version_only
if get only feed info or the vt collection
Struct holding options for OSP parameters.
GSList * targets
Target hosts to scan.
GSList * vts
Single VTs to use for the scan.
GSList * vt_groups
VT groups to use for the scan.
GHashTable * scanner_params
Table of scanner parameters.
const char * scan_id
UUID to set for scan, null otherwise.
Struct holding target information.
Struct holding vt_group information.
Struct holding vt_group information.
Headers for simple XML reader.
struct entity_s * entity_t