Open SCAP Library
|
Open-scap XCCDF library interface.
#include <stdbool.h>
#include <time.h>
#include <oscap_reference.h>
#include <oscap_source.h>
#include <oscap.h>
#include "cpe_dict.h"
Go to the source code of this file.
Typedefs | |
typedef float | xccdf_numeric |
Type of a numerical content for a XCCDF value. | |
Functions | |
bool | xccdf_benchmark_resolve (struct xccdf_benchmark *benchmark) |
Resolve an benchmark. More... | |
void | xccdf_setvalue_free (struct xccdf_setvalue *sv) |
void | xccdf_cleanup (void) |
Release library internal caches. More... | |
struct xccdf_group * | xccdf_benchmark_append_new_group (struct xccdf_benchmark *, const char *id) |
Create a group and append it to the benchmark. More... | |
struct xccdf_value * | xccdf_benchmark_append_new_value (struct xccdf_benchmark *, const char *id, xccdf_value_type_t type) |
Create a value and append it to the benchmark. More... | |
struct xccdf_rule * | xccdf_benchmark_append_new_rule (struct xccdf_benchmark *, const char *id) |
Create a rule and append it to the benchmark. More... | |
Getters | |
Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. | |
struct xccdf_item * | xccdf_group_get_parent (const struct xccdf_group *group) |
struct xccdf_tailoring * | xccdf_tailoring_import (const char *file, struct xccdf_benchmark *benchmark) |
Setters | |
Parameters of set functions are duplicated in memory and need to be freed by caller. | |
enum | xccdf_subst_type { XCCDF_SUBST_NONE, XCCDF_SUBST_SUB, XCCDF_SUBST_LINK, XCCDF_SUBST_INSTANCE } |
Type of textual substitution. More... | |
typedef enum xccdf_subst_type | xccdf_subst_type_t |
Type of textual substitution. More... | |
typedef char *(* | xccdf_substitution_func )(xccdf_subst_type_t type, const char *id, void *arg) |
Textual substitution callback. More... | |
void | xccdf_ident_set_id (struct xccdf_ident *ident, const char *id) |
void | xccdf_ident_set_system (struct xccdf_ident *ident, const char *sys) |
char * | oscap_text_xccdf_substitute (const char *text, xccdf_substitution_func cb, void *arg) |
Perform a textual substitution. More... | |