92 OSCAP_DEPRECATED(
int ds_sds_decompose_custom(
const char* input_file,
const char*
id,
const char* target_dir,
const char* container_name,
const char* component_id,
const char* target_filename));
157 int ds_rds_create(
const char* sds_file,
const char* xccdf_result_file,
158 const char** oval_result_files,
const char* target_file);
287 const char** datastream_id,
const char** component_id);
306 const char *benchmark_id,
const char **datastream_id,
const char **component_ref_id);
struct ds_sds_index * ds_sds_index_new(void)
Definition: sds_index.c:222
const char * ds_stream_index_get_version(struct ds_stream_index *s)
scap-version of the the <data-stream> element the index represents.
Definition: sds_index.c:97
General OpenScap functions and types.
int ds_sds_index_select_checklist(struct ds_sds_index *s, const char **datastream_id, const char **component_id)
chooses datastream and checklist id combination given the IDs
Definition: sds_index.c:427
const char * ds_stream_index_get_timestamp(struct ds_stream_index *s)
Timestamp of creation OR modification of the <data-stream> element the index represents.
Definition: sds_index.c:92
struct rds_report_index * rds_index_get_report(struct rds_index *rds, const char *id)
Definition: rds_index.c:136
Definition: rds_report_index.c:39
Definition: rds_asset_index.c:41
int ds_sds_decompose_custom(const char *input_file, const char *id, const char *target_dir, const char *container_name, const char *component_id, const char *target_filename)
same as ds_sds_decompose but works with other components than just XCCDFs
Definition: sds.c:562
int ds_sds_compose_from_xccdf(const char *xccdf_file, const char *target_datastream)
takes given xccdf file and constructs a source datastream
Definition: sds.c:1247
void rds_report_request_index_iterator_free(struct rds_report_request_index_iterator *it)
Definition: rds_report_request_index.c:94
bool rds_report_index_iterator_has_more(struct rds_report_index_iterator *it)
Definition: rds_report_index.c:100
struct ds_sds_index * ds_sds_index_import(const char *file)
imports given source datastream and indexes it
Definition: sds_index.c:410
int ds_sds_index_select_checklist_by_benchmark_id(struct ds_sds_index *s, const char *benchmark_id, const char **datastream_id, const char **component_ref_id)
chooses datastream and checklist component ref ID combination, given benchmark ID ...
Definition: sds_index.c:475
struct ds_stream_index * ds_sds_index_get_stream(struct ds_sds_index *s, const char *stream_id)
retrieves a stream index by data-stream ID
Definition: sds_index.c:248
struct rds_index * rds_index_new(void)
Definition: rds_index.c:48
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
struct oscap_string_iterator * ds_stream_index_get_dictionaries(struct ds_stream_index *s)
Retrieves iterator over all components inside the <dictionaries> element.
Definition: sds_index.c:112
void ds_sds_index_free(struct ds_sds_index *s)
Definition: sds_index.c:232
Contains information about one particular "<data-stream>" element in the datastream collection (also ...
Definition: sds_index.c:39
bool rds_report_request_index_iterator_has_more(struct rds_report_request_index_iterator *it)
Definition: rds_report_request_index.c:89
struct rds_report_index_iterator * rds_index_get_reports(struct rds_index *s)
Definition: rds_index.c:93
struct rds_report_request_index * rds_report_request_index_iterator_next(struct rds_report_request_index_iterator *it)
Definition: rds_report_request_index.c:84
int ds_sds_compose_add_component(const char *target_datastream, const char *datastream_id, const char *new_component, bool extended)
append a new given component to the existing source datastream
Definition: sds.c:1110
void rds_report_index_iterator_free(struct rds_report_index_iterator *it)
Definition: rds_report_index.c:105
struct rds_asset_index_iterator * rds_index_get_assets(struct rds_index *s)
Definition: rds_index.c:83
struct ds_stream_index * ds_stream_index_new(void)
Definition: sds_index.c:53
Represents <data-stream-collection> element - the root element of each source datastream.
Definition: sds_index.c:215
bool ds_stream_index_iterator_has_more(struct ds_stream_index_iterator *it)
Definition: sds_index.c:513
void ds_stream_index_free(struct ds_stream_index *s)
Definition: sds_index.c:71
const char * ds_stream_index_get_id(struct ds_stream_index *s)
Gets ID of the <data-stream> element the index represents.
Definition: sds_index.c:87
void rds_asset_index_iterator_free(struct rds_asset_index_iterator *it)
Definition: rds_asset_index.c:108
struct ds_stream_index * ds_stream_index_iterator_next(struct ds_stream_index_iterator *it)
Definition: sds_index.c:508
bool rds_asset_index_iterator_has_more(struct rds_asset_index_iterator *it)
Definition: rds_asset_index.c:103
Represents <asset-report-collection> element - the root element of each result datastream in Asset Re...
Definition: rds_index.c:41
struct rds_report_index * rds_report_index_iterator_next(struct rds_report_index_iterator *it)
Definition: rds_report_index.c:95
struct rds_asset_index * rds_index_get_asset(struct rds_index *rds, const char *id)
Definition: rds_index.c:117
struct rds_index * rds_index_import(const char *file)
Definition: rds_index.c:353
int ds_sds_decompose(const char *input_file, const char *id, const char *xccdf_id, const char *target_dir, const char *target_filename)
takes given source data stream and decomposes it into separate files
Definition: sds.c:594
struct oscap_string_iterator * ds_stream_index_get_extended_components(struct ds_stream_index *s)
Retrieves iterator over all components inside the <extended-components> element.
Definition: sds_index.c:117
void rds_index_free(struct rds_index *s)
Definition: rds_index.c:58
Definition: rds_report_request_index.c:39
void ds_stream_index_iterator_free(struct ds_stream_index_iterator *it)
Definition: sds_index.c:518
struct rds_report_request_index * rds_index_get_report_request(struct rds_index *rds, const char *id)
Definition: rds_index.c:98
int ds_rds_decompose(const char *input_file, const char *report_id, const char *request_id, const char *target_dir)
Definition: rds.c:177
struct oscap_string_iterator * ds_stream_index_get_checks(struct ds_stream_index *s)
Retrieves iterator over all components inside the <checks> element.
Definition: sds_index.c:102
int rds_index_select_report(struct rds_index *s, const char **report_id)
Definition: rds_index.c:369
struct rds_report_request_index_iterator * rds_index_get_report_requests(struct rds_index *s)
Definition: rds_index.c:73
struct rds_asset_index * rds_asset_index_iterator_next(struct rds_asset_index_iterator *it)
Definition: rds_asset_index.c:98
struct oscap_string_iterator * ds_stream_index_get_checklists(struct ds_stream_index *s)
Retrieves iterator over all components inside the <checklists> element.
Definition: sds_index.c:107
int ds_rds_create(const char *sds_file, const char *xccdf_result_file, const char **oval_result_files, const char *target_file)
takes given source data stream and XCCDF result file and makes a result data stream ...
Definition: rds.c:780
struct ds_stream_index_iterator * ds_sds_index_get_streams(struct ds_sds_index *s)
retrieves all streams indexed inside this structure
Definition: sds_index.c:268