Open SCAP Library
xccdf_benchmark.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright 2009--2014 Red Hat Inc., Durham, North Carolina.
12  * Copyright (C) 2010 Tresys Technology, LLC
13  * All Rights Reserved.
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  *
29  * Authors:
30  * Lukas Kuklinek <lkuklinek@redhat.com>
31  * Josh Adams <jadams@tresys.com>
32  */
33 
34 #ifndef XCCDF_H_
35 #define XCCDF_H_
36 
37 #include <stdbool.h>
38 #include <time.h>
39 #include <oscap_reference.h>
40 #include <oscap_source.h>
41 #include <oscap.h>
42 #include "cpe_dict.h"
43 
44 /*--------------------*\
45 | Enumerations |
46 \*--------------------*/
47 
56 typedef enum {
57  XCCDF_BENCHMARK = 0x0100,
58  XCCDF_PROFILE = 0x0200,
59  XCCDF_RESULT = 0x0400,
60  XCCDF_RULE = 0x1000,
61  XCCDF_GROUP = 0x2000,
62  XCCDF_VALUE = 0x4000,
63 
70 } xccdf_type_t;
71 
73 typedef enum {
81 
83 typedef enum {
91 
93 typedef enum {
98 
100 typedef enum {
109 
111 typedef enum {
113  XCCDF_OPERATOR_OR = 0x0003,
115 
117 typedef enum {
118  XCCDF_LEVEL_NOT_DEFINED = 0,
124 } xccdf_level_t;
125 
127 typedef enum {
132 
134 typedef enum {
138 } xccdf_role_t;
139 
141 typedef enum {
142  XCCDF_WARNING_NOT_SPECIFIED,
153 
155 typedef enum {
166 
168 typedef enum {
179 
180 /*--------------------*\
181 | Typedefs |
182 \*--------------------*/
183 
187 typedef float xccdf_numeric;
188 
194 
199 struct xccdf_profile;
200 
205 struct xccdf_item;
206 
211 struct xccdf_rule;
212 
217 struct xccdf_group;
218 
223 struct xccdf_value;
224 
229 struct xccdf_result;
230 
236 struct xccdf_tailoring;
237 
238 /*--------------------*\
239 | Support structures |
240 \*--------------------*/
241 
246 struct xccdf_notice;
247 
252 struct xccdf_status;
253 
258 struct xccdf_model;
259 
264 struct xccdf_warning;
265 
270 struct xccdf_select;
271 
276 struct xccdf_setvalue;
277 
282 struct xccdf_refine_value;
283 
288 struct xccdf_refine_rule;
289 
294 struct xccdf_ident;
295 
300 struct xccdf_check;
306 
311 struct xccdf_profile_note;
312 
318 struct xccdf_check_import;
319 
325 struct xccdf_check_export;
326 
332 struct xccdf_fix;
333 
339 struct xccdf_fixtext;
340 
348 struct xccdf_value_instance;
349 
355 struct xccdf_identity;
356 
362 struct xccdf_instance;
363 
369 struct xccdf_message;
370 
376 struct xccdf_override;
377 
383 struct xccdf_rule_result;
384 
390 struct xccdf_score;
391 
397 struct xccdf_target_fact;
398 
406 
413 
420 
427 
434 
441 
448 
455 
462 
469 
476 
483 
489 
496 
503 
510 
517 
524 
531 
538 
545 
552 
559 
566 
573 
580 
587 
594 
601 
608 
615 
622 
626 struct xccdf_version_info;
627 
629 const char* xccdf_version_info_get_version(const struct xccdf_version_info* v);
631 const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v);
633 const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v);
634 
643 OSCAP_DEPRECATED(char * xccdf_detect_version(const char* file));
644 
645 /************************************************************/
646 
648 void xccdf_item_free(struct xccdf_item *item);
649 
651 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
652 
660 
667 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
668 
675 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
676 
683 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
684 
691 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
692 
699 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
700 
710 OSCAP_DEPRECATED(struct xccdf_benchmark* xccdf_benchmark_import(const char *file));
711 
719 
726 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
727 
733 struct oscap_source *xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename);
734 
742 
747 void xccdf_result_fill_sysinfo(struct xccdf_result *result);
748 
757 OSCAP_DEPRECATED(int xccdf_result_export(struct xccdf_result *result, const char *file));
758 
764 struct oscap_source *xccdf_result_export_source(struct xccdf_result *result, const char *filepath);
765 
772 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
773 
777 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
781 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
782 
788 const char * xccdf_benchmark_supported(void);
789 
792 
794 struct xccdf_profile *xccdf_profile_new(void);
796 void xccdf_profile_free(struct xccdf_item *prof);
798 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
800 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
801 
803 struct xccdf_rule *xccdf_rule_new(void);
805 void xccdf_rule_free(struct xccdf_item *rule);
807 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
809 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
810 
812 struct xccdf_group *xccdf_group_new(void);
814 void xccdf_group_free(struct xccdf_item *group);
816 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
818 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
819 
823 void xccdf_value_free(struct xccdf_item *val);
825 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
827 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
828 
830 struct xccdf_status *xccdf_status_new(void);
832 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
834 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
836 void xccdf_status_free(struct xccdf_status *status);
838 struct xccdf_notice *xccdf_notice_new(void);
840 void xccdf_notice_free(struct xccdf_notice *notice);
842 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
843 
845 struct xccdf_model *xccdf_model_new(void);
847 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
849 void xccdf_model_free(struct xccdf_model *model);
850 
852 struct xccdf_ident *xccdf_ident_new(void);
854 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
856 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
858 void xccdf_ident_free(struct xccdf_ident *ident);
859 
860 
862 struct xccdf_check *xccdf_check_new(void);
864 void xccdf_check_free(struct xccdf_check *check);
865 
867 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
869 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
871 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
874 
879 
884 
889 
894 
896 struct xccdf_fix *xccdf_fix_new(void);
898 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
900 void xccdf_fix_free(struct xccdf_fix *item);
901 
903 struct xccdf_fixtext *xccdf_fixtext_new(void);
905 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
907 void xccdf_fixtext_free(struct xccdf_fixtext *item);
908 
910 void xccdf_select_free(struct xccdf_select *sel);
912 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
914 struct xccdf_select *xccdf_select_new(void);
915 
917 struct xccdf_warning *xccdf_warning_new(void);
919 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
921 void xccdf_warning_free(struct xccdf_warning * warn);
922 
924 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
925 
928 
929 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
930 
934 void xccdf_tailoring_free(struct xccdf_tailoring *tailoring);
936 int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info);
937 
942 OSCAP_DEPRECATED(void xccdf_cleanup(void));
943 
949 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
950 
957 
963 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
964 
968 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
970 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
972 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
973 
975 struct xccdf_result *xccdf_result_new(void);
977 void xccdf_result_free(struct xccdf_result *item);
979 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
981 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
982 
986 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
989 
991 struct xccdf_identity *xccdf_identity_new(void);
993 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
995 void xccdf_identity_free(struct xccdf_identity *identity);
996 
998 struct xccdf_score *xccdf_score_new(void);
1000 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
1002 void xccdf_score_free(struct xccdf_score *score);
1003 
1005 struct xccdf_override *xccdf_override_new(void);
1007 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
1009 void xccdf_override_free(struct xccdf_override *oride);
1010 
1012 struct xccdf_message *xccdf_message_new(void);
1014 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
1016 void xccdf_message_free(struct xccdf_message *msg);
1017 
1021 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
1023 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
1024 
1031 
1033 struct xccdf_instance *xccdf_instance_new(void);
1035 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
1037 void xccdf_instance_free(struct xccdf_instance *inst);
1038 
1041 
1042 /************************************************************/
1068 
1069 
1090 
1091 
1112 
1113 
1134 
1135 
1156 
1157 
1178 
1179 
1200 
1201 
1222 
1223 
1244 
1245 
1266 
1267 
1288 
1289 
1310 
1311 
1332 
1333 
1354 
1355 
1376 
1377 
1398 
1399 
1420 
1421 
1442 
1443 
1464 
1465 
1486 
1487 
1508 
1509 
1530 
1531 
1552 
1553 
1574 
1575 
1596 
1597 
1618 
1619 
1640 
1661 
1662 
1683 
1684 
1705 
1706 /************************************************************
1707  ** @} End of Iterators group */
1708 
1709 /************************************************************/
1720 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
1724 const char *xccdf_item_get_id(const struct xccdf_item *item);
1728 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
1732 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
1736 const char *xccdf_item_get_version(const struct xccdf_item *item);
1740 const char *xccdf_item_get_extends(const struct xccdf_item *item);
1744 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
1748 struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item);
1752 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
1756 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
1760 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
1764 struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item);
1768 bool xccdf_item_get_hidden(const struct xccdf_item *item);
1772 bool xccdf_item_get_selected(const struct xccdf_item *item);
1776 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
1780 bool xccdf_item_get_abstract(const struct xccdf_item *item);
1784 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
1788 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
1792 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
1793 
1799 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
1800 
1810 const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item);
1811 
1815 struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item);
1816 
1820 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
1824 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
1828 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
1832 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
1836 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
1840 const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item);
1844 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
1848 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
1852 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
1856 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
1860 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
1864 struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark);
1868 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
1872 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
1876 struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
1880 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
1884 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
1888 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
1890 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
1892 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
1893 
1901 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
1902 
1910 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
1911 
1919 struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key);
1920 
1926 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
1927 
1933 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
1934 
1941 
1949 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
1950 
1954 struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
1955 
1959 struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark);
1960 
1964 struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark);
1965 
1969 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
1973 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
1977 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
1981 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
1985 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
1989 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
1993 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
1997 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
2001 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
2005 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
2009 struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile);
2013 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
2017 struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile);
2021 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
2025 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
2029 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
2033 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
2037 struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile);
2038 
2044 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
2045 
2049 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
2053 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
2057 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
2061 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
2065 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
2069 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
2073 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
2077 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
2081 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
2085 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
2089 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
2093 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
2097 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
2101 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
2105 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
2109 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
2113 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
2117 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
2121 struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule);
2125 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
2129 struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule);
2133 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
2137 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
2141 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
2145 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
2149 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
2153 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
2157 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
2161 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
2165 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
2169 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
2173 struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule);
2174 
2175 /*
2176  * Return group's parent in the grouping hierarchy.
2177  * Returned item will be either a group or a benchmark.
2178  * @memberof xccdf_group
2179  */
2180 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
2181 
2189 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
2190 
2192 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
2193 
2195 const char *xccdf_group_get_id(const struct xccdf_group *group);
2197 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
2199 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
2201 const char *xccdf_group_get_version(const struct xccdf_group *group);
2203 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
2205 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
2207 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
2209 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
2211 float xccdf_group_get_weight(const struct xccdf_group *group);
2213 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
2215 const char *xccdf_group_get_extends(const struct xccdf_group *group);
2217 bool xccdf_group_get_abstract(const struct xccdf_group *group);
2219 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
2221 bool xccdf_group_get_hidden(const struct xccdf_group *group);
2223 bool xccdf_group_get_selected(const struct xccdf_group *group);
2225 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
2227 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
2229 struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group);
2231 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
2233 struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group);
2235 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
2239 struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group);
2240 
2242 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
2244 const char *xccdf_value_get_id(const struct xccdf_value *value);
2246 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
2248 const char *xccdf_value_get_extends(const struct xccdf_value *value);
2250 bool xccdf_value_get_abstract(const struct xccdf_value *value);
2252 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
2254 bool xccdf_value_get_hidden(const struct xccdf_value *value);
2256 bool xccdf_value_get_interactive(const struct xccdf_value *value);
2258 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
2260 struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value);
2262 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
2264 struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value);
2272 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
2274 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
2278 struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value);
2279 
2285 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
2287 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
2293 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
2297 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
2303 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
2305 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
2309 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
2315 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
2317 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
2327 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
2329 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
2331 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
2332 
2338 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
2339 
2340 
2342 time_t xccdf_status_get_date(const struct xccdf_status *status);
2347 
2349 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
2351 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
2353 const char *xccdf_model_get_system(const struct xccdf_model *model);
2355 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
2357 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
2359 const char *xccdf_check_get_id(const struct xccdf_check *check);
2360 
2366 bool xccdf_check_get_complex(const struct xccdf_check *check);
2367 
2375 const char *xccdf_check_get_system(const struct xccdf_check *check);
2377 const char *xccdf_check_get_selector(const struct xccdf_check *check);
2379 const char *xccdf_check_get_content(const struct xccdf_check *check);
2381 bool xccdf_check_get_multicheck(const struct xccdf_check *check);
2383 bool xccdf_check_get_negate(const struct xccdf_check *check);
2385 //struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check);
2391 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
2392 
2394 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
2396 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
2398 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
2400 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
2402 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
2404 const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
2406 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
2408 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
2410 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
2411 
2413 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
2415 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
2423 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
2425 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
2427 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
2429 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
2437 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
2439 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
2441 const char *xccdf_value_get_version(const struct xccdf_value *value);
2443 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
2445 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
2447 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
2449 const char *xccdf_value_get_version_time(const struct xccdf_value *value);
2451 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
2453 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
2455 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
2456 
2458 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
2460 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
2462 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
2464 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
2466 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
2468 const char *xccdf_item_get_version_time(const struct xccdf_item *item);
2470 float xccdf_item_get_weight(const struct xccdf_item *item);
2472 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
2474 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
2475 
2479 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
2481 const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
2482 
2484 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
2486 const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile);
2488 bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile);
2490 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
2491 
2493 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
2495 const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule);
2497 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
2498 
2500 const char *xccdf_group_get_version_time(const struct xccdf_group *group);
2502 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
2504 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
2505 
2512 
2514 bool xccdf_select_get_selected(const struct xccdf_select *select);
2516 const char *xccdf_select_get_item(const struct xccdf_select *select);
2518 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
2519 
2523 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
2525 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
2527 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
2537 bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item);
2539 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
2541 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
2547 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
2549 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
2550 
2552 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
2554 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
2555 
2557 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
2559 const char *xccdf_result_get_id(const struct xccdf_result *item);
2561 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
2563 const char *xccdf_result_get_version(const struct xccdf_result *item);
2569 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
2571 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
2573 const char *xccdf_result_get_profile(const struct xccdf_result *item);
2577 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
2585 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
2595 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
2597 const char * xccdf_result_get_start_time(const struct xccdf_result *item);
2599 const char * xccdf_result_get_end_time(const struct xccdf_result *item);
2601 struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result);
2602 
2613 bool xccdf_rule_result_override(struct xccdf_rule_result *rule_result, xccdf_test_result_type_t new_result, const char *time, const char *authority, struct oscap_text *remark);
2614 
2616 const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
2620 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
2626 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
2628 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
2642 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
2644 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
2646 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
2650 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
2652 const char *xccdf_score_get_system(const struct xccdf_score *item);
2654 const char *xccdf_override_get_time(const struct xccdf_override *item);
2660 const char *xccdf_override_get_authority(const struct xccdf_override *item);
2662 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
2666 const char *xccdf_message_get_content(const struct xccdf_message *item);
2670 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
2672 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
2676 const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item);
2678 const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item);
2680 const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item);
2682 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
2684 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
2686 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
2688 struct xccdf_tailoring *xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark);
2689 /*
2690  * @memberof xccdf_tailoring
2691  * @deprecated This function has been deprecated by @ref xccdf_tailoring_import_source.
2692  * This function may be dropped from later versions of the library.
2693  */
2694 OSCAP_DEPRECATED(struct xccdf_tailoring *xccdf_tailoring_import(const char *file, struct xccdf_benchmark *benchmark));
2695 
2697 const char *xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring);
2699 const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring);
2701 const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring);
2703 const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring);
2705 const char *xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring);
2707 const char *xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring);
2709 struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring);
2713 struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring);
2715 struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring);
2723 struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id);
2724 
2725 /************************************************************
2726  ** @} End of Getters group */
2727 
2728 /************************************************************/
2736 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
2739 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
2741 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
2743 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
2745 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
2747 bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval);
2749 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
2751 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
2753 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
2755 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
2757 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
2758 
2760 bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata);
2761 
2763 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
2764 
2766 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
2768 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
2770 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
2772 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
2774 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval);
2776 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
2778 bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval);
2780 bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata);
2782 bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list);
2786 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
2788 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
2790 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
2792 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
2794 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
2796 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
2798 bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval);
2800 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
2802 bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring);
2804 bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata);
2805 
2807 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
2809 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
2811 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
2813 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
2815 bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval);
2817 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
2819 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
2821 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
2823 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
2825 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
2827 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
2829 //bool xccdf_rule_set_selector(struct xccdf_rule *item, const char * selector);
2831 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
2833 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
2835 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
2837 bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata);
2838 
2840 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
2842 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
2844 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
2846 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
2848 bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval);
2850 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
2852 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
2854 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
2856 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
2858 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
2860 bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata);
2861 
2863 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
2865 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
2867 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
2869 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
2871 bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval);
2873 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
2875 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
2877 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
2879 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
2881 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
2883 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
2885 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
2887 bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata);
2888 
2890 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
2892 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
2893 
2895 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
2897 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
2898 
2900 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
2901 
2903 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
2905 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
2907 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
2909 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
2911 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
2913 bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval);
2915 bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval);
2916 
2918 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
2920 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
2921 
2923 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
2925 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
2926 
2928 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
2930 bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
2932 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
2933 
2935 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
2937 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
2938 
2940 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
2942 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
2944 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
2946 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
2948 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
2950 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
2952 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
2954 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
2955 
2959 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
2961 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
2963 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
2965 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
2967 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
2968 
2970 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
2972 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
2973 
2977 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
2980 
2982 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
2984 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
2986 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
2993 
2997 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
2999 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
3001 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
3004 
3006 struct xccdf_setvalue *xccdf_setvalue_new(void);
3008 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
3010 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
3012 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
3014 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
3016 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
3017 
3019 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
3021 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
3023 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
3025 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
3027 bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval);
3029 bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval);
3031 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
3033 bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata);
3034 
3036 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval);
3040 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
3046 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
3048 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
3049 
3051 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
3053 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
3055 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
3056 
3058 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
3060 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
3062 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
3063 
3065 bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval);
3071 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
3073 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
3074 
3078 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
3079 
3081 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
3085 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
3087 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
3088 
3092 bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval);
3094 bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval);
3096 bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval);
3097 
3099 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
3101 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
3103 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
3104 
3106 bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char* newval);
3108 bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char* newval);
3110 bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval);
3112 bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval);
3114 bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval);
3116 bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval);
3117 
3119 bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3132 bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3134 bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark);
3135 
3136 // @memberof xccdf_ident
3137 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
3138 // @memberof xccdf_ident
3139 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
3140 
3142 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
3143 
3145 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
3147 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
3149 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
3151 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
3153 bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval);
3155 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
3157 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3159 //bool xccdf_benchmark_add_item(struct xccdf_benchmark *item, struct xccdf_item *newval);
3161 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
3163 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
3165 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
3167 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
3169 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3171 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
3173 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
3175 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
3177 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
3178 
3180 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
3182 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
3184 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
3186 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
3187 
3189 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
3191 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
3193 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
3195 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
3197 bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval);
3199 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
3200 
3202 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
3204 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
3206 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
3208 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
3210 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
3212 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
3214 bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval);
3216 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
3218 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
3220 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
3222 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
3224 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
3226 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
3228 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
3229 
3231 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
3233 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
3235 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
3237 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
3239 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
3241 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
3243 bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval);
3245 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
3247 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
3249 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
3251 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
3253 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
3255 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
3256 
3258 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
3260 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
3262 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
3264 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
3266 bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval);
3268 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
3270 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
3271 
3273 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
3275 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
3277 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
3279 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
3281 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
3283 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
3285 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
3287 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
3289 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
3293 bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3295 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
3297 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
3299 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
3301 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
3303 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
3305 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
3307 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
3309 bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3311 int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark);
3313 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
3315 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
3317 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
3319 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
3321 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
3323 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
3325 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
3327 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
3329 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
3331 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
3333 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
3335 bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval);
3337 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
3339 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
3341 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
3343 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
3344 
3346 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
3348 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
3350 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
3352 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
3354 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
3356 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
3357 
3358 /************************************************************
3359  ** @} End of Setters group */
3360 
3361 // remove operations
3362 
3423 
3424 
3425 // textual substitution interface
3426 
3432 typedef enum xccdf_subst_type {
3433  XCCDF_SUBST_NONE,
3438 
3449 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg);
3450 
3451 
3462 OSCAP_DEPRECATED(char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg));
3463 
3464 /************************************************************/
3466 
3468 #endif
void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it)
struct xccdf_check_content_ref_iterator * xccdf_check_get_content_refs(const struct xccdf_check *check)
const char * xccdf_notice_get_id(const struct xccdf_notice *notice)
XCCDF target fact.
Definition: item.h:411
const char * xccdf_benchmark_supported(void)
Get supported version of XCCDF XML.
Definition: benchmark.c:666
const char * xccdf_profile_get_version_update(const struct xccdf_profile *profile)
bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval)
void xccdf_benchmark_free(struct xccdf_benchmark *benchmark)
Definition: benchmark.c:409
struct oscap_string_iterator * xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:460
const char * xccdf_target_fact_get_value(const struct xccdf_target_fact *item)
void xccdf_identity_free(struct xccdf_identity *identity)
Definition: result.c:299
const char * xccdf_message_get_content(const struct xccdf_message *item)
const char * xccdf_check_get_selector(const struct xccdf_check *check)
Iterator over collections of strings.
bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval)
struct xccdf_value_iterator * xccdf_group_get_values(const struct xccdf_group *group)
Warning about regulatory obligations.
Definition: xccdf_benchmark.h:148
void xccdf_ident_free(struct xccdf_ident *ident)
Definition: rule.c:485
Stores content from xccdf:Tailoring element which can be loaded from a separate file.
Definition: item.h:172
Type constant for xccdf_group.
Definition: xccdf_benchmark.h:61
bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:442
void xccdf_check_export_free(struct xccdf_check_export *item)
Definition: rule.c:750
bool xccdf_rule_add_metadata(struct xccdf_rule *item, const char *metadata)
const char * xccdf_result_get_start_time(const struct xccdf_result *item)
Reference iterator.
Definition: xccdf_benchmark.h:433
bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval)
const char * xccdf_fix_get_id(const struct xccdf_fix *fix)
struct xccdf_item * xccdf_item_get_parent(const struct xccdf_item *item)
Return item&#39;s parent in the grouping hierarchy.
void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct oscap_stringlist_iterator * xccdf_group_get_requires(const struct xccdf_group *group)
Definition: rule.c:886
void xccdf_message_iterator_free(struct xccdf_message_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval)
bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_override_iterator_remove(struct xccdf_override_iterator *it)
CPE platform specification.
Definition: cpelang_priv.c:63
struct xccdf_identity * xccdf_identity_new(void)
Definition: result.c:294
bool xccdf_value_get_hidden(const struct xccdf_value *value)
bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval)
void xccdf_notice_free(struct xccdf_notice *notice)
Definition: benchmark.c:647
bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval)
bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval)
void xccdf_check_iterator_remove(struct xccdf_check_iterator *it)
bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval)
bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval)
const char * xccdf_profile_get_version_time(const struct xccdf_profile *profile)
void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct xccdf_group * xccdf_item_to_group(struct xccdf_item *item)
Convert the item to a group.
bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval)
bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval)
XCCDF refine rule option used in the profile.
Definition: item.h:260
struct xccdf_status_iterator * xccdf_value_get_statuses(const struct xccdf_value *value)
xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning)
void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it)
Return true if the list is not empty, false otherwise.
struct oscap_text * xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext)
bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval)
bool xccdf_group_set_selected(struct xccdf_group *item, bool newval)
struct xccdf_value * xccdf_value_new(xccdf_value_type_t type)
Definition: value.c:53
xccdf_level_t
XCCDF error, complexity, disruption, or severity level.
Definition: xccdf_benchmark.h:117
bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval)
XCCDF note for given rule in context of given profile.
Definition: item.h:320
bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval)
bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark *item, const struct xccdf_version_info *newval)
void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it)
bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item)
bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval)
Less than or equal.
Definition: xccdf_benchmark.h:106
Less than.
Definition: xccdf_benchmark.h:105
struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext *fixtext)
Definition: rule.c:815
xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item)
bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval)
bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval)
void xccdf_value_iterator_free(struct xccdf_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct oscap_text_iterator * xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv)
struct xccdf_plain_text * xccdf_plain_text_new(void)
Definition: benchmark.c:887
struct xccdf_rule * xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id)
Create a rule and append it to the benchmark.
Definition: benchmark.c:692
Instance iterator.
Definition: xccdf_benchmark.h:558
void xccdf_profile_free(struct xccdf_item *prof)
Definition: profile.c:472
Turn off or deinstall something.
Definition: xccdf_benchmark.h:158
const char * xccdf_result_get_benchmark_uri(const struct xccdf_result *item)
void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it)
Interface to Common Platform Enumeration (CPE) Dictionary.
bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval)
const char * xccdf_fix_get_platform(const struct xccdf_fix *fix)
bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item)
substitute a hyperlink
Definition: xccdf_benchmark.h:3435
struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result *result)
Definition: item.c:1228
struct xccdf_result * xccdf_item_to_result(struct xccdf_item *item)
Convert the item to a test result.
const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item)
Install upgrade or update the system.
Definition: xccdf_benchmark.h:163
struct xccdf_profile * xccdf_profile_iterator_next(struct xccdf_profile_iterator *it)
Return the next xccdf_profile structure from the list and increment the iterator. ...
void xccdf_item_iterator_free(struct xccdf_item_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
A collection of strings.
Definition: oscap_text.h:59
XCCDF instance.
Definition: item.h:405
Adjust target config or settings.
Definition: xccdf_benchmark.h:157
General OpenScap functions and types.
bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval)
const char * xccdf_result_get_test_system(const struct xccdf_result *item)
const char * xccdf_check_export_get_value(const struct xccdf_check_export *item)
struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group)
bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval)
struct xccdf_check_iterator * xccdf_check_get_children(const struct xccdf_check *check)
Get an iterator to nested checks of the complex check.
bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval)
bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval)
struct oscap_string_iterator * xccdf_value_instance_get_choices(const struct xccdf_value_instance *item)
bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval)
struct xccdf_benchmark * xccdf_benchmark_import_source(struct oscap_source *source)
Import the content from oscap_source into a benchmark.
Definition: benchmark.c:63
void xccdf_select_iterator_reset(struct xccdf_select_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
void xccdf_result_free(struct xccdf_result *item)
bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval)
struct xccdf_instance * xccdf_instance_iterator_next(struct xccdf_instance_iterator *it)
Return the next xccdf_instance structure from the list and increment the iterator.
struct oscap_text_iterator * xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr)
bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval)
bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval)
struct xccdf_ident * xccdf_ident_new_fill(const char *id, const char *sys)
Definition: rule.c:453
bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval)
void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it)
Return true if the list is not empty, false otherwise.
struct xccdf_refine_rule * xccdf_refine_rule_new(void)
Definition: profile.c:96
struct xccdf_setvalue_iterator * xccdf_result_get_setvalues(const struct xccdf_result *item)
bool xccdf_select_get_selected(const struct xccdf_select *select)
struct xccdf_message * xccdf_message_iterator_next(struct xccdf_message_iterator *it)
Return the next xccdf_message structure from the list and increment the iterator. ...
XCCDF scoring model.
Definition: item.h:249
bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item)
xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item)
xccdf_warning_category_t
Category of xccdf_warning.
Definition: xccdf_benchmark.h:141
XCCDF score.
Definition: item.h:370
bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval)
bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval)
struct xccdf_check_import * xccdf_check_import_clone(const struct xccdf_check_import *old_import)
Definition: rule.c:549
bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval)
bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval)
bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval)
bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval)
bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item)
void xccdf_override_free(struct xccdf_override *oride)
Definition: result.c:340
void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it)
bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires)
Definition: rule.c:896
Inequality.
Definition: xccdf_benchmark.h:102
const char * xccdf_result_get_id(const struct xccdf_result *item)
bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval)
struct xccdf_target_identifier * xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it)
Return the next xccdf_target_identifier structure from the list and increment the iterator...
struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact *tf)
Definition: item.c:1191
void xccdf_score_iterator_remove(struct xccdf_score_iterator *it)
void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval)
bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval)
bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval)
const char * xccdf_check_get_content(const struct xccdf_check *check)
void xccdf_score_iterator_free(struct xccdf_score_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
const char * xccdf_group_get_version_time(const struct xccdf_group *group)
bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval)
bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval)
bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it)
Return true if the list is not empty, false otherwise.
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.
Definition: benchmark.c:684
void xccdf_check_free(struct xccdf_check *check)
Definition: rule.c:695
const char * xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark)
bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext)
struct xccdf_select * xccdf_select_clone(const struct xccdf_select *select)
Definition: profile.c:127
struct xccdf_score * xccdf_score_new(void)
Definition: result.c:313
const char * xccdf_check_import_get_xpath(const struct xccdf_check_import *item)
xccdf_operator_t
Operator to be applied on an xccdf_value.
Definition: xccdf_benchmark.h:100
struct oscap_text * xccdf_notice_get_text(const struct xccdf_notice *notice)
void xccdf_value_iterator_remove(struct xccdf_value_iterator *it)
bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark)
Resolve an benchmark.
Definition: resolve.c:69
void xccdf_item_iterator_reset(struct xccdf_item_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
const char * xccdf_value_get_version(const struct xccdf_value *value)
void xccdf_profile_note_free(struct xccdf_profile_note *note)
Definition: rule.c:507
bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:579
const char * xccdf_group_get_id(const struct xccdf_group *group)
bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval)
const char * xccdf_benchmark_get_lang(const struct xccdf_benchmark *item)
bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval)
void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it)
void xccdf_result_iterator_remove(struct xccdf_result_iterator *it)
bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval)
struct xccdf_item_iterator * xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark)
Get an iterator to the bencmark content.
bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval)
Plain text iterator.
Definition: xccdf_benchmark.h:614
bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it)
Return true if the list is not empty, false otherwise.
struct oscap_text_iterator * xccdf_result_get_remarks(const struct xccdf_result *item)
Low.
Definition: xccdf_benchmark.h:121
bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval)
bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst)
Definition: XCCDF/elements.c:43
bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval)
bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval)
const char * xccdf_rule_get_version_update(const struct xccdf_rule *rule)
xccdf_subst_type
Type of textual substitution.
Definition: xccdf_benchmark.h:3432
void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
void xccdf_override_iterator_free(struct xccdf_override_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval)
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
struct xccdf_group * xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id)
Create a group and append it to the benchmark.
Definition: benchmark.c:676
bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval)
void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
struct xccdf_check_export * xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it)
Return the next xccdf_check_export structure from the list and increment the iterator.
bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it)
void xccdf_plain_text_free(struct xccdf_plain_text *plain)
Definition: benchmark.c:918
struct xccdf_status_iterator * xccdf_result_get_statuses(const struct xccdf_result *item)
void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval)
xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext)
struct xccdf_profile * xccdf_profile_new(void)
Definition: profile.c:199
Choice from multiple values.
Definition: xccdf_benchmark.h:75
bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval)
struct xccdf_check * xccdf_check_clone(const struct xccdf_check *old_check)
Definition: rule.c:529
bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval)
bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance)
Definition: value.c:367
bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval)
bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile)
Removes given profile from tailoring.
Definition: tailoring.c:94
bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:424
void xccdf_status_iterator_remove(struct xccdf_status_iterator *it)
struct xccdf_result * xccdf_result_new(void)
Definition: result.c:64
bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval)
bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it)
Return true if the list is not empty, false otherwise.
Top level XCCDF structure containing profiles, rules, values and results.
const char * xccdf_result_get_end_time(const struct xccdf_result *item)
bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval)
void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it)
Reset the iterator structure (it will point to the first item in the list)
bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item)
Definition: rule.c:1113
Error.
Definition: xccdf_benchmark.h:130
void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
void xccdf_warning_free(struct xccdf_warning *warn)
Definition: item.c:1071
bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item)
bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval)
xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value)
Date selection widget.
Definition: xccdf_benchmark.h:78
bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:593
Check the rule and include the result in reports, but do not include it into score computations...
Definition: xccdf_benchmark.h:136
struct xccdf_item * xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key)
Get a registered member of xccdf_benchmakr by ID.
Definition: benchmark.c:753
void xccdf_result_iterator_reset(struct xccdf_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF select option usen in the profile.
Definition: item.h:254
void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it)
void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it)
void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it)
struct oscap_source * xccdf_result_export_source(struct xccdf_result *result, const char *filepath)
Export TestResult to oscap_source structure.
Definition: result.c:705
void xccdf_value_instance_free(struct xccdf_value_instance *inst)
Definition: value.c:397
const char * xccdf_identity_get_name(const struct xccdf_identity *item)
const char * xccdf_override_get_authority(const struct xccdf_override *item)
struct xccdf_item * xccdf_item_clone(const struct xccdf_item *old_item)
Definition: item.c:139
bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval)
struct xccdf_check * xccdf_check_new(void)
Warning about hardware restrictions or possible impacts to hardware.
Definition: xccdf_benchmark.h:146
bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval)
struct xccdf_override * xccdf_override_new(void)
Definition: result.c:335
struct xccdf_fixtext * xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it)
Return the next xccdf_fixtext structure from the list and increment the iterator. ...
bool xccdf_group_set_version(struct xccdf_group *item, const char *newval)
struct xccdf_check_export_iterator * xccdf_check_get_exports(const struct xccdf_check *check)
const char * xccdf_value_get_id(const struct xccdf_value *value)
xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix)
bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval)
xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check)
Get an operator to be applied no children of the complex check.
struct xccdf_value_instance * xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector)
Definition: value.c:351
void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it)
struct xccdf_status * xccdf_status_new(void)
Definition: item.c:954
bool xccdf_group_get_hidden(const struct xccdf_group *group)
const char * xccdf_version_info_get_cpe_version(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:65
substitute cdf:instance element
Definition: xccdf_benchmark.h:3436
xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item)
struct xccdf_override * xccdf_override_clone(const struct xccdf_override *override)
Definition: item.c:1200
Warning about dependencies between this Rule and other parts of the target system.
Definition: xccdf_benchmark.h:151
const char * xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:386
int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file)
Export a benchmark to an XML stream.
Definition: benchmark.c:239
void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
float xccdf_item_get_weight(const struct xccdf_item *item)
bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it)
Return true if the list is not empty, false otherwise.
struct oscap_text * xccdf_override_get_remark(const struct xccdf_override *item)
XCCDF message.
Definition: item.h:384
bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval)
bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it)
Return true if the list is not empty, false otherwise.
struct oscap_text_iterator * xccdf_value_get_description(const struct xccdf_value *value)
bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval)
struct xccdf_instance * xccdf_instance_new(void)
Definition: result.c:547
bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval)
struct xccdf_refine_rule * xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it)
Return the next xccdf_refine_rule structure from the list and increment the iterator.
Check import iterator.
Definition: xccdf_benchmark.h:530
struct xccdf_target_fact * xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it)
Return the next xccdf_target_fact structure from the list and increment the iterator.
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:67
XCCDF set value option used in the profile.
Definition: item.h:276
bool xccdf_result_set_id(struct xccdf_result *item, const char *newval)
bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval)
const char * xccdf_value_instance_get_selector(const struct xccdf_value_instance *item)
bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval)
xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst)
bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:600
void xccdf_item_free(struct xccdf_item *item)
Definition: item.c:250
struct xccdf_plain_text * xccdf_plain_text_clone(const struct xccdf_plain_text *pt)
Definition: benchmark.c:910
bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval)
void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
void xccdf_rule_result_free(struct xccdf_rule_result *rr)
Definition: result.c:256
struct xccdf_status_iterator * xccdf_group_get_statuses(const struct xccdf_group *group)
Check export iterator.
Definition: xccdf_benchmark.h:544
struct xccdf_profile * xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id)
Definition: tailoring.c:481
void xccdf_cleanup(void)
Release library internal caches.
Definition: benchmark.c:664
bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval)
Equality.
Definition: xccdf_benchmark.h:101
struct xccdf_benchmark * xccdf_group_get_benchmark(const struct xccdf_group *group)
const char * xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item)
Definition: result.c:514
struct xccdf_check_export * xccdf_check_export_new(void)
Definition: rule.c:745
struct xccdf_identity_iterator * xccdf_result_get_identities(const struct xccdf_result *item)
struct xccdf_message_iterator * xccdf_rule_result_get_messages(const struct xccdf_rule_result *item)
Boolean.
Definition: xccdf_benchmark.h:96
struct xccdf_item * xccdf_result_to_item(struct xccdf_result *item)
bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item)
bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:451
struct xccdf_override * xccdf_override_iterator_next(struct xccdf_override_iterator *it)
Return the next xccdf_override structure from the list and increment the iterator.
struct xccdf_setvalue * xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it)
Return the next xccdf_setvalue structure from the list and increment the iterator.
Select iterator.
Definition: xccdf_benchmark.h:461
bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval)
const char * xccdf_group_get_version(const struct xccdf_group *group)
struct xccdf_result * xccdf_result_iterator_next(struct xccdf_result_iterator *it)
Return the next xccdf_result structure from the list and increment the iterator.
bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval)
bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval)
bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval)
xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext)
bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval)
bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval)
Type constant for xccdf_benchmark.
Definition: xccdf_benchmark.h:57
Warning about changes to target system performance.
Definition: xccdf_benchmark.h:145
struct xccdf_model * xccdf_model_new(void)
Definition: item.c:1008
void xccdf_model_iterator_reset(struct xccdf_model_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
struct xccdf_model * xccdf_model_iterator_next(struct xccdf_model_iterator *it)
Return the next xccdf_model structure from the list and increment the iterator.
bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval)
bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval)
bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval)
struct xccdf_item * xccdf_benchmark_to_item(struct xccdf_benchmark *item)
struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice *notice)
Definition: benchmark.c:623
bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval)
bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval)
const char * xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:376
bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_override_iterator_reset(struct xccdf_override_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Ident iterator.
Definition: xccdf_benchmark.h:495
bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item)
bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval)
bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval)
struct xccdf_status * xccdf_status_new_fill(const char *status, const char *date)
Definition: item.c:940
String iterator.
Definition: xccdf_benchmark.h:412
bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item)
struct xccdf_warning_iterator * xccdf_group_get_warnings(const struct xccdf_group *group)
struct oscap_string_iterator * xccdf_value_get_metadata(const struct xccdf_value *value)
Greater than.
Definition: xccdf_benchmark.h:103
bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval)
bool xccdf_check_get_complex(const struct xccdf_check *check)
True if the check is a complex check.
Definition: rule.c:690
void xccdf_score_free(struct xccdf_score *score)
Definition: result.c:321
bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval)
char * oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg)
Perform a textual substitution.
Definition: item.c:1306
bool xccdf_item_add_metadata(struct xccdf_item *item, const char *metadata)
bool xccdf_check_get_multicheck(const struct xccdf_check *check)
xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value)
bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval)
Rule was not selected in the Benchmark.
Definition: xccdf_benchmark.h:175
Type constant for xccdf_value.
Definition: xccdf_benchmark.h:62
const char * xccdf_item_get_version_time(const struct xccdf_item *item)
Adjust permissions or ACLs.
Definition: xccdf_benchmark.h:162
bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires)
Definition: rule.c:901
bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval)
Internationalized string iterator.
bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval)
Message iterator.
Definition: xccdf_benchmark.h:565
const char * xccdf_refine_value_get_item(const struct xccdf_refine_value *rv)
const char * xccdf_check_export_get_name(const struct xccdf_check_export *item)
void xccdf_check_iterator_reset(struct xccdf_check_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item)
bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_result_iterator_free(struct xccdf_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value *old_value)
Definition: profile.c:86
bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval)
const char * xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id)
Get a plain text by ID.
Definition: benchmark.c:557
bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval)
bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval)
bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval)
bool xccdf_group_get_selected(const struct xccdf_group *group)
bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval)
void xccdf_group_free(struct xccdf_item *group)
Definition: rule.c:261
Integer.
Definition: xccdf_benchmark.h:94
struct xccdf_profile * xccdf_profile_clone(const struct xccdf_profile *profile)
Definition: profile.c:204
bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval)
Fix iterator.
Definition: xccdf_benchmark.h:537
XCCDF simple or complex check.
Definition: item.h:286
bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval)
void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF Value allows test parametrization or capturing output of tests.
Definition: xccdf_benchmark.h:217
XCCDF rule group.
Definition: xccdf_benchmark.h:211
bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value)
xccdf_type_t
Type of an XCCDF object.
Definition: xccdf_benchmark.h:56
bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval)
void xccdf_model_iterator_remove(struct xccdf_model_iterator *it)
bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval)
XCCDF textual fix instructions.
Definition: item.h:336
bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval)
struct xccdf_ident * xccdf_ident_iterator_next(struct xccdf_ident_iterator *it)
Return the next xccdf_ident structure from the list and increment the iterator.
struct xccdf_status * xccdf_status_iterator_next(struct xccdf_status_iterator *it)
Return the next xccdf_status structure from the list and increment the iterator.
bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval)
struct xccdf_item * xccdf_rule_to_item(struct xccdf_rule *item)
struct xccdf_check_iterator * xccdf_rule_result_get_checks(const struct xccdf_rule_result *item)
struct xccdf_item * xccdf_item_iterator_next(struct xccdf_item_iterator *it)
Return the next xccdf_item structure from the list and increment the iterator.
Turn on or install something.
Definition: xccdf_benchmark.h:159
bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval)
bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval)
void xccdf_tailoring_free(struct xccdf_tailoring *tailoring)
Definition: tailoring.c:61
Medium.
Definition: xccdf_benchmark.h:122
const char * xccdf_check_import_get_name(const struct xccdf_check_import *item)
void xccdf_select_iterator_free(struct xccdf_select_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item)
xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value)
bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item)
struct xccdf_benchmark * xccdf_item_get_benchmark(const struct xccdf_item *item)
void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it)
struct xccdf_benchmark * xccdf_result_get_benchmark(const struct xccdf_result *item)
struct xccdf_notice * xccdf_notice_iterator_next(struct xccdf_notice_iterator *it)
Return the next xccdf_notice structure from the list and increment the iterator.
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:223
const char * xccdf_value_get_version_time(const struct xccdf_value *value)
Refine value iterator.
Definition: xccdf_benchmark.h:482
Refine rule iterator.
Definition: xccdf_benchmark.h:488
bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval)
struct oscap_string_iterator * xccdf_group_get_metadata(const struct xccdf_group *group)
bool xccdf_check_get_negate(const struct xccdf_check *check)
bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval)
const char * xccdf_instance_get_content(const struct xccdf_instance *item)
bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval)
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:168
Set value iterator.
Definition: xccdf_benchmark.h:475
Warning iterator.
Definition: xccdf_benchmark.h:551
xccdf_role_t
XCCDF role.
Definition: xccdf_benchmark.h:134
const char * xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst)
const char * xccdf_rule_get_version_time(const struct xccdf_rule *rule)
Accepted.
Definition: xccdf_benchmark.h:85
bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark *item, struct cpe_lang_model *cpe_lang_model)
Definition: benchmark.c:593
void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it)
Reset the iterator structure (it makes no changes to the underlying list)
Interim.
Definition: xccdf_benchmark.h:89
bool xccdf_result_add_target(struct xccdf_result *item, const char *newval)
const char * xccdf_ident_get_id(const struct xccdf_ident *ident)
void xccdf_select_free(struct xccdf_select *sel)
Definition: profile.c:156
bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item)
bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval)
Match a regular expression.
Definition: xccdf_benchmark.h:107
Greater than or equal.
Definition: xccdf_benchmark.h:104
struct xccdf_instance_iterator * xccdf_rule_result_get_instances(const struct xccdf_rule_result *item)
bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val)
Definition: result.c:406
const char * xccdf_instance_get_context(const struct xccdf_instance *item)
bool xccdf_group_add_metadata(struct xccdf_group *item, const char *metadata)
Text line input widget.
Definition: xccdf_benchmark.h:76
Status was not specified by benchmark.
Definition: xccdf_benchmark.h:84
Textarea.
Definition: xccdf_benchmark.h:77
xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item)
xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst)
bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval)
struct oscap_text_iterator * xccdf_result_get_title(const struct xccdf_result *item)
bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval)
bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval)
void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval)
const char * xccdf_version_info_get_version(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:49
const char * xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst)
bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval)
void xccdf_refine_rule_free(struct xccdf_refine_rule *obj)
Definition: profile.c:146
bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:500
struct xccdf_benchmark * xccdf_benchmark_clone(const struct xccdf_benchmark *benchmark)
Definition: benchmark.c:127
const char * xccdf_check_get_id(const struct xccdf_check *check)
void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
const char * xccdf_model_get_system(const struct xccdf_model *model)
xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix)
struct xccdf_status_iterator * xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:470
const char * xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:381
bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval)
bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval)
bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval)
bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval)
bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str)
Definition: result.c:394
bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it)
Reset the iterator structure (it will point to the first item in the list)
bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval)
bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval)
char * xccdf_detect_version(const char *file)
Starts parsing given XCCDF benchmark file to detect its version, stops as soon as the version is foun...
Definition: XCCDF/elements.c:133
float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item)
XCCDF check export.
Definition: item.h:315
bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval)
void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it)
struct xccdf_profile_note * xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it)
Return the next xccdf_profile_note structure from the list and increment the iterator.
xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst)
struct xccdf_identity * xccdf_identity_iterator_next(struct xccdf_identity_iterator *it)
Return the next xccdf_identity structure from the list and increment the iterator.
struct xccdf_fixtext * xccdf_fixtext_new(void)
Definition: rule.c:810
bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval)
bool xccdf_item_set_selected(struct xccdf_item *item, bool newval)
bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it)
Return true if the list is not empty, false otherwise.
struct xccdf_profile_iterator * xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark XCCDF profiles.
bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item)
Definition: profile.c:115
struct oscap_string_iterator * xccdf_group_get_conflicts(const struct xccdf_group *group)
Definition: rule.c:870
struct xccdf_plain_text * xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it)
Return the next xccdf_plain_text structure from the list and increment the iterator.
bool xccdf_group_get_abstract(const struct xccdf_group *group)
bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval)
bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF override.
Definition: item.h:376
bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval)
void xccdf_status_iterator_free(struct xccdf_status_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval)
xccdf_value_type_t
Type of an xccdf_value.
Definition: xccdf_benchmark.h:93
void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval)
bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct xccdf_value * xccdf_value_clone(const struct xccdf_value *value)
Definition: value.c:58
xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status)
bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval)
bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it)
Return true if the list is not empty, false otherwise.
const char * xccdf_fix_get_content(const struct xccdf_fix *fix)
bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval)
const char * xccdf_score_get_system(const struct xccdf_score *item)
struct xccdf_item * xccdf_value_to_item(struct xccdf_value *item)
xccdf_status_type_t
Status of an XCCDF item.
Definition: xccdf_benchmark.h:83
enum xccdf_subst_type xccdf_subst_type_t
Type of textual substitution.
struct xccdf_group * xccdf_group_clone(const struct xccdf_group *group)
Definition: rule.c:194
struct xccdf_result * xccdf_result_clone(const struct xccdf_result *result)
Definition: result.c:75
bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval)
Info.
Definition: xccdf_benchmark.h:120
bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:433
const char * xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:396
struct xccdf_benchmark * xccdf_benchmark_import(const char *file)
Import the content from a specified XML stream into a benchmark.
Definition: benchmark.c:55
Value instance iterator.
Definition: xccdf_benchmark.h:586
Definition: reference_priv.h:35
Type constant for xccdf_result.
Definition: xccdf_benchmark.h:59
bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval)
XCCDF identity.
Definition: item.h:362
Definition: item.h:115
bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring)
struct xccdf_item * xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id)
Get benchmark xccdf:Item by ID.
void xccdf_fix_free(struct xccdf_fix *item)
Definition: rule.c:848
bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval)
void xccdf_target_fact_free(struct xccdf_target_fact *fact)
Definition: result.c:376
Represents selectable items, i.e. rules and groups (see xccdf_item)
Definition: xccdf_benchmark.h:65
XCCDF target fact.
Definition: item.h:389
bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval)
struct xccdf_warning * xccdf_warning_clone(const struct xccdf_warning *old_warning)
Definition: item.c:216
const char * xccdf_rule_result_get_idref(const struct xccdf_rule_result *item)
struct oscap_reference_iterator * xccdf_group_get_references(const struct xccdf_group *group)
Definition: item.c:923
Check the rule and let the result contriburte to the score and appear in reports. ...
Definition: xccdf_benchmark.h:135
bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval)
bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval)
Represents items as described in the XCCDF documentation (see xccdf_item)
Definition: xccdf_benchmark.h:67
The test failed.
Definition: xccdf_benchmark.h:170
Deprecated.
Definition: xccdf_benchmark.h:86
void * xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item)
Definition: result.c:470
const char * xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:401
struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity *identity)
Definition: item.c:1182
const char * xccdf_result_get_version(const struct xccdf_result *item)
bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval)
struct xccdf_warning * xccdf_warning_iterator_next(struct xccdf_warning_iterator *it)
Return the next xccdf_warning structure from the list and increment the iterator. ...
void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
const char * xccdf_result_get_profile(const struct xccdf_result *item)
bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval)
Structure representing a CPE dictionary.
Definition: cpedict_priv.h:126
Profile note iterator.
Definition: xccdf_benchmark.h:509
Could not tell what happened.
Definition: xccdf_benchmark.h:172
Type constant for xccdf_profile.
Definition: xccdf_benchmark.h:58
struct xccdf_item * xccdf_rule_get_parent(const struct xccdf_rule *rule)
Return rule&#39;s parent in the grouping hierarchy.
bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:406
const struct xccdf_version_info * xccdf_item_get_schema_version(struct xccdf_item *item)
Retrieves the XCCDF version of top-level benchmark item.
struct xccdf_check_export * xccdf_check_export_clone(const struct xccdf_check_export *old_export)
Definition: rule.c:560
xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst)
void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it)
bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group)
Strategy not defined.
Definition: xccdf_benchmark.h:156
Rule did not apply to test target.
Definition: xccdf_benchmark.h:173
void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct xccdf_rule * xccdf_item_to_rule(struct xccdf_item *item)
Convert the item to a rule.
bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval)
bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts)
Definition: rule.c:914
Definition: oscap_source.c:62
bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval)
struct xccdf_notice * xccdf_notice_new(void)
Definition: benchmark.c:616
bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts)
Definition: rule.c:919
struct oscap_string_iterator * xccdf_result_get_targets(const struct xccdf_result *item)
xccdf_message_severity_t
Severity of an xccdf_message.
Definition: xccdf_benchmark.h:127
bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval)
Remediation by changing policies/procedures.
Definition: xccdf_benchmark.h:161
struct xccdf_value_instance_iterator * xccdf_value_get_instances(const struct xccdf_value *item)
Select iterator.
Definition: xccdf_benchmark.h:468
struct oscap_reference_iterator * xccdf_value_get_references(const struct xccdf_value *value)
Definition: item.c:921
struct xccdf_check_content_ref * xccdf_check_content_ref_new(void)
Definition: rule.c:716
struct oscap_text_iterator * xccdf_group_get_question(const struct xccdf_group *group)
bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval)
void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule *rr)
const char * xccdf_version_info_get_namespace_uri(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:57
Profile iterator.
Definition: xccdf_benchmark.h:454
const char * xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark)
bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval)
const char * xccdf_override_get_time(const struct xccdf_override *item)
bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval)
struct xccdf_rule * xccdf_rule_new(void)
Definition: rule.c:289
void xccdf_score_iterator_reset(struct xccdf_score_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
struct xccdf_target_identifier_iterator * xccdf_result_get_target_id_refs(const struct xccdf_result *item)
struct xccdf_benchmark * xccdf_benchmark_new(void)
Definition: benchmark.c:97
struct xccdf_benchmark * xccdf_rule_get_benchmark(const struct xccdf_rule *rule)
const char * xccdf_fix_get_system(const struct xccdf_fix *fix)
Warning about impacts to the mgmt or administration of the target system.
Definition: xccdf_benchmark.h:149
float xccdf_group_get_weight(const struct xccdf_group *group)
xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext)
const char * xccdf_check_get_system(const struct xccdf_check *check)
struct oscap_text * xccdf_warning_get_text(const struct xccdf_warning *warning)
void xccdf_status_free(struct xccdf_status *status)
Definition: item.c:972
bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval)
bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval)
XCCDF rule result.
Definition: item.h:345
struct oscap_string_iterator * xccdf_group_get_platforms(const struct xccdf_group *group)
void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval)
bool xccdf_group_set_id(struct xccdf_group *item, const char *newval)
bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata)
bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval)
void xccdf_result_fill_sysinfo(struct xccdf_result *result)
Collect system info and store it in the TestResult.
Definition: result.c:171
bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval)
time_t xccdf_status_get_date(const struct xccdf_status *status)
bool xccdf_value_get_interactive(const struct xccdf_value *value)
struct xccdf_item * xccdf_value_get_parent(const struct xccdf_value *value)
Return value&#39;s parent in the grouping hierarchy.
bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item)
void xccdf_value_iterator_reset(struct xccdf_value_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval)
struct xccdf_value * xccdf_item_to_value(struct xccdf_item *item)
Convert the item to a value.
struct xccdf_value_instance * xccdf_value_new_instance(struct xccdf_value *val)
Definition: value.c:409
bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval)
bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval)
struct xccdf_check_content_ref * xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it)
Return the next xccdf_check_content_ref structure from the list and increment the iterator...
struct xccdf_rule_result * xccdf_rule_result_new(void)
Definition: result.c:248
const char * xccdf_rule_result_get_version(const struct xccdf_rule_result *item)
void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval)
const char * xccdf_instance_get_parent_context(const struct xccdf_instance *item)
Model iterator.
Definition: xccdf_benchmark.h:440
void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
const char * xccdf_value_instance_get_value(const struct xccdf_value_instance *val)
struct xccdf_status * xccdf_status_clone(const struct xccdf_status *old_status)
Definition: item.c:207
const char * xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item)
Definition: result.c:536
bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval)
struct oscap_string_iterator * xccdf_result_get_platforms(const struct xccdf_result *item)
struct xccdf_warning_iterator * xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark)
XCCDF item status.
Definition: item.h:244
bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval)
void xccdf_message_iterator_reset(struct xccdf_message_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval)
const char * xccdf_value_get_extends(const struct xccdf_value *value)
No interface hint.
Definition: xccdf_benchmark.h:74
XCCDF rule ident URI.
Definition: item.h:281
struct xccdf_group * xccdf_group_new(void)
Definition: rule.c:189
bool xccdf_value_set_version(struct xccdf_value *item, const char *newval)
bool xccdf_value_get_abstract(const struct xccdf_value *value)
struct oscap_string_iterator * xccdf_result_get_metadata(const struct xccdf_result *result)
const char * xccdf_group_get_cluster_id(const struct xccdf_group *group)
void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
void xccdf_check_iterator_free(struct xccdf_check_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
struct xccdf_fix * xccdf_fix_iterator_next(struct xccdf_fix_iterator *it)
Return the next xccdf_fix structure from the list and increment the iterator.
bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval)
bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval)
xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item)
bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it)
Return true if the list is not empty, false otherwise.
struct oscap_text_iterator * xccdf_select_get_remarks(const struct xccdf_select *select)
bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval)
XCCDF rule defines a test execution.
Definition: xccdf_benchmark.h:205
bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval)
bool xccdf_benchmark_add_metadata(struct xccdf_benchmark *item, const char *metadata)
void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_value_add_metadata(struct xccdf_value *item, const char *metadata)
struct xccdf_fix_iterator * xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item)
bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:522
bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval)
bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval)
const char * xccdf_plain_text_get_id(const struct xccdf_plain_text *item)
struct xccdf_refine_value * xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it)
Return the next xccdf_refine_value structure from the list and increment the iterator.
substitute cdf:sub element
Definition: xccdf_benchmark.h:3434
xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule *rr)
void xccdf_rule_free(struct xccdf_item *rule)
Definition: rule.c:386
bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval)
bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval)
bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval)
const char * xccdf_ident_get_system(const struct xccdf_ident *ident)
void xccdf_refine_value_free(struct xccdf_refine_value *rv)
Definition: profile.c:136
void xccdf_instance_free(struct xccdf_instance *inst)
Definition: result.c:554
bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Rule did not cause any evaluation by the checking engine.
Definition: xccdf_benchmark.h:174
const char * xccdf_profile_get_note_tag(const struct xccdf_profile *profile)
struct xccdf_ident_iterator * xccdf_rule_result_get_idents(const struct xccdf_rule_result *item)
Override iterator.
Definition: xccdf_benchmark.h:572
bool xccdf_item_set_version(struct xccdf_item *item, const char *newval)
bool xccdf_rule_result_override(struct xccdf_rule_result *rule_result, xccdf_test_result_type_t new_result, const char *time, const char *authority, struct oscap_text *remark)
Override the result of rule-result.
Definition: result.c:1163
bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval)
Representation of internationalizable character strings.
Definition: text_priv.h:47
bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval)
Rule was evaluated by the checking engine, but isn&#39;t to be scored.
Definition: xccdf_benchmark.h:176
void xccdf_target_identifier_free(struct xccdf_target_identifier *ti)
Definition: result.c:438
struct oscap_text_iterator * xccdf_item_get_question(const struct xccdf_item *item)
const char * xccdf_plain_text_get_text(const struct xccdf_plain_text *item)
bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval)
bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval)
struct xccdf_message * xccdf_message_new(void)
Definition: result.c:355
struct xccdf_model * xccdf_model_clone(const struct xccdf_model *old_model)
Definition: item.c:997
bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval)
const char * xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item)
Definition: result.c:492
void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval)
struct xccdf_item_iterator * xccdf_group_get_content(const struct xccdf_group *group)
Get an iterator to the group content.
const char * xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext)
String iterator.
bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval)
struct oscap_text_iterator * xccdf_group_get_description(const struct xccdf_group *group)
struct xccdf_check_content_ref * xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref)
Definition: rule.c:569
Logical or.
Definition: xccdf_benchmark.h:113
bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval)
int xccdf_result_export(struct xccdf_result *result, const char *file)
Export a TestResult to an XML stream.
Definition: result.c:717
struct oscap_text_iterator * xccdf_value_get_title(const struct xccdf_value *value)
bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val)
Definition: result.c:399
xccdf_strategy_t
Fix strategy type.
Definition: xccdf_benchmark.h:155
bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval)
struct xccdf_profile_iterator * xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:465
struct oscap_text_iterator * xccdf_value_get_question(const struct xccdf_value *value)
int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark)
Definition: result_scoring.c:284
struct oscap_reference_iterator * xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:475
bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval)
struct xccdf_check_import_iterator * xccdf_check_get_imports(const struct xccdf_check *check)
struct xccdf_benchmark * xccdf_value_get_benchmark(const struct xccdf_value *value)
const char * xccdf_value_instance_get_match(const struct xccdf_value_instance *inst)
bool xccdf_profile_add_metadata(struct xccdf_profile *item, const char *metadata)
bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval)
bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result)
Definition: benchmark.c:461
void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it)
void xccdf_fixtext_free(struct xccdf_fixtext *item)
Definition: rule.c:839
struct xccdf_result * xccdf_result_import_source(struct oscap_source *source)
Import the content of oscap_source into a xccdf_result.
Definition: result.c:601
const char * xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref)
bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval)
bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval)
General-purpose warning.
Definition: xccdf_benchmark.h:143
xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item)
bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item)
An error occurred and test could not complete.
Definition: xccdf_benchmark.h:171
const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule *rr)
bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval)
bool xccdf_item_set_id(struct xccdf_item *item, const char *newval)
struct xccdf_model_iterator * xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark scoring models.
struct oscap_text_iterator * xccdf_group_get_title(const struct xccdf_group *group)
Type constant for xccdf_rule.
Definition: xccdf_benchmark.h:60
bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval)
bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval)
int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info)
Definition: tailoring.c:359
xccdf_interface_hint_t
Interface hint.
Definition: xccdf_benchmark.h:73
struct oscap_reference_iterator * xccdf_group_get_dc_statuses(const struct xccdf_group *group)
Definition: item.c:924
struct xccdf_fix * xccdf_fix_new(void)
Definition: rule.c:771
bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst)
XCCDF profile is a set of tests and their settings in a compact package.
Definition: xccdf_benchmark.h:193
bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval)
bool xccdf_result_set_version(struct xccdf_result *item, const char *newval)
bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval)
Notice iterator.
Definition: xccdf_benchmark.h:419
struct xccdf_target_identifier * xccdf_target_identifier_new(void)
Definition: result.c:417
struct xccdf_select * xccdf_select_iterator_next(struct xccdf_select_iterator *it)
Return the next xccdf_select structure from the list and increment the iterator.
bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval)
Textual fix iterator.
Definition: xccdf_benchmark.h:516
void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref)
Definition: rule.c:721
struct xccdf_message * xccdf_message_clone(const struct xccdf_message *message)
Definition: item.c:1211
struct xccdf_score * xccdf_score_clone(const struct xccdf_score *score)
Definition: item.c:1247
bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval)
struct oscap_string_iterator * xccdf_value_get_sources(const struct xccdf_value *value)
void xccdf_value_free(struct xccdf_item *val)
Definition: value.c:263
bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval)
const char * xccdf_check_import_get_content(const struct xccdf_check_import *item)
bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval)
Override iterator.
Definition: xccdf_benchmark.h:607
struct xccdf_check * xccdf_check_iterator_next(struct xccdf_check_iterator *it)
Return the next xccdf_check structure from the list and increment the iterator.
const char * xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:391
xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule *rr)
struct xccdf_score * xccdf_score_iterator_next(struct xccdf_score_iterator *it)
Return the next xccdf_score structure from the list and increment the iterator.
bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item)
struct xccdf_benchmark * xccdf_item_to_benchmark(struct xccdf_item *item)
Convert the item to a benchmark.
bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval)
bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval)
struct xccdf_refine_value * xccdf_refine_value_new(void)
Definition: profile.c:79
Combo of two or more of the above.
Definition: xccdf_benchmark.h:164
struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule *rule)
Definition: rule.c:294
xccdf_bool_operator_t
Boolean operators for logical expressions.
Definition: xccdf_benchmark.h:111
Unknown.
Definition: xccdf_benchmark.h:119
bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item)
struct oscap_source * xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename)
Export a benchmark to a source object.
Definition: benchmark.c:227
XCCDF automatic fix.
Definition: item.h:325
void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it)
XCCDF check import.
Definition: item.h:309
struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule *old_rule)
Definition: profile.c:103
struct xccdf_value * xccdf_value_iterator_next(struct xccdf_value_iterator *it)
Return the next xccdf_value structure from the list and increment the iterator.
bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval)
struct oscap_text_iterator * xccdf_item_get_rationale(const struct xccdf_item *item)
Warning about legal implications.
Definition: xccdf_benchmark.h:147
bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:415
struct xccdf_rule_result_iterator * xccdf_result_get_rule_results(const struct xccdf_result *item)
bool xccdf_identity_get_authenticated(const struct xccdf_identity *item)
bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item)
const char * xccdf_value_get_cluster_id(const struct xccdf_value *value)
Check content references iterator.
Definition: xccdf_benchmark.h:523
bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval)
bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts)
Definition: rule.c:909
bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval)
xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item)
The item is not complete.
Definition: xccdf_benchmark.h:88
bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval)
struct oscap_text_iterator * xccdf_group_get_rationale(const struct xccdf_group *group)
struct xccdf_target_fact * xccdf_target_fact_new(void)
Definition: result.c:371
struct xccdf_check_import * xccdf_check_import_new(void)
Definition: rule.c:730
bool xccdf_value_set_oper(struct xccdf_value *item, xccdf_operator_t oper)
Definition: value.c:272
const char * xccdf_value_get_version_update(const struct xccdf_value *value)
const char * xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref)
Rule failed, but was later fixed.
Definition: xccdf_benchmark.h:177
struct xccdf_plain_text * xccdf_plain_text_new_fill(const char *id, const char *text)
Definition: benchmark.c:892
void xccdf_select_iterator_remove(struct xccdf_select_iterator *it)
bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval)
bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval)
struct xccdf_ident * xccdf_ident_clone(const struct xccdf_ident *ident)
Definition: rule.c:440
Don&#39;t check the rule, result will be XCCDF_RESULT_UNKNOWN.
Definition: xccdf_benchmark.h:137
bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value)
struct xccdf_override_iterator * xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item)
bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_identity_get_privileged(const struct xccdf_identity *item)
bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it)
Return true if the list is not empty, false otherwise.
void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
Check iterator.
Definition: xccdf_benchmark.h:502
bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group)
struct oscap_string_iterator * xccdf_item_get_platforms(const struct xccdf_item *item)
void xccdf_model_iterator_free(struct xccdf_model_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier *ti)
Definition: result.c:422
xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item)
void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it)
String.
Definition: xccdf_benchmark.h:95
bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval)
bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval)
bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval)
bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval)
bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:478
Can be either <target-id-ref> or some other element.
Definition: item.h:395
bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item)
Definition: benchmark.c:545
bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule)
bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval)
const char * xccdf_group_get_version_update(const struct xccdf_group *group)
struct xccdf_check_import * xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it)
Return the next xccdf_check_import structure from the list and increment the iterator.
bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval)
bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it)
Return true if the list is not empty, false otherwise.
bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval)
void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
void xccdf_check_import_free(struct xccdf_check_import *item)
Definition: rule.c:735
bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval)
void xccdf_item_iterator_remove(struct xccdf_item_iterator *it)
bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval)
struct xccdf_tailoring * xccdf_tailoring_new(void)
Definition: tailoring.c:39
bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void *node)
Definition: result.c:454
void xccdf_model_free(struct xccdf_model *model)
Definition: item.c:1041
Info.
Definition: xccdf_benchmark.h:128
struct xccdf_notice_iterator * xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark legal notices.
void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it)
High.
Definition: xccdf_benchmark.h:123
xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix)
bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval)
const char * xccdf_select_get_item(const struct xccdf_select *select)
void xccdf_message_free(struct xccdf_message *msg)
Definition: result.c:360
Result iterator.
Definition: xccdf_benchmark.h:447
Draft item.
Definition: xccdf_benchmark.h:87
struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value)
XCCDF benchmark legal notice.
Definition: item.h:239
float xccdf_numeric
Type of a numerical content for a XCCDF value.
Definition: xccdf_benchmark.h:187
void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it)
bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval)
void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile)
bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval)
struct xccdf_value_instance * xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it)
Return the next xccdf_value_instance structure from the list and increment the iterator.
bool xccdf_fix_get_reboot(const struct xccdf_fix *fix)
const char * xccdf_status_type_to_text(xccdf_status_type_t id)
Definition: item.c:959
struct xccdf_ident * xccdf_ident_new(void)
Definition: rule.c:448
struct xccdf_select * xccdf_select_new(void)
Definition: profile.c:120
struct xccdf_item * xccdf_profile_to_item(struct xccdf_profile *item)
struct oscap_string_iterator * xccdf_result_get_organizations(const struct xccdf_result *item)
bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval)
const char * xccdf_item_get_version_update(const struct xccdf_item *item)
bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval)
const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value *rv)
Apply a patch, hotfix, or update.
Definition: xccdf_benchmark.h:160
bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval)
bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval)
bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval)
void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
void xccdf_status_iterator_reset(struct xccdf_status_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
struct xccdf_fix * xccdf_fix_clone(const struct xccdf_fix *old_fix)
Definition: rule.c:777
The test passed.
Definition: xccdf_benchmark.h:169
void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it)
bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval)
Warning about possible impacts to functionality.
Definition: xccdf_benchmark.h:144
bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF warning.
Definition: item.h:234
void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it)
struct xccdf_item * xccdf_group_to_item(struct xccdf_group *item)
const char * xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note)
bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark)
Definition: resolve.c:420
bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval)
struct xccdf_warning_iterator * xccdf_item_get_warnings(const struct xccdf_item *item)
bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it)
Return true if the list is not empty, false otherwise.
struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance *instance)
Definition: item.c:1219
xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value *rv)
bool xccdf_value_set_id(struct xccdf_value *item, const char *newval)
bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval)
void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval)
void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
const struct xccdf_version_info * xccdf_benchmark_supported_schema_version(void)
Definition: benchmark.c:671
struct xccdf_score_iterator * xccdf_result_get_scores(const struct xccdf_result *item)
bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval)
xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item)
struct xccdf_target_fact_iterator * xccdf_result_get_target_facts(const struct xccdf_result *item)
A base class for XCCDF items.
Definition: item.h:221
struct oscap_string_iterator * xccdf_result_get_applicable_platforms(const struct xccdf_result *item)
Logical and.
Definition: xccdf_benchmark.h:112
bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval)
struct xccdf_warning_iterator * xccdf_value_get_warnings(const struct xccdf_value *value)
struct oscap_reference_iterator * xccdf_value_get_dc_statuses(const struct xccdf_value *value)
Definition: item.c:922
void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF refine value option used in the profile.
Definition: item.h:269
Represents an object, profile, result or whole benchmark (see xccdf_item)
Definition: xccdf_benchmark.h:69
bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval)
bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval)
Warning.
Definition: xccdf_benchmark.h:129
Warning about impacts to audit or logging.
Definition: xccdf_benchmark.h:150
bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval)
struct xccdf_warning * xccdf_warning_new(void)
Definition: item.c:1056
bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark *item, struct cpe_dict_model *cpe_list)
Definition: benchmark.c:570
const char * xccdf_target_fact_get_name(const struct xccdf_target_fact *item)
const char * xccdf_item_get_cluster_id(const struct xccdf_item *item)
xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item)
struct xccdf_rule_result * xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it)
Return the next xccdf_rule_result structure from the list and increment the iterator.
struct xccdf_tailoring * xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark)
Definition: tailoring.c:208
bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval)
bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile)
Definition: tailoring.c:83
bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval)
struct oscap_text * xccdf_profile_note_get_text(const struct xccdf_profile_note *note)
struct xccdf_profile_note * xccdf_profile_note_new(void)
Definition: rule.c:494
bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires)
Definition: rule.c:891
XCCDF check content reference.
Definition: item.h:304
Status iterator.
Definition: xccdf_benchmark.h:426
xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item)
Date and time selection widget.
Definition: xccdf_benchmark.h:79
void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
const char * xccdf_group_get_extends(const struct xccdf_group *group)
struct xccdf_profile * xccdf_item_to_profile(struct xccdf_item *item)
Convert the item to a profile.
char *(* xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg)
Textual substitution callback.
Definition: xccdf_benchmark.h:3449
void xccdf_message_iterator_remove(struct xccdf_message_iterator *it)
struct oscap_string_iterator * xccdf_result_get_target_addresses(const struct xccdf_result *item)
bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval)