119 const char *,
char **);
199osp_target_new (
const char *,
const char *,
const char *,
int,
int,
int);
int osp_check_feed(osp_connection_t *connection, int *lockfile_in_use, int *self_test_exit_error, char **self_test_error_msg, char **cmd_error)
Gets additional status info about the feed.
void osp_credential_set_auth_data(osp_credential_t *credential, const char *name, const char *value)
Get authentication data from an OSP credential.
void osp_connection_close(osp_connection_t *connection)
Close a connection to an OSP server.
void osp_credential_free(osp_credential_t *credential)
Free an OSP credential.
int osp_get_vts_ext_str(osp_connection_t *connection, osp_get_vts_opts_t opts, gchar **str)
Get filtered set of VTs from an OSP server.
int osp_start_scan_ext(osp_connection_t *connection, osp_start_scan_opts_t opts, char **error)
Start an OSP scan against a target.
void osp_vt_group_free(osp_vt_group_t *vt_group)
Free a OSP VT group.
void osp_target_add_alive_test_methods(osp_target_t *target, gboolean icmp, gboolean tcp_syn, gboolean tcp_ack, gboolean arp, gboolean consider_alive)
Add alive test methods to OSP target.
osp_vt_group_t * osp_vt_group_new(const char *filter)
Create a new OSP VT group.
int osp_get_vts_feed_info(osp_connection_t *connection, char **vts_version, char **feed_name, char **feed_vendor, char **feed_home, char **error)
Get the VTs version as well as other feed info from an OSP server.
void osp_target_set_finished_hosts(osp_target_t *target, const char *finished_hosts)
Set the finished hosts of an OSP target.
int osp_get_vts(osp_connection_t *connection, entity_t *vts)
Get all VTs from an OSP server.
int osp_get_scanner_details(osp_connection_t *connection, char **desc, GSList **params)
Get an OSP scanner's details.
const char * osp_param_desc(const osp_param_t *param)
Get an OSP parameter's description.
void osp_target_add_credential(osp_target_t *target, osp_credential_t *credential)
Add a credential to an OSP target.
int osp_delete_scan(osp_connection_t *connection, const char *scan_id)
Delete a scan from an OSP server.
void osp_target_free(osp_target_t *target)
Free an OSP target, including all added credentials.
int osp_get_vts_ext(osp_connection_t *connection, osp_get_vts_opts_t opts, entity_t *vts)
Get filtered set of VTs from an OSP server.
void osp_vt_single_add_value(osp_vt_single_t *vt_single, const char *name, const char *value)
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 *vt_id)
Create a new single OSP VT.
int osp_get_scan(osp_connection_t *connection, const char *scan_id, char **report_xml, int details, char **error)
Get a scan from an OSP server.
int osp_get_scan_pop(osp_connection_t *connection, const char *scan_id, char **report_xml, int details, int pop_results, char **error)
Get a scan from an OSP server, optionally removing the results.
int osp_start_scan(osp_connection_t *connection, const char *target, const char *ports, GHashTable *options, const char *scan_id, char **error)
Start an OSP scan against a target.
void osp_vt_single_free(osp_vt_single_t *vt_single)
Free a single OSP VT, including all preference values.
osp_credential_t * osp_credential_new(const char *type, const char *service, const char *port)
Allocate and initialize a new OSP credential.
osp_param_t * osp_param_new(void)
Create a new OSP parameter.
osp_target_t * osp_target_new(const char *hosts, const char *ports, const char *exclude_hosts, int alive_test, int reverse_lookup_unify, int reverse_lookup_only)
Create a new OSP target.
int osp_get_version(osp_connection_t *connection, char **s_name, char **s_version, char **d_name, char **d_version, char **p_name, char **p_version)
Get the scanner version from an OSP server.
const gchar * osp_credential_get_auth_data(osp_credential_t *credential, const char *name)
Get authentication data from an OSP credential.
const char * osp_param_type_str(const osp_param_t *param)
Get an OSP parameter in string format form its type.
int osp_stop_scan(osp_connection_t *connection, const char *scan_id, char **error)
Stop a scan on an OSP server.
int osp_get_performance_ext(osp_connection_t *connection, osp_get_performance_opts_t opts, char **graph, char **error)
Get performance graphics from an OSP server.
const char * osp_param_name(const osp_param_t *param)
Get an OSP parameter's name.
int osp_param_mandatory(const osp_param_t *param)
Get an OSP parameter's mandatory value.
void osp_param_free(osp_param_t *param)
Free an OSP parameter.
int osp_get_vts_version(osp_connection_t *connection, char **vts_version, char **error)
Get the VTs version from an OSP server.
osp_scan_status_t osp_get_scan_status_ext(osp_connection_t *connection, osp_get_scan_status_opts_t opts, char **error)
Get a scan status from an OSP server.
const char * osp_param_id(const osp_param_t *param)
Get an OSP parameter's id.
const char * osp_param_default(const osp_param_t *param)
Get an OSP parameter's default value.
struct osp_connection osp_connection_t
struct osp_target osp_target_t
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
osp_scan_status_t
OSP scan status.
@ OSP_SCAN_STATUS_STOPPED
@ OSP_SCAN_STATUS_INTERRUPTED
@ OSP_SCAN_STATUS_FINISHED
@ OSP_SCAN_STATUS_RUNNING
struct osp_vt_single osp_vt_single_t
osp_connection_t * osp_connection_new(const char *, int, const char *, const char *, const char *)
struct osp_param osp_param_t
struct osp_credential osp_credential_t
osp_param_type_t
OSP parameter types.
@ OSP_PARAM_TYPE_SELECTION
@ OSP_PARAM_TYPE_PASSWORD
@ OSP_PARAM_TYPE_OVALDEF_FILE
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