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.
Definition osp.c:1730
int osp_get_vts(osp_connection_t *, entity_t *)
Get all VTs from an OSP server.
Definition osp.c:618
int osp_get_performance_ext(osp_connection_t *, osp_get_performance_opts_t, char **, char **)
Get performance graphics from an OSP server.
Definition osp.c:754
int osp_stop_scan(osp_connection_t *, const char *, char **)
Stop a scan on an OSP server.
Definition osp.c:970
int osp_get_scanner_details(osp_connection_t *, char **, GSList **)
Get an OSP scanner's details.
Definition osp.c:1438
void osp_vt_single_free(osp_vt_single_t *)
Free a single OSP VT, including all preference values.
Definition osp.c:1841
const char * osp_param_type_str(const osp_param_t *)
Get an OSP parameter in string format form its type.
Definition osp.c:1402
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.
Definition osp.c:554
void osp_target_add_alive_test_methods(osp_target_t *, gboolean, gboolean, gboolean, gboolean, gboolean)
Add alive test methods to OSP target.
Definition osp.c:1753
void osp_connection_close(osp_connection_t *)
Close a connection to an OSP server.
Definition osp.c:290
static const osp_get_vts_opts_t osp_get_vts_opts_default
Sensible default values for osp_get_vts_opts_t.
Definition osp.h:109
const char * osp_param_default(const osp_param_t *)
Get an OSP parameter's default value.
Definition osp.c:1552
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.
Definition osp.c:820
osp_credential_t * osp_credential_new(const char *, const char *, const char *)
Allocate and initialize a new OSP credential.
Definition osp.c:1601
int osp_get_version(osp_connection_t *, char **, char **, char **, char **, char **, char **)
Get the scanner version from an OSP server.
Definition osp.c:411
const gchar * osp_credential_get_auth_data(osp_credential_t *, const char *)
Get authentication data from an OSP credential.
Definition osp.c:1643
osp_scan_status_t
OSP scan status.
Definition osp.h:49
@ OSP_SCAN_STATUS_QUEUED
Definition osp.h:55
@ OSP_SCAN_STATUS_STOPPED
Definition osp.h:53
@ OSP_SCAN_STATUS_INTERRUPTED
Definition osp.h:56
@ OSP_SCAN_STATUS_FINISHED
Definition osp.h:54
@ OSP_SCAN_STATUS_RUNNING
Definition osp.h:52
@ OSP_SCAN_STATUS_ERROR
Definition osp.h:50
@ OSP_SCAN_STATUS_INIT
Definition osp.h:51
const char * osp_param_desc(const osp_param_t *)
Get an OSP parameter's description.
Definition osp.c:1537
void osp_credential_set_auth_data(osp_credential_t *, const char *, const char *)
Get authentication data from an OSP credential.
Definition osp.c:1658
int osp_check_feed(osp_connection_t *, int *, int *, char **, char **)
Gets additional status info about the feed.
Definition osp.c:318
int osp_param_mandatory(const osp_param_t *)
Get an OSP parameter's mandatory value.
Definition osp.c:1567
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.
Definition osp.c:1861
osp_vt_single_t * osp_vt_single_new(const char *)
Create a new single OSP VT.
Definition osp.c:1823
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.
Definition osp.c:1049
int osp_get_vts_version(osp_connection_t *, char **, char **error)
Get the VTs version from an OSP server.
Definition osp.c:496
osp_param_t * osp_param_new(void)
Create a new OSP parameter.
Definition osp.c:1494
int osp_get_vts_ext(osp_connection_t *, osp_get_vts_opts_t, entity_t *)
Get filtered set of VTs from an OSP server.
Definition osp.c:642
osp_vt_group_t * osp_vt_group_new(const char *)
Create a new OSP VT group.
Definition osp.c:1790
int osp_delete_scan(osp_connection_t *, const char *)
Delete a scan from an OSP server.
Definition osp.c:719
void osp_credential_free(osp_credential_t *)
Free an OSP credential.
Definition osp.c:1622
const char * osp_param_name(const osp_param_t *)
Get an OSP parameter's name.
Definition osp.c:1522
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.
Definition osp.c:891
osp_param_type_t
OSP parameter types.
Definition osp.h:34
@ OSP_PARAM_TYPE_BOOLEAN
Definition osp.h:39
@ OSP_PARAM_TYPE_STR
Definition osp.h:36
@ OSP_PARAM_TYPE_INT
Definition osp.h:35
@ OSP_PARAM_TYPE_SELECTION
Definition osp.h:41
@ OSP_PARAM_TYPE_PASSWORD
Definition osp.h:37
@ OSP_PARAM_TYPE_FILE
Definition osp.h:38
@ OSP_PARAM_TYPE_CRD_UP
Definition osp.h:42
@ OSP_PARAM_TYPE_OVALDEF_FILE
Definition osp.h:40
void osp_target_set_finished_hosts(osp_target_t *, const char *)
Set the finished hosts of an OSP target.
Definition osp.c:1718
osp_target_t * osp_target_new(const char *, const char *, const char *, int, int, int)
Create a new OSP target.
Definition osp.c:1691
void osp_vt_group_free(osp_vt_group_t *)
Free a OSP VT group.
Definition osp.c:1806
int osp_get_scan(osp_connection_t *, const char *, char **, int, char **)
Get a scan from an OSP server.
Definition osp.c:954
const char * osp_param_id(const osp_param_t *)
Get an OSP parameter's id.
Definition osp.c:1507
void osp_param_free(osp_param_t *)
Free an OSP parameter.
Definition osp.c:1580
void osp_target_add_credential(osp_target_t *, osp_credential_t *)
Add a credential to an OSP target.
Definition osp.c:1774
int osp_get_vts_ext_str(osp_connection_t *, osp_get_vts_opts_t, gchar **)
Get filtered set of VTs from an OSP server.
Definition osp.c:681
int osp_start_scan_ext(osp_connection_t *, osp_start_scan_opts_t, char **)
Start an OSP scan against a target.
Definition osp.c:1247
XML element.
Definition xmlutils.h:52
Struct holding options for OSP connection.
Definition osp.c:36
Struct credential information for OSP.
Definition osp.c:60
const char * scan_id
UUID of the scan which get the status from.
Definition osp.h:61
char * filter
the filter to apply for a vt sub-selection.
Definition osp.h:102
int version_only
if get only feed info or the vt collection
Definition osp.h:103
Struct holding options for OSP parameters.
Definition osp.c:47
GSList * targets
Target hosts to scan.
Definition osp.h:123
GSList * vts
Single VTs to use for the scan.
Definition osp.h:125
GSList * vt_groups
VT groups to use for the scan.
Definition osp.h:124
GHashTable * scanner_params
Table of scanner parameters.
Definition osp.h:126
const char * scan_id
UUID to set for scan, null otherwise.
Definition osp.h:127
Struct holding target information.
Definition osp.c:71
Struct holding vt_group information.
Definition osp.c:93
Struct holding vt_group information.
Definition osp.c:101
Headers for simple XML reader.