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 #include "oscap_export.h"
44 
45 /*--------------------*\
46 | Enumerations |
47 \*--------------------*/
48 
57 typedef enum {
58  XCCDF_BENCHMARK = 0x0100,
59  XCCDF_PROFILE = 0x0200,
60  XCCDF_RESULT = 0x0400,
61  XCCDF_RULE = 0x1000,
62  XCCDF_GROUP = 0x2000,
63  XCCDF_VALUE = 0x4000,
64 
71 } xccdf_type_t;
72 
74 typedef enum {
82 
84 typedef enum {
92 
94 typedef enum {
99 
101 typedef enum {
110 
112 typedef enum {
114  XCCDF_OPERATOR_OR = 0x0003,
116 
118 typedef enum {
119  XCCDF_LEVEL_NOT_DEFINED = 0,
125 } xccdf_level_t;
126 
128 typedef enum {
133 
135 typedef enum {
139 } xccdf_role_t;
140 
142 typedef enum {
143  XCCDF_WARNING_NOT_SPECIFIED,
154 
156 typedef enum {
167 
169 typedef enum {
180 
184 enum {
185  OSCAP_PROFILE_MATCH_OK = 0, // successful profile ID match
186  OSCAP_PROFILE_NO_MATCH = 1, // no profile ID was matched
187  OSCAP_PROFILE_MULTIPLE_MATCHES = 2, // multiple profile IDs were matched
188 };
189 
190 /*--------------------*\
191 | Typedefs |
192 \*--------------------*/
193 
197 typedef float xccdf_numeric;
198 
204 
209 struct xccdf_profile;
210 
215 struct xccdf_item;
216 
221 struct xccdf_rule;
222 
227 struct xccdf_group;
228 
233 struct xccdf_value;
234 
239 struct xccdf_result;
240 
246 struct xccdf_tailoring;
247 
248 /*--------------------*\
249 | Support structures |
250 \*--------------------*/
251 
256 struct xccdf_notice;
257 
262 struct xccdf_status;
263 
268 struct xccdf_model;
269 
274 struct xccdf_warning;
275 
280 struct xccdf_select;
281 
286 struct xccdf_setvalue;
287 
292 struct xccdf_refine_value;
293 
298 struct xccdf_refine_rule;
299 
304 struct xccdf_ident;
305 
310 struct xccdf_check;
316 
321 struct xccdf_profile_note;
322 
328 struct xccdf_check_import;
329 
335 struct xccdf_check_export;
336 
342 struct xccdf_fix;
343 
349 struct xccdf_fixtext;
350 
358 struct xccdf_value_instance;
359 
365 struct xccdf_identity;
366 
372 struct xccdf_instance;
373 
379 struct xccdf_message;
380 
386 struct xccdf_override;
387 
393 struct xccdf_rule_result;
394 
400 struct xccdf_score;
401 
407 struct xccdf_target_fact;
408 
416 
423 
430 
437 
444 
451 
458 
465 
472 
479 
486 
493 
499 
506 
513 
520 
527 
534 
541 
548 
555 
562 
569 
576 
583 
590 
597 
604 
611 
618 
625 
632 
636 struct xccdf_version_info;
637 
639 OSCAP_API const char* xccdf_version_info_get_version(const struct xccdf_version_info* v);
641 OSCAP_API const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v);
643 OSCAP_API const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v);
644 
645 /************************************************************/
646 
648 OSCAP_API void xccdf_item_free(struct xccdf_item *item);
649 
651 OSCAP_API struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
652 
659 OSCAP_API struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
660 
667 OSCAP_API struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
668 
675 OSCAP_API struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
676 
683 OSCAP_API struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
684 
691 OSCAP_API struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
692 
699 OSCAP_API struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
700 
707 OSCAP_API struct xccdf_benchmark* xccdf_benchmark_import_source(struct oscap_source *source);
708 
715 OSCAP_API int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
716 
722 OSCAP_API struct oscap_source *xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename);
723 
730 OSCAP_API struct xccdf_result *xccdf_result_import_source(struct oscap_source *source);
731 
736 OSCAP_API void xccdf_result_fill_sysinfo(struct xccdf_result *result);
737 
743 OSCAP_API struct oscap_source *xccdf_result_export_source(struct xccdf_result *result, const char *filepath);
744 
750 OSCAP_API struct oscap_source *xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath);
751 
758 OSCAP_API bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
759 
761 OSCAP_API struct xccdf_benchmark *xccdf_benchmark_new(void);
763 OSCAP_API void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
765 OSCAP_API struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
767 OSCAP_API struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
768 
774 OSCAP_API const char * xccdf_benchmark_supported(void);
775 
777 OSCAP_API const struct xccdf_version_info *xccdf_benchmark_supported_schema_version(void);
778 
780 OSCAP_API struct xccdf_profile *xccdf_profile_new(void);
782 OSCAP_API void xccdf_profile_free(struct xccdf_item *prof);
784 OSCAP_API struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
786 OSCAP_API struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
787 
789 OSCAP_API struct xccdf_rule *xccdf_rule_new(void);
791 OSCAP_API void xccdf_rule_free(struct xccdf_item *rule);
793 OSCAP_API struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
795 OSCAP_API struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
796 
798 OSCAP_API struct xccdf_group *xccdf_group_new(void);
800 OSCAP_API void xccdf_group_free(struct xccdf_item *group);
802 OSCAP_API struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
804 OSCAP_API struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
805 
807 OSCAP_API struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
809 OSCAP_API void xccdf_value_free(struct xccdf_item *val);
811 OSCAP_API struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
813 OSCAP_API struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
814 
816 OSCAP_API struct xccdf_status *xccdf_status_new(void);
818 OSCAP_API struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
820 OSCAP_API struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
822 OSCAP_API void xccdf_status_free(struct xccdf_status *status);
824 OSCAP_API struct xccdf_notice *xccdf_notice_new(void);
826 OSCAP_API void xccdf_notice_free(struct xccdf_notice *notice);
828 OSCAP_API struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
829 
831 OSCAP_API struct xccdf_model *xccdf_model_new(void);
833 OSCAP_API struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
835 OSCAP_API void xccdf_model_free(struct xccdf_model *model);
836 
838 OSCAP_API struct xccdf_ident *xccdf_ident_new(void);
840 OSCAP_API struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
842 OSCAP_API struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
844 OSCAP_API void xccdf_ident_free(struct xccdf_ident *ident);
845 
846 
848 OSCAP_API struct xccdf_check *xccdf_check_new(void);
850 OSCAP_API void xccdf_check_free(struct xccdf_check *check);
851 
853 OSCAP_API struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
855 OSCAP_API struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
857 OSCAP_API struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
859 OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
860 
862 OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
864 OSCAP_API void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
865 
867 OSCAP_API struct xccdf_profile_note *xccdf_profile_note_new(void);
869 OSCAP_API void xccdf_profile_note_free(struct xccdf_profile_note *note);
870 
872 OSCAP_API struct xccdf_check_import *xccdf_check_import_new(void);
874 OSCAP_API void xccdf_check_import_free(struct xccdf_check_import *item);
875 
877 OSCAP_API struct xccdf_check_export *xccdf_check_export_new(void);
879 OSCAP_API void xccdf_check_export_free(struct xccdf_check_export *item);
880 
882 OSCAP_API struct xccdf_fix *xccdf_fix_new(void);
884 OSCAP_API struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
886 OSCAP_API void xccdf_fix_free(struct xccdf_fix *item);
887 
889 OSCAP_API struct xccdf_fixtext *xccdf_fixtext_new(void);
891 OSCAP_API struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
893 OSCAP_API void xccdf_fixtext_free(struct xccdf_fixtext *item);
894 
896 OSCAP_API void xccdf_select_free(struct xccdf_select *sel);
898 OSCAP_API struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
900 OSCAP_API struct xccdf_select *xccdf_select_new(void);
901 
903 OSCAP_API struct xccdf_warning *xccdf_warning_new(void);
905 OSCAP_API struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
907 OSCAP_API void xccdf_warning_free(struct xccdf_warning * warn);
908 
910 OSCAP_API void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
911 
913 OSCAP_API void xccdf_refine_value_free(struct xccdf_refine_value *rv);
914 
915 OSCAP_API void xccdf_setvalue_free(struct xccdf_setvalue *sv);
916 
918 OSCAP_API struct xccdf_tailoring *xccdf_tailoring_new(void);
920 OSCAP_API void xccdf_tailoring_free(struct xccdf_tailoring *tailoring);
922 OSCAP_API int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info);
923 
929 OSCAP_API struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
930 
936 OSCAP_API struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
937 
943 OSCAP_API struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
944 
954 OSCAP_API const char *xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status);
955 
965 OSCAP_API const char *xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status);
966 
968 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new(void);
970 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
972 OSCAP_API void xccdf_plain_text_free(struct xccdf_plain_text *plain);
974 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
975 
977 OSCAP_API struct xccdf_result *xccdf_result_new(void);
979 OSCAP_API void xccdf_result_free(struct xccdf_result *item);
981 OSCAP_API struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
983 OSCAP_API struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
984 
986 OSCAP_API struct xccdf_rule_result *xccdf_rule_result_new(void);
988 OSCAP_API struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
990 OSCAP_API void xccdf_rule_result_free(struct xccdf_rule_result *rr);
991 
993 OSCAP_API struct xccdf_identity *xccdf_identity_new(void);
995 OSCAP_API struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
997 OSCAP_API void xccdf_identity_free(struct xccdf_identity *identity);
998 
1000 OSCAP_API struct xccdf_score *xccdf_score_new(void);
1002 OSCAP_API struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
1004 OSCAP_API void xccdf_score_free(struct xccdf_score *score);
1005 
1007 OSCAP_API struct xccdf_override *xccdf_override_new(void);
1009 OSCAP_API struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
1011 OSCAP_API void xccdf_override_free(struct xccdf_override *oride);
1012 
1014 OSCAP_API struct xccdf_message *xccdf_message_new(void);
1016 OSCAP_API struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
1018 OSCAP_API void xccdf_message_free(struct xccdf_message *msg);
1019 
1021 OSCAP_API struct xccdf_target_fact *xccdf_target_fact_new(void);
1023 OSCAP_API struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
1025 OSCAP_API void xccdf_target_fact_free(struct xccdf_target_fact *fact);
1026 
1028 OSCAP_API struct xccdf_target_identifier *xccdf_target_identifier_new(void);
1030 OSCAP_API struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier * ti);
1032 OSCAP_API void xccdf_target_identifier_free(struct xccdf_target_identifier *ti);
1033 
1035 OSCAP_API struct xccdf_instance *xccdf_instance_new(void);
1037 OSCAP_API struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
1039 OSCAP_API void xccdf_instance_free(struct xccdf_instance *inst);
1040 
1042 OSCAP_API struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item);
1043 
1044 /************************************************************/
1054 OSCAP_API struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
1059 OSCAP_API bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
1064 OSCAP_API void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
1069 OSCAP_API void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
1070 
1071 
1076 OSCAP_API struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
1081 OSCAP_API bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
1086 OSCAP_API void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
1091 OSCAP_API void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
1092 
1093 
1098 OSCAP_API struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
1103 OSCAP_API bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
1108 OSCAP_API void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
1113 OSCAP_API void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
1114 
1115 
1120 OSCAP_API struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
1125 OSCAP_API bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
1130 OSCAP_API void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
1135 OSCAP_API void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
1136 
1137 
1142 OSCAP_API struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
1147 OSCAP_API bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
1152 OSCAP_API void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
1157 OSCAP_API void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
1158 
1159 
1169 OSCAP_API bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
1174 OSCAP_API void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
1179 OSCAP_API void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
1180 
1181 
1186 OSCAP_API struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
1191 OSCAP_API bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
1196 OSCAP_API void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
1201 OSCAP_API void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
1202 
1203 
1218 OSCAP_API void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
1223 OSCAP_API void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
1224 
1225 
1246 
1247 
1268 
1269 
1274 OSCAP_API struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
1279 OSCAP_API bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
1284 OSCAP_API void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
1289 OSCAP_API void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
1290 
1291 
1296 OSCAP_API struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
1301 OSCAP_API bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
1306 OSCAP_API void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
1311 OSCAP_API void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
1312 
1313 
1334 
1335 
1356 
1357 
1378 
1379 
1400 
1401 
1406 OSCAP_API struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
1411 OSCAP_API bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
1416 OSCAP_API void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
1421 OSCAP_API void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
1422 
1423 
1433 OSCAP_API bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
1438 OSCAP_API void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
1443 OSCAP_API void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
1444 
1445 
1455 OSCAP_API bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
1460 OSCAP_API void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
1465 OSCAP_API void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
1466 
1467 
1482 OSCAP_API void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
1487 OSCAP_API void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
1488 
1489 
1499 OSCAP_API bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
1504 OSCAP_API void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
1509 OSCAP_API void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
1510 
1511 
1526 OSCAP_API void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
1531 OSCAP_API void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
1532 
1533 
1548 OSCAP_API void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
1553 OSCAP_API void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
1554 
1555 
1576 
1577 
1598 
1599 
1604 OSCAP_API struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
1609 OSCAP_API bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
1614 OSCAP_API void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
1619 OSCAP_API void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
1620 
1621 
1642 
1663 
1664 
1685 
1686 
1691 OSCAP_API struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
1696 OSCAP_API bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
1701 OSCAP_API void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
1706 OSCAP_API void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
1707 
1708 /************************************************************
1709  ** @} End of Iterators group */
1710 
1711 /************************************************************/
1722 OSCAP_API xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
1726 OSCAP_API const char *xccdf_item_get_id(const struct xccdf_item *item);
1730 OSCAP_API struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
1734 OSCAP_API struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
1738 OSCAP_API const char *xccdf_item_get_version(const struct xccdf_item *item);
1742 OSCAP_API const char *xccdf_item_get_extends(const struct xccdf_item *item);
1746 OSCAP_API struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
1750 OSCAP_API struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item);
1754 OSCAP_API struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
1758 OSCAP_API struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
1762 OSCAP_API struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
1766 OSCAP_API struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item);
1770 OSCAP_API bool xccdf_item_get_hidden(const struct xccdf_item *item);
1774 OSCAP_API bool xccdf_item_get_selected(const struct xccdf_item *item);
1778 OSCAP_API bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
1782 OSCAP_API bool xccdf_item_get_abstract(const struct xccdf_item *item);
1786 OSCAP_API struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
1790 OSCAP_API const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
1794 OSCAP_API struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
1795 
1801 OSCAP_API struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
1802 
1812 OSCAP_API const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item);
1813 
1817 OSCAP_API struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item);
1818 
1822 OSCAP_API struct xccdf_profile *xccdf_benchmark_get_profile_by_id(struct xccdf_benchmark *benchmark, const char *profile_id);
1826 OSCAP_API const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
1830 OSCAP_API bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
1834 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
1838 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
1842 OSCAP_API const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
1846 OSCAP_API const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item);
1850 OSCAP_API const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
1854 OSCAP_API const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
1858 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
1862 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
1866 OSCAP_API struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
1870 OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark);
1874 OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
1878 OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
1882 OSCAP_API struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
1886 OSCAP_API struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
1890 OSCAP_API struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
1894 OSCAP_API struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
1896 OSCAP_API bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
1898 OSCAP_API const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
1899 
1907 OSCAP_API const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
1908 
1916 OSCAP_API struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
1917 
1925 OSCAP_API struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key);
1926 
1932 OSCAP_API struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
1933 
1939 OSCAP_API struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
1940 
1946 OSCAP_API struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
1947 
1955 OSCAP_API struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
1956 
1960 OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
1961 
1965 OSCAP_API struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark);
1966 
1970 OSCAP_API struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark);
1971 
1975 OSCAP_API const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
1979 OSCAP_API struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
1983 OSCAP_API struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
1987 OSCAP_API const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
1991 OSCAP_API const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
1995 OSCAP_API struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
1999 OSCAP_API bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
2003 OSCAP_API bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
2007 OSCAP_API struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
2011 OSCAP_API struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
2015 OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile);
2019 OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
2023 OSCAP_API struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile);
2027 OSCAP_API struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
2031 OSCAP_API struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
2035 OSCAP_API struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
2039 OSCAP_API struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
2043 OSCAP_API struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile);
2044 
2050 OSCAP_API struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
2051 
2055 OSCAP_API const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
2059 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
2063 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
2067 OSCAP_API const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
2071 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
2075 OSCAP_API struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
2079 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
2083 OSCAP_API const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
2087 OSCAP_API float xccdf_rule_get_weight(const struct xccdf_rule *rule);
2091 OSCAP_API bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
2095 OSCAP_API const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
2099 OSCAP_API bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
2103 OSCAP_API bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
2107 OSCAP_API bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
2111 OSCAP_API bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
2115 OSCAP_API bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
2119 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
2123 OSCAP_API struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
2127 OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule);
2131 OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
2135 OSCAP_API struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule);
2139 OSCAP_API const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
2143 OSCAP_API xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
2147 OSCAP_API xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
2151 OSCAP_API struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
2155 OSCAP_API struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
2159 OSCAP_API struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
2163 OSCAP_API struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
2167 OSCAP_API struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
2171 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
2175 OSCAP_API struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
2179 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule);
2180 
2181 /*
2182  * Return group's parent in the grouping hierarchy.
2183  * Returned item will be either a group or a benchmark.
2184  * @memberof xccdf_group
2185  */
2186 OSCAP_API struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
2187 
2195 OSCAP_API struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
2196 
2198 OSCAP_API struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
2199 
2201 OSCAP_API const char *xccdf_group_get_id(const struct xccdf_group *group);
2203 OSCAP_API struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
2205 OSCAP_API struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
2207 OSCAP_API const char *xccdf_group_get_version(const struct xccdf_group *group);
2209 OSCAP_API struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
2211 OSCAP_API struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
2213 OSCAP_API struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
2215 OSCAP_API const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
2217 OSCAP_API float xccdf_group_get_weight(const struct xccdf_group *group);
2219 OSCAP_API bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
2221 OSCAP_API const char *xccdf_group_get_extends(const struct xccdf_group *group);
2223 OSCAP_API bool xccdf_group_get_abstract(const struct xccdf_group *group);
2225 OSCAP_API bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
2227 OSCAP_API bool xccdf_group_get_hidden(const struct xccdf_group *group);
2229 OSCAP_API bool xccdf_group_get_selected(const struct xccdf_group *group);
2231 OSCAP_API struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
2233 OSCAP_API struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
2235 OSCAP_API struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group);
2237 OSCAP_API struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
2239 OSCAP_API struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group);
2241 OSCAP_API struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
2243 OSCAP_API struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
2245 OSCAP_API struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group);
2246 
2248 OSCAP_API struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
2250 OSCAP_API const char *xccdf_value_get_id(const struct xccdf_value *value);
2252 OSCAP_API struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
2254 OSCAP_API const char *xccdf_value_get_extends(const struct xccdf_value *value);
2256 OSCAP_API bool xccdf_value_get_abstract(const struct xccdf_value *value);
2258 OSCAP_API bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
2260 OSCAP_API bool xccdf_value_get_hidden(const struct xccdf_value *value);
2262 OSCAP_API bool xccdf_value_get_interactive(const struct xccdf_value *value);
2264 OSCAP_API struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
2266 OSCAP_API struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value);
2268 OSCAP_API struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
2270 OSCAP_API struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value);
2272 OSCAP_API xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
2274 OSCAP_API xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
2276 OSCAP_API xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
2278 OSCAP_API struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
2280 OSCAP_API bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
2282 OSCAP_API struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
2284 OSCAP_API struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value);
2285 
2287 OSCAP_API void xccdf_value_instance_free(struct xccdf_value_instance *inst);
2289 OSCAP_API struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
2291 OSCAP_API const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
2293 OSCAP_API bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
2295 OSCAP_API xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item);
2297 OSCAP_API bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
2299 OSCAP_API bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
2301 OSCAP_API bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
2303 OSCAP_API bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
2305 OSCAP_API xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst);
2307 OSCAP_API bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
2309 OSCAP_API const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
2311 OSCAP_API bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
2313 OSCAP_API bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
2315 OSCAP_API bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
2317 OSCAP_API xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst);
2319 OSCAP_API bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
2321 OSCAP_API const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
2323 OSCAP_API bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
2325 OSCAP_API xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst);
2327 OSCAP_API bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
2329 OSCAP_API xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst);
2331 OSCAP_API bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
2333 OSCAP_API const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
2335 OSCAP_API bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
2337 OSCAP_API const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
2338 
2344 OSCAP_API struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
2345 
2346 
2348 OSCAP_API time_t xccdf_status_get_date(const struct xccdf_status *status);
2350 OSCAP_API xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
2352 OSCAP_API const char *xccdf_status_type_to_text(xccdf_status_type_t id);
2353 
2355 OSCAP_API const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
2357 OSCAP_API struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
2359 OSCAP_API const char *xccdf_model_get_system(const struct xccdf_model *model);
2361 OSCAP_API const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
2363 OSCAP_API const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
2365 OSCAP_API const char *xccdf_check_get_id(const struct xccdf_check *check);
2366 
2372 OSCAP_API bool xccdf_check_get_complex(const struct xccdf_check *check);
2373 
2379 OSCAP_API xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
2381 OSCAP_API const char *xccdf_check_get_system(const struct xccdf_check *check);
2383 OSCAP_API const char *xccdf_check_get_selector(const struct xccdf_check *check);
2385 OSCAP_API const char *xccdf_check_get_content(const struct xccdf_check *check);
2387 OSCAP_API bool xccdf_check_get_multicheck(const struct xccdf_check *check);
2389 OSCAP_API bool xccdf_check_get_negate(const struct xccdf_check *check);
2391 //struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check);
2397 OSCAP_API struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
2398 
2400 OSCAP_API const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
2402 OSCAP_API const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
2404 OSCAP_API const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
2406 OSCAP_API struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
2408 OSCAP_API const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
2410 OSCAP_API const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
2412 OSCAP_API const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
2414 OSCAP_API const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
2416 OSCAP_API const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
2417 
2419 OSCAP_API const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
2421 OSCAP_API bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
2423 OSCAP_API xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
2425 OSCAP_API xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
2427 OSCAP_API xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
2429 OSCAP_API const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
2431 OSCAP_API const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
2433 OSCAP_API const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
2435 OSCAP_API bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
2437 OSCAP_API xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
2439 OSCAP_API xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
2441 OSCAP_API xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
2443 OSCAP_API const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
2445 OSCAP_API struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
2447 OSCAP_API const char *xccdf_value_get_version(const struct xccdf_value *value);
2449 OSCAP_API struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
2451 OSCAP_API struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
2453 OSCAP_API const char *xccdf_value_get_version_update(const struct xccdf_value *value);
2455 OSCAP_API const char *xccdf_value_get_version_time(const struct xccdf_value *value);
2457 OSCAP_API struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
2459 OSCAP_API struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
2461 OSCAP_API const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
2462 
2464 OSCAP_API struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
2466 OSCAP_API struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
2468 OSCAP_API struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
2470 OSCAP_API const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
2472 OSCAP_API const char *xccdf_item_get_version_update(const struct xccdf_item *item);
2474 OSCAP_API const char *xccdf_item_get_version_time(const struct xccdf_item *item);
2476 OSCAP_API float xccdf_item_get_weight(const struct xccdf_item *item);
2478 OSCAP_API struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
2480 OSCAP_API struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
2481 
2483 OSCAP_API struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
2485 OSCAP_API const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
2487 OSCAP_API const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
2488 
2490 OSCAP_API const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
2492 OSCAP_API const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile);
2494 OSCAP_API bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile);
2496 OSCAP_API const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
2497 
2499 OSCAP_API const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
2501 OSCAP_API const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule);
2503 OSCAP_API struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
2504 
2506 OSCAP_API const char *xccdf_group_get_version_time(const struct xccdf_group *group);
2508 OSCAP_API const char *xccdf_group_get_version_update(const struct xccdf_group *group);
2510 OSCAP_API struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
2511 
2513 OSCAP_API struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
2515 OSCAP_API struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
2517 OSCAP_API struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
2518 
2520 OSCAP_API bool xccdf_select_get_selected(const struct xccdf_select *select);
2522 OSCAP_API const char *xccdf_select_get_item(const struct xccdf_select *select);
2524 OSCAP_API struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
2525 
2527 OSCAP_API xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
2529 OSCAP_API struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
2531 OSCAP_API const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
2533 OSCAP_API const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
2535 OSCAP_API xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
2537 OSCAP_API xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
2539 OSCAP_API struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
2541 OSCAP_API xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
2543 OSCAP_API bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item);
2545 OSCAP_API const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
2547 OSCAP_API const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
2549 OSCAP_API xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
2551 OSCAP_API struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
2553 OSCAP_API const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
2555 OSCAP_API const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
2556 
2558 OSCAP_API const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
2560 OSCAP_API const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
2561 
2563 OSCAP_API struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
2565 OSCAP_API const char *xccdf_result_get_id(const struct xccdf_result *item);
2567 OSCAP_API struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
2569 OSCAP_API const char *xccdf_result_get_version(const struct xccdf_result *item);
2571 OSCAP_API struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
2573 OSCAP_API struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
2575 OSCAP_API const char *xccdf_result_get_test_system(const struct xccdf_result *item);
2577 OSCAP_API const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
2579 OSCAP_API const char *xccdf_result_get_profile(const struct xccdf_result *item);
2581 OSCAP_API struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
2583 OSCAP_API struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
2585 OSCAP_API struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
2587 OSCAP_API struct oscap_string_iterator *xccdf_result_get_applicable_platforms(const struct xccdf_result *item);
2589 OSCAP_API struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
2591 OSCAP_API struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
2593 OSCAP_API struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
2595 OSCAP_API struct xccdf_target_identifier_iterator *xccdf_result_get_target_id_refs(const struct xccdf_result *item);
2597 OSCAP_API struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
2599 OSCAP_API struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
2601 OSCAP_API struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
2603 OSCAP_API const char * xccdf_result_get_start_time(const struct xccdf_result *item);
2605 OSCAP_API const char * xccdf_result_get_end_time(const struct xccdf_result *item);
2607 OSCAP_API struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result);
2608 
2619 OSCAP_API 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);
2620 
2622 OSCAP_API const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
2624 OSCAP_API xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
2626 OSCAP_API float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
2628 OSCAP_API xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
2630 OSCAP_API xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
2632 OSCAP_API const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
2634 OSCAP_API const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
2636 OSCAP_API struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
2638 OSCAP_API struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
2640 OSCAP_API struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
2642 OSCAP_API struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
2644 OSCAP_API struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
2646 OSCAP_API struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
2648 OSCAP_API bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
2650 OSCAP_API bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
2652 OSCAP_API const char *xccdf_identity_get_name(const struct xccdf_identity *item);
2654 OSCAP_API xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
2656 OSCAP_API xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
2658 OSCAP_API const char *xccdf_score_get_system(const struct xccdf_score *item);
2660 OSCAP_API const char *xccdf_override_get_time(const struct xccdf_override *item);
2662 OSCAP_API xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
2664 OSCAP_API xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
2666 OSCAP_API const char *xccdf_override_get_authority(const struct xccdf_override *item);
2668 OSCAP_API struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
2670 OSCAP_API xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
2672 OSCAP_API const char *xccdf_message_get_content(const struct xccdf_message *item);
2674 OSCAP_API xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
2676 OSCAP_API const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
2678 OSCAP_API const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
2680 OSCAP_API void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item);
2682 OSCAP_API const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item);
2684 OSCAP_API const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item);
2686 OSCAP_API const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item);
2688 OSCAP_API const char *xccdf_instance_get_context(const struct xccdf_instance *item);
2690 OSCAP_API const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
2692 OSCAP_API const char *xccdf_instance_get_content(const struct xccdf_instance *item);
2694 OSCAP_API struct xccdf_tailoring *xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark);
2696 OSCAP_API const char *xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring);
2698 OSCAP_API const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring);
2700 OSCAP_API const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring);
2702 OSCAP_API const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring);
2704 OSCAP_API const char *xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring);
2706 OSCAP_API const char *xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring);
2708 OSCAP_API struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring);
2710 OSCAP_API struct xccdf_profile_iterator *xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring);
2712 OSCAP_API struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring);
2714 OSCAP_API struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring);
2722 OSCAP_API struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id);
2723 
2724 /************************************************************
2725  ** @} End of Getters group */
2726 
2727 /************************************************************/
2735 OSCAP_API bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
2738 OSCAP_API bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
2740 OSCAP_API bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
2742 OSCAP_API bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
2744 OSCAP_API bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
2746 OSCAP_API bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval);
2748 OSCAP_API bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
2750 OSCAP_API bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
2752 OSCAP_API bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
2754 OSCAP_API bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
2756 OSCAP_API bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
2757 
2759 OSCAP_API bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata);
2760 
2762 OSCAP_API bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
2763 
2765 OSCAP_API bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
2767 OSCAP_API bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
2769 OSCAP_API bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
2771 OSCAP_API bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
2773 OSCAP_API bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval);
2775 OSCAP_API bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
2777 OSCAP_API bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval);
2779 OSCAP_API bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata);
2781 OSCAP_API bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list);
2783 OSCAP_API bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark* item, struct cpe_lang_model* cpe_lang_model);
2785 OSCAP_API bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
2787 OSCAP_API bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
2789 OSCAP_API bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
2791 OSCAP_API bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
2793 OSCAP_API bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
2795 OSCAP_API bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
2797 OSCAP_API bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval);
2799 OSCAP_API bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
2801 OSCAP_API bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring);
2803 OSCAP_API bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata);
2804 
2806 OSCAP_API bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
2808 OSCAP_API bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
2810 OSCAP_API bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
2812 OSCAP_API bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
2814 OSCAP_API bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval);
2816 OSCAP_API bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
2818 OSCAP_API bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
2820 OSCAP_API bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
2822 OSCAP_API bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
2824 OSCAP_API bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
2826 OSCAP_API bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
2828 //bool xccdf_rule_set_selector(struct xccdf_rule *item, const char * selector);
2830 OSCAP_API bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
2832 OSCAP_API bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
2834 OSCAP_API bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
2836 OSCAP_API bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata);
2837 
2839 OSCAP_API bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
2841 OSCAP_API bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
2843 OSCAP_API bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
2845 OSCAP_API bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
2847 OSCAP_API bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval);
2849 OSCAP_API bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
2851 OSCAP_API bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
2853 OSCAP_API bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
2855 OSCAP_API bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
2857 OSCAP_API bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
2859 OSCAP_API bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata);
2860 
2862 OSCAP_API bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
2864 OSCAP_API bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
2866 OSCAP_API bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
2868 OSCAP_API bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
2870 OSCAP_API bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval);
2872 OSCAP_API bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
2874 OSCAP_API bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
2876 OSCAP_API bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
2878 OSCAP_API bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
2880 OSCAP_API bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
2882 OSCAP_API bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
2884 OSCAP_API bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
2886 OSCAP_API bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata);
2887 
2889 OSCAP_API bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
2891 OSCAP_API bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
2892 
2894 OSCAP_API bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
2896 OSCAP_API bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
2897 
2899 OSCAP_API bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
2900 
2902 OSCAP_API bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
2904 OSCAP_API bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
2906 OSCAP_API bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
2908 OSCAP_API bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
2910 OSCAP_API bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
2912 OSCAP_API bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval);
2914 OSCAP_API bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval);
2915 
2917 OSCAP_API bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
2919 OSCAP_API bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
2920 
2922 OSCAP_API bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
2924 OSCAP_API bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
2925 
2927 OSCAP_API bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
2929 OSCAP_API bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
2931 OSCAP_API bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
2932 
2934 OSCAP_API bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
2936 OSCAP_API bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
2937 
2939 OSCAP_API bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
2941 OSCAP_API bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
2943 OSCAP_API bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
2945 OSCAP_API bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
2947 OSCAP_API bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
2949 OSCAP_API bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
2951 OSCAP_API bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
2953 OSCAP_API bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
2954 
2956 OSCAP_API bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
2958 OSCAP_API bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
2960 OSCAP_API bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
2962 OSCAP_API bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
2964 OSCAP_API bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
2966 OSCAP_API bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
2967 
2969 OSCAP_API bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
2971 OSCAP_API bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
2972 
2974 OSCAP_API bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
2976 OSCAP_API bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
2978 OSCAP_API struct xccdf_refine_rule *xccdf_refine_rule_new(void);
2979 
2981 OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
2983 OSCAP_API bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
2985 OSCAP_API bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
2987 OSCAP_API bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
2989 OSCAP_API bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
2991 OSCAP_API bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
2992 
2994 OSCAP_API struct xccdf_refine_value *xccdf_refine_value_new(void);
2996 OSCAP_API struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
2998 OSCAP_API bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
3000 OSCAP_API bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
3002 OSCAP_API bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
3003 
3005 OSCAP_API struct xccdf_setvalue *xccdf_setvalue_new(void);
3007 OSCAP_API struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
3009 OSCAP_API bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
3011 OSCAP_API bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
3013 OSCAP_API bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
3015 OSCAP_API bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
3016 
3018 OSCAP_API bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
3020 OSCAP_API bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
3022 OSCAP_API bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
3024 OSCAP_API bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
3026 OSCAP_API bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval);
3028 OSCAP_API bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval);
3030 OSCAP_API bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
3032 OSCAP_API bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata);
3033 
3035 OSCAP_API bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval);
3037 OSCAP_API bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
3039 OSCAP_API bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
3041 OSCAP_API bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
3043 OSCAP_API bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
3045 OSCAP_API bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
3047 OSCAP_API bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
3048 
3050 OSCAP_API bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
3052 OSCAP_API bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
3054 OSCAP_API bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
3055 
3057 OSCAP_API bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
3059 OSCAP_API bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
3061 OSCAP_API bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
3062 
3064 OSCAP_API bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval);
3066 OSCAP_API bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
3068 OSCAP_API bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
3070 OSCAP_API bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
3072 OSCAP_API bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
3073 
3075 OSCAP_API bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
3077 OSCAP_API bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
3078 
3080 OSCAP_API bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
3082 OSCAP_API bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
3084 OSCAP_API bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
3086 OSCAP_API bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
3087 
3089 OSCAP_API bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node);
3091 OSCAP_API bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval);
3093 OSCAP_API bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval);
3095 OSCAP_API bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval);
3096 
3098 OSCAP_API bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
3100 OSCAP_API bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
3102 OSCAP_API bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
3103 
3105 OSCAP_API bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char* newval);
3107 OSCAP_API bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char* newval);
3109 OSCAP_API bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval);
3111 OSCAP_API bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval);
3113 OSCAP_API bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval);
3115 OSCAP_API bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval);
3116 
3118 OSCAP_API bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3131 OSCAP_API bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3133 OSCAP_API bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark);
3134 
3135 // @memberof xccdf_ident
3136 OSCAP_API void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
3137 // @memberof xccdf_ident
3138 OSCAP_API void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
3139 
3141 OSCAP_API bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
3142 
3144 OSCAP_API bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
3146 OSCAP_API bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
3148 OSCAP_API bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
3150 OSCAP_API bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
3152 OSCAP_API bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval);
3154 OSCAP_API bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
3156 OSCAP_API bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3158 //bool xccdf_benchmark_add_item(struct xccdf_benchmark *item, struct xccdf_item *newval);
3160 OSCAP_API bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
3162 OSCAP_API bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
3164 OSCAP_API bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
3166 OSCAP_API bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
3168 OSCAP_API bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3170 OSCAP_API bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
3172 OSCAP_API bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
3174 OSCAP_API bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
3176 OSCAP_API bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
3177 
3179 OSCAP_API bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
3181 OSCAP_API bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
3183 OSCAP_API bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
3185 OSCAP_API bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
3186 
3188 OSCAP_API bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
3190 OSCAP_API bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
3192 OSCAP_API bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
3194 OSCAP_API bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
3196 OSCAP_API bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval);
3198 OSCAP_API bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
3199 
3201 OSCAP_API bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
3203 OSCAP_API bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
3205 OSCAP_API bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
3207 OSCAP_API bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
3209 OSCAP_API bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
3211 OSCAP_API bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
3213 OSCAP_API bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval);
3215 OSCAP_API bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
3217 OSCAP_API bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
3219 OSCAP_API bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
3221 OSCAP_API bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
3223 OSCAP_API bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
3225 OSCAP_API bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
3227 OSCAP_API bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
3228 
3230 OSCAP_API bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
3232 OSCAP_API bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
3234 OSCAP_API bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
3236 OSCAP_API bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
3238 OSCAP_API bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
3240 OSCAP_API bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
3242 OSCAP_API bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval);
3244 OSCAP_API bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
3246 OSCAP_API bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
3248 OSCAP_API bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
3250 OSCAP_API bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
3252 OSCAP_API bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
3254 OSCAP_API bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
3255 
3257 OSCAP_API bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
3259 OSCAP_API bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
3261 OSCAP_API bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
3263 OSCAP_API bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
3265 OSCAP_API bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval);
3267 OSCAP_API bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
3269 OSCAP_API bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
3270 
3272 OSCAP_API bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
3274 OSCAP_API bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
3276 OSCAP_API bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
3278 OSCAP_API bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
3280 OSCAP_API bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
3282 OSCAP_API bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
3284 OSCAP_API bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
3286 OSCAP_API bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
3288 OSCAP_API bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
3290 OSCAP_API bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval);
3292 OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3294 OSCAP_API bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
3296 OSCAP_API bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
3298 OSCAP_API bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
3300 OSCAP_API bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
3302 OSCAP_API bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
3304 OSCAP_API bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
3306 OSCAP_API bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
3308 OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3310 OSCAP_API int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark);
3312 OSCAP_API bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
3314 OSCAP_API bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
3316 OSCAP_API bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
3318 OSCAP_API bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
3320 OSCAP_API bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
3322 OSCAP_API bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
3324 OSCAP_API bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
3326 OSCAP_API bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
3328 OSCAP_API bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
3330 OSCAP_API bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
3332 OSCAP_API bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
3334 OSCAP_API bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval);
3336 OSCAP_API bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
3338 OSCAP_API bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
3340 OSCAP_API bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
3342 OSCAP_API bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
3343 
3345 OSCAP_API bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
3347 OSCAP_API bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
3349 OSCAP_API bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
3351 OSCAP_API bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
3353 OSCAP_API bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
3355 OSCAP_API bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
3356 
3357 /************************************************************
3358  ** @} End of Setters group */
3359 
3360 // remove operations
3361 
3363 OSCAP_API void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
3365 OSCAP_API void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
3367 OSCAP_API void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
3369 OSCAP_API void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
3371 OSCAP_API void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
3373 OSCAP_API void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it);
3375 OSCAP_API void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it);
3377 OSCAP_API void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it);
3379 OSCAP_API void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
3381 OSCAP_API void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
3383 OSCAP_API void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
3385 OSCAP_API void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it);
3387 OSCAP_API void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it);
3389 OSCAP_API void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it);
3391 OSCAP_API void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
3393 OSCAP_API void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
3395 OSCAP_API void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
3397 OSCAP_API void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
3399 OSCAP_API void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it);
3401 OSCAP_API void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
3403 OSCAP_API void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
3405 OSCAP_API void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
3407 OSCAP_API void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
3409 OSCAP_API void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
3411 OSCAP_API void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it);
3413 OSCAP_API void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
3415 OSCAP_API void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
3417 OSCAP_API void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it);
3419 OSCAP_API void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it);
3421 OSCAP_API void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it);
3422 
3423 
3424 // textual substitution interface
3425 
3431 typedef enum xccdf_subst_type {
3432  XCCDF_SUBST_NONE,
3437 
3438 /************************************************************/
3440 
3442 #endif
xccdf_target_fact
Definition: item.h:388
xccdf_benchmark_resolve
OSCAP_API bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark)
Resolve an benchmark.
Definition: resolve.c:70
XCCDF_STRATEGY_RESTRICT
@ XCCDF_STRATEGY_RESTRICT
Adjust permissions or ACLs.
Definition: xccdf_benchmark.h:163
xccdf_refine_rule_iterator::xccdf_refine_rule_iterator_next
OSCAP_API 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.
xccdf_check_iterator::xccdf_check_iterator_reset
OSCAP_API void xccdf_check_iterator_reset(struct xccdf_check_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_RESULT_UNKNOWN
@ XCCDF_RESULT_UNKNOWN
Could not tell what happened.
Definition: xccdf_benchmark.h:173
xccdf_check_content_ref_iterator::xccdf_check_content_ref_iterator_reset
OSCAP_API 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)
XCCDF_TYPE_STRING
@ XCCDF_TYPE_STRING
String.
Definition: xccdf_benchmark.h:96
xccdf_message_iterator::xccdf_message_iterator_has_more
OSCAP_API bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_check::xccdf_check_get_children
OSCAP_API struct xccdf_check_iterator * xccdf_check_get_children(const struct xccdf_check *check)
Get an iterator to nested checks of the complex check.
xccdf_item::xccdf_item_to_value
OSCAP_API struct xccdf_value * xccdf_item_to_value(struct xccdf_item *item)
Convert the item to a value.
xccdf_role_t
xccdf_role_t
XCCDF role.
Definition: xccdf_benchmark.h:135
xccdf_profile_iterator::xccdf_profile_iterator_has_more
OSCAP_API bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_profile
Definition: xccdf_benchmark.h:203
XCCDF_IFACE_HINT_TEXTLINE
@ XCCDF_IFACE_HINT_TEXTLINE
Text line input widget.
Definition: xccdf_benchmark.h:77
xccdf_benchmark::xccdf_benchmark_get_plain_text
const OSCAP_API char * xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id)
Get a plain text by ID.
Definition: benchmark.c:548
XCCDF_RESULT_NOT_APPLICABLE
@ XCCDF_RESULT_NOT_APPLICABLE
Rule did not apply to test target.
Definition: xccdf_benchmark.h:174
XCCDF_MSG_ERROR
@ XCCDF_MSG_ERROR
Error.
Definition: xccdf_benchmark.h:131
XCCDF_MSG_INFO
@ XCCDF_MSG_INFO
Info.
Definition: xccdf_benchmark.h:129
xccdf_identity_iterator::xccdf_identity_iterator_free
OSCAP_API void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_notice_iterator
Definition: xccdf_benchmark.h:429
xccdf_benchmark::xccdf_benchmark_get_member
OSCAP_API 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:736
xccdf_message_iterator::xccdf_message_iterator_free
OSCAP_API void xccdf_message_iterator_free(struct xccdf_message_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_result_iterator::xccdf_result_iterator_free
OSCAP_API void xccdf_result_iterator_free(struct xccdf_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF_VALUE
@ XCCDF_VALUE
Type constant for xccdf_value.
Definition: xccdf_benchmark.h:63
xccdf_group::xccdf_group_get_content
OSCAP_API struct xccdf_item_iterator * xccdf_group_get_content(const struct xccdf_group *group)
Get an iterator to the group content.
xccdf_fixtext_iterator
Definition: xccdf_benchmark.h:526
xccdf_benchmark::xccdf_benchmark_get_profiles
OSCAP_API struct xccdf_profile_iterator * xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark XCCDF profiles.
xccdf_value_iterator::xccdf_value_iterator_has_more
OSCAP_API bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_setvalue
Definition: item.h:275
xccdf_status
Definition: item.h:243
oscap_source
Definition: oscap_source.c:66
xccdf_warning_iterator::xccdf_warning_iterator_next
OSCAP_API 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.
XCCDF_WARNING_REGULATORY
@ XCCDF_WARNING_REGULATORY
Warning about regulatory obligations.
Definition: xccdf_benchmark.h:149
xccdf_tailoring::xccdf_tailoring_get_profile_by_id
OSCAP_API struct xccdf_profile * xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id)
Definition: tailoring.c:471
xccdf_level_t
xccdf_level_t
XCCDF error, complexity, disruption, or severity level.
Definition: xccdf_benchmark.h:118
xccdf_ident_iterator::xccdf_ident_iterator_free
OSCAP_API void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_check
Definition: item.h:285
xccdf_check_content_ref
Definition: item.h:303
xccdf_setvalue_iterator::xccdf_setvalue_iterator_has_more
OSCAP_API bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_identity_iterator::xccdf_identity_iterator_next
OSCAP_API 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.
xccdf_check_export_iterator::xccdf_check_export_iterator_has_more
OSCAP_API bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_STATUS_NOT_SPECIFIED
@ XCCDF_STATUS_NOT_SPECIFIED
Status was not specified by benchmark.
Definition: xccdf_benchmark.h:85
xccdf_plain_text_iterator::xccdf_plain_text_iterator_reset
OSCAP_API void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_override_iterator::xccdf_override_iterator_free
OSCAP_API void xccdf_override_iterator_free(struct xccdf_override_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_benchmark
xccdf_refine_rule_iterator::xccdf_refine_rule_iterator_free
OSCAP_API void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
oscap.h
xccdf_override_iterator::xccdf_override_iterator_has_more
OSCAP_API bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_check::xccdf_check_get_complex
OSCAP_API bool xccdf_check_get_complex(const struct xccdf_check *check)
True if the check is a complex check.
Definition: rule.c:691
XCCDF_OPERATOR_GREATER
@ XCCDF_OPERATOR_GREATER
Greater than.
Definition: xccdf_benchmark.h:104
xccdf_item::xccdf_item_to_rule
OSCAP_API struct xccdf_rule * xccdf_item_to_rule(struct xccdf_item *item)
Convert the item to a rule.
xccdf_check_import
Definition: item.h:308
xccdf_notice_iterator::xccdf_notice_iterator_free
OSCAP_API void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_override_iterator
Definition: xccdf_benchmark.h:582
xccdf_setvalue_iterator::xccdf_setvalue_iterator_next
OSCAP_API 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.
xccdf_message_iterator::xccdf_message_iterator_next
OSCAP_API 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_fix_iterator::xccdf_fix_iterator_has_more
OSCAP_API bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_IFACE_HINT_DATE
@ XCCDF_IFACE_HINT_DATE
Date selection widget.
Definition: xccdf_benchmark.h:79
XCCDF_ROLE_FULL
@ XCCDF_ROLE_FULL
Check the rule and let the result contriburte to the score and appear in reports.
Definition: xccdf_benchmark.h:136
xccdf_warning_iterator::xccdf_warning_iterator_free
OSCAP_API void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_rule_result
Definition: item.h:344
XCCDF_STRATEGY_POLICY
@ XCCDF_STRATEGY_POLICY
Remediation by changing policies/procedures.
Definition: xccdf_benchmark.h:162
XCCDF_RESULT_NOT_CHECKED
@ XCCDF_RESULT_NOT_CHECKED
Rule did not cause any evaluation by the checking engine.
Definition: xccdf_benchmark.h:175
xccdf_instance_iterator::xccdf_instance_iterator_next
OSCAP_API 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.
xccdf_rule_result_iterator::xccdf_rule_result_iterator_next
OSCAP_API 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.
xccdf_check::xccdf_check_get_oper
OSCAP_API 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.
XCCDF_UNKNOWN
@ XCCDF_UNKNOWN
Unknown.
Definition: xccdf_benchmark.h:120
xccdf_fix_iterator::xccdf_fix_iterator_next
OSCAP_API 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.
xccdf_check_iterator::xccdf_check_iterator_free
OSCAP_API void xccdf_check_iterator_free(struct xccdf_check_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_result_iterator::xccdf_result_iterator_reset
OSCAP_API void xccdf_result_iterator_reset(struct xccdf_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_tailoring::xccdf_tailoring_remove_profile
OSCAP_API bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile)
Removes given profile from tailoring.
Definition: tailoring.c:93
xccdf_plain_text_iterator::xccdf_plain_text_iterator_next
OSCAP_API 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.
xccdf_check_iterator::xccdf_check_iterator_next
OSCAP_API 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.
xccdf_profile_note_iterator
Definition: xccdf_benchmark.h:519
xccdf_status_iterator::xccdf_status_iterator_next
OSCAP_API 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.
xccdf_plain_text_iterator
Definition: xccdf_benchmark.h:624
xccdf_result::xccdf_result_fill_sysinfo
OSCAP_API void xccdf_result_fill_sysinfo(struct xccdf_result *result)
Collect system info and store it in the TestResult.
Definition: result.c:208
xccdf_value_instance_iterator::xccdf_value_instance_iterator_has_more
OSCAP_API bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_benchmark::xccdf_benchmark_get_models
OSCAP_API struct xccdf_model_iterator * xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark scoring models.
xccdf_benchmark_append_new_rule
OSCAP_API 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:676
xccdf_model_iterator::xccdf_model_iterator_reset
OSCAP_API void xccdf_model_iterator_reset(struct xccdf_model_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_STATUS_INTERIM
@ XCCDF_STATUS_INTERIM
Interim.
Definition: xccdf_benchmark.h:90
XCCDF_IFACE_HINT_NONE
@ XCCDF_IFACE_HINT_NONE
No interface hint.
Definition: xccdf_benchmark.h:75
xccdf_instance
Definition: item.h:404
xccdf_override_iterator::xccdf_override_iterator_next
OSCAP_API 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.
xccdf_plain_text_iterator::xccdf_plain_text_iterator_has_more
OSCAP_API bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_fixtext_iterator::xccdf_fixtext_iterator_has_more
OSCAP_API bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_value_iterator::xccdf_value_iterator_free
OSCAP_API void xccdf_value_iterator_free(struct xccdf_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_message_iterator
Definition: xccdf_benchmark.h:575
xccdf_message_iterator::xccdf_message_iterator_reset
OSCAP_API void xccdf_message_iterator_reset(struct xccdf_message_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_benchmark::xccdf_benchmark_get_item
OSCAP_API struct xccdf_item * xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id)
Get benchmark xccdf:Item by ID.
xccdf_refine_rule_iterator::xccdf_refine_rule_iterator_has_more
OSCAP_API bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_STRATEGY_ENABLE
@ XCCDF_STRATEGY_ENABLE
Turn on or install something.
Definition: xccdf_benchmark.h:160
xccdf_identity_iterator::xccdf_identity_iterator_has_more
OSCAP_API bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_refine_value_iterator
Definition: xccdf_benchmark.h:492
xccdf_refine_value_iterator::xccdf_refine_value_iterator_has_more
OSCAP_API bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_benchmark::xccdf_benchmark_supported
const OSCAP_API char * xccdf_benchmark_supported(void)
Get supported version of XCCDF XML.
Definition: benchmark.c:650
xccdf_value
Definition: xccdf_benchmark.h:227
xccdf_fix_iterator::xccdf_fix_iterator_reset
OSCAP_API void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_profile_note
Definition: item.h:319
XCCDF_MSG_WARNING
@ XCCDF_MSG_WARNING
Warning.
Definition: xccdf_benchmark.h:130
XCCDF_RESULT_INFORMATIONAL
@ XCCDF_RESULT_INFORMATIONAL
Rule was evaluated by the checking engine, but isn't to be scored.
Definition: xccdf_benchmark.h:177
xccdf_benchmark::xccdf_benchmark_get_content
OSCAP_API struct xccdf_item_iterator * xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark)
Get an iterator to the bencmark content.
xccdf_item
Definition: item.h:220
XCCDF_RESULT_PASS
@ XCCDF_RESULT_PASS
The test passed.
Definition: xccdf_benchmark.h:170
xccdf_profile_iterator::xccdf_profile_iterator_reset
OSCAP_API void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_refine_rule_iterator::xccdf_refine_rule_iterator_reset
OSCAP_API void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_check_import_iterator::xccdf_check_import_iterator_has_more
OSCAP_API bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_value_instance_iterator::xccdf_value_instance_iterator_free
OSCAP_API void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_status_iterator
Definition: xccdf_benchmark.h:436
xccdf_operator_t
xccdf_operator_t
Operator to be applied on an xccdf_value.
Definition: xccdf_benchmark.h:101
xccdf_check_content_ref_iterator::xccdf_check_content_ref_iterator_next
OSCAP_API 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.
XCCDF_RESULT_FAIL
@ XCCDF_RESULT_FAIL
The test failed.
Definition: xccdf_benchmark.h:171
XCCDF_WARNING_GENERAL
@ XCCDF_WARNING_GENERAL
General-purpose warning.
Definition: xccdf_benchmark.h:144
XCCDF_OPERATOR_OR
@ XCCDF_OPERATOR_OR
Logical or.
Definition: xccdf_benchmark.h:114
cpe_dict.h
Interface to Common Platform Enumeration (CPE) Dictionary.
xccdf_refine_rule_iterator
Definition: xccdf_benchmark.h:498
xccdf_warning_category_t
xccdf_warning_category_t
Category of xccdf_warning.
Definition: xccdf_benchmark.h:142
xccdf_profile_iterator
Definition: xccdf_benchmark.h:464
xccdf_model_iterator::xccdf_model_iterator_has_more
OSCAP_API bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_check_import_iterator::xccdf_check_import_iterator_free
OSCAP_API void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_result_iterator::xccdf_result_iterator_has_more
OSCAP_API bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it)
Return true if the list is not empty, false otherwise.
cpe_dict_model
Definition: cpedict_priv.h:139
XCCDF_STRATEGY_PATCH
@ XCCDF_STRATEGY_PATCH
Apply a patch, hotfix, or update.
Definition: xccdf_benchmark.h:161
XCCDF_STRATEGY_COMBINATION
@ XCCDF_STRATEGY_COMBINATION
Combo of two or more of the above.
Definition: xccdf_benchmark.h:165
xccdf_notice
Definition: item.h:238
xccdf_ident_iterator
Definition: xccdf_benchmark.h:505
xccdf_instance_iterator
Definition: xccdf_benchmark.h:568
XCCDF_ROLE_UNSCORED
@ XCCDF_ROLE_UNSCORED
Check the rule and include the result in reports, but do not include it into score computations.
Definition: xccdf_benchmark.h:137
XCCDF_MEDIUM
@ XCCDF_MEDIUM
Medium.
Definition: xccdf_benchmark.h:123
XCCDF_INFO
@ XCCDF_INFO
Info.
Definition: xccdf_benchmark.h:121
xccdf_select_iterator::xccdf_select_iterator_next
OSCAP_API 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.
xccdf_interface_hint_t
xccdf_interface_hint_t
Interface hint.
Definition: xccdf_benchmark.h:74
xccdf_benchmark::xccdf_benchmark_import_source
OSCAP_API struct xccdf_benchmark * xccdf_benchmark_import_source(struct oscap_source *source)
Import the content from oscap_source into a benchmark.
Definition: benchmark.c:54
xccdf_benchmark_append_new_value
OSCAP_API 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:668
xccdf_instance_iterator::xccdf_instance_iterator_has_more
OSCAP_API bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_status_iterator::xccdf_status_iterator_has_more
OSCAP_API bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_score_iterator::xccdf_score_iterator_free
OSCAP_API void xccdf_score_iterator_free(struct xccdf_score_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF_OPERATOR_NOT_EQUAL
@ XCCDF_OPERATOR_NOT_EQUAL
Inequality.
Definition: xccdf_benchmark.h:103
xccdf_value_iterator
Definition: xccdf_benchmark.h:478
xccdf_instance_iterator::xccdf_instance_iterator_free
OSCAP_API void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_plain_text_iterator::xccdf_plain_text_iterator_free
OSCAP_API void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_refine_rule
Definition: item.h:259
xccdf_strategy_t
xccdf_strategy_t
Fix strategy type.
Definition: xccdf_benchmark.h:156
XCCDF_WARNING_DEPENDENCY
@ XCCDF_WARNING_DEPENDENCY
Warning about dependencies between this Rule and other parts of the target system.
Definition: xccdf_benchmark.h:152
xccdf_check_content_ref_iterator
Definition: xccdf_benchmark.h:533
XCCDF_SUBST_SUB
@ XCCDF_SUBST_SUB
substitute cdf:sub element
Definition: xccdf_benchmark.h:3433
xccdf_fix
Definition: item.h:324
xccdf_rule
Definition: xccdf_benchmark.h:215
xccdf_message
Definition: item.h:383
xccdf_profile_note_iterator::xccdf_profile_note_iterator_has_more
OSCAP_API bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_OPERATOR_PATTERN_MATCH
@ XCCDF_OPERATOR_PATTERN_MATCH
Match a regular expression.
Definition: xccdf_benchmark.h:108
XCCDF_OPERATOR_GREATER_EQUAL
@ XCCDF_OPERATOR_GREATER_EQUAL
Greater than or equal.
Definition: xccdf_benchmark.h:105
XCCDF_STATUS_DRAFT
@ XCCDF_STATUS_DRAFT
Draft item.
Definition: xccdf_benchmark.h:88
xccdf_fixtext
Definition: item.h:335
xccdf_notice_iterator::xccdf_notice_iterator_has_more
OSCAP_API bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_instance_iterator::xccdf_instance_iterator_reset
OSCAP_API void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
oscap_text_iterator
xccdf_bool_operator_t
xccdf_bool_operator_t
Boolean operators for logical expressions.
Definition: xccdf_benchmark.h:112
xccdf_item::xccdf_item_to_benchmark
OSCAP_API struct xccdf_benchmark * xccdf_item_to_benchmark(struct xccdf_item *item)
Convert the item to a benchmark.
xccdf_check_import_iterator::xccdf_check_import_iterator_next
OSCAP_API 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.
xccdf_check_iterator
Definition: xccdf_benchmark.h:512
xccdf_item::xccdf_item_to_result
OSCAP_API struct xccdf_result * xccdf_item_to_result(struct xccdf_item *item)
Convert the item to a test result.
xccdf_value::xccdf_value_get_parent
OSCAP_API struct xccdf_item * xccdf_value_get_parent(const struct xccdf_value *value)
Return value's parent in the grouping hierarchy.
xccdf_check_iterator::xccdf_check_iterator_has_more
OSCAP_API bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_value_type_t
xccdf_value_type_t
Type of an xccdf_value.
Definition: xccdf_benchmark.h:94
XCCDF_LOW
@ XCCDF_LOW
Low.
Definition: xccdf_benchmark.h:122
XCCDF_OPERATOR_EQUALS
@ XCCDF_OPERATOR_EQUALS
Equality.
Definition: xccdf_benchmark.h:102
xccdf_item_iterator::xccdf_item_iterator_has_more
OSCAP_API bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_override
Definition: item.h:375
xccdf_item::xccdf_item_to_profile
OSCAP_API struct xccdf_profile * xccdf_item_to_profile(struct xccdf_item *item)
Convert the item to a profile.
xccdf_setvalue_iterator::xccdf_setvalue_iterator_reset
OSCAP_API void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it)
Reset the iterator structure (it will point to the first item in the list)
xccdf_item::xccdf_item_get_parent
OSCAP_API struct xccdf_item * xccdf_item_get_parent(const struct xccdf_item *item)
Return item's parent in the grouping hierarchy.
xccdf_check_import_iterator
Definition: xccdf_benchmark.h:540
XCCDF_SUBST_INSTANCE
@ XCCDF_SUBST_INSTANCE
substitute cdf:instance element
Definition: xccdf_benchmark.h:3435
XCCDF_STRATEGY_UNKNOWN
@ XCCDF_STRATEGY_UNKNOWN
Strategy not defined.
Definition: xccdf_benchmark.h:157
XCCDF_STATUS_DEPRECATED
@ XCCDF_STATUS_DEPRECATED
Deprecated.
Definition: xccdf_benchmark.h:87
xccdf_check_export_iterator
Definition: xccdf_benchmark.h:554
xccdf_profile_iterator::xccdf_profile_iterator_next
OSCAP_API 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.
xccdf_benchmark_append_new_group
OSCAP_API 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:660
xccdf_value_instance_iterator
Definition: xccdf_benchmark.h:596
xccdf_model
Definition: item.h:248
xccdf_benchmark::xccdf_benchmark_export
OSCAP_API int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file)
Export a benchmark to an XML stream.
Definition: benchmark.c:230
xccdf_fix_iterator
Definition: xccdf_benchmark.h:547
xccdf_plain_text
Definition: item.h:410
XCCDF_ROLE_UNCHECKED
@ XCCDF_ROLE_UNCHECKED
Don't check the rule, result will be XCCDF_RESULT_UNKNOWN.
Definition: xccdf_benchmark.h:138
xccdf_profile_note_iterator::xccdf_profile_note_iterator_free
OSCAP_API 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_subst_type_t
enum xccdf_subst_type xccdf_subst_type_t
Type of textual substitution.
XCCDF_OPERATOR_LESS_EQUAL
@ XCCDF_OPERATOR_LESS_EQUAL
Less than or equal.
Definition: xccdf_benchmark.h:107
XCCDF_IFACE_HINT_CHOICE
@ XCCDF_IFACE_HINT_CHOICE
Choice from multiple values.
Definition: xccdf_benchmark.h:76
xccdf_identity_iterator
Definition: xccdf_benchmark.h:443
xccdf_target_identifier_iterator
Definition: xccdf_benchmark.h:617
xccdf_select
Definition: item.h:253
xccdf_message_severity_t
xccdf_message_severity_t
Severity of an xccdf_message.
Definition: xccdf_benchmark.h:128
xccdf_status_type_t
xccdf_status_type_t
Status of an XCCDF item.
Definition: xccdf_benchmark.h:84
xccdf_target_fact_iterator
Definition: xccdf_benchmark.h:610
xccdf_result::xccdf_result_stig_viewer_export_source
OSCAP_API struct oscap_source * xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath)
Export TestResult to oscap_source structure using STIG Rule IDs instead of the actual rule ids.
Definition: result.c:892
XCCDF_STRATEGY_UPDATE
@ XCCDF_STRATEGY_UPDATE
Install upgrade or update the system.
Definition: xccdf_benchmark.h:164
xccdf_select_iterator::xccdf_select_iterator_reset
OSCAP_API void xccdf_select_iterator_reset(struct xccdf_select_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_ident_iterator::xccdf_ident_iterator_has_more
OSCAP_API bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_numeric
float xccdf_numeric
Type of a numerical content for a XCCDF value.
Definition: xccdf_benchmark.h:197
xccdf_target_fact_iterator::xccdf_target_fact_iterator_has_more
OSCAP_API bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it)
Return true if the list is not empty, false otherwise.
oscap_string_iterator
XCCDF_IFACE_HINT_TEXT
@ XCCDF_IFACE_HINT_TEXT
Textarea.
Definition: xccdf_benchmark.h:78
xccdf_setvalue_iterator::xccdf_setvalue_iterator_free
OSCAP_API void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF_OPERATOR_LESS
@ XCCDF_OPERATOR_LESS
Less than.
Definition: xccdf_benchmark.h:106
xccdf_subst_type
xccdf_subst_type
Type of textual substitution.
Definition: xccdf_benchmark.h:3431
xccdf_target_identifier_iterator::xccdf_target_identifier_iterator_free
OSCAP_API void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_refine_value_iterator::xccdf_refine_value_iterator_next
OSCAP_API 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.
xccdf_group
Definition: xccdf_benchmark.h:221
xccdf_score_iterator::xccdf_score_iterator_reset
OSCAP_API void xccdf_score_iterator_reset(struct xccdf_score_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_RESULT_ERROR
@ XCCDF_RESULT_ERROR
An error occurred and test could not complete.
Definition: xccdf_benchmark.h:172
xccdf_target_fact_iterator::xccdf_target_fact_iterator_reset
OSCAP_API void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_select_iterator
Definition: xccdf_benchmark.h:471
xccdf_fixtext_iterator::xccdf_fixtext_iterator_free
OSCAP_API void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_rule_result::xccdf_rule_result_override
OSCAP_API 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:1417
xccdf_model_iterator::xccdf_model_iterator_free
OSCAP_API void xccdf_model_iterator_free(struct xccdf_model_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_fix_iterator::xccdf_fix_iterator_free
OSCAP_API void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_item::xccdf_item_to_group
OSCAP_API struct xccdf_group * xccdf_item_to_group(struct xccdf_item *item)
Convert the item to a group.
XCCDF_OPERATOR_AND
@ XCCDF_OPERATOR_AND
Logical and.
Definition: xccdf_benchmark.h:113
xccdf_type_t
xccdf_type_t
Type of an XCCDF object.
Definition: xccdf_benchmark.h:57
xccdf_target_identifier_iterator::xccdf_target_identifier_iterator_reset
OSCAP_API void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_check_content_ref_iterator::xccdf_check_content_ref_iterator_free
OSCAP_API 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)
XCCDF_TYPE_NUMBER
@ XCCDF_TYPE_NUMBER
Integer.
Definition: xccdf_benchmark.h:95
xccdf_score_iterator::xccdf_score_iterator_next
OSCAP_API 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.
xccdf_item_iterator::xccdf_item_iterator_free
OSCAP_API void xccdf_item_iterator_free(struct xccdf_item_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_model_iterator
Definition: xccdf_benchmark.h:450
xccdf_ident
Definition: item.h:280
xccdf_value_instance_iterator::xccdf_value_instance_iterator_reset
OSCAP_API void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_CONTENT
@ XCCDF_CONTENT
Represents selectable items, i.e. rules and groups (see xccdf_item)
Definition: xccdf_benchmark.h:66
xccdf_ident_iterator::xccdf_ident_iterator_next
OSCAP_API 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.
xccdf_check_import_iterator::xccdf_check_import_iterator_reset
OSCAP_API void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_profile_iterator::xccdf_profile_iterator_free
OSCAP_API void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_score_iterator::xccdf_score_iterator_has_more
OSCAP_API bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_WARNING_FUNCTIONALITY
@ XCCDF_WARNING_FUNCTIONALITY
Warning about possible impacts to functionality.
Definition: xccdf_benchmark.h:145
xccdf_result::xccdf_result_import_source
OSCAP_API struct xccdf_result * xccdf_result_import_source(struct oscap_source *source)
Import the content of oscap_source into a xccdf_result.
Definition: result.c:776
xccdf_profile_note_iterator::xccdf_profile_note_iterator_next
OSCAP_API 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_value_iterator::xccdf_value_iterator_next
OSCAP_API 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.
xccdf_fixtext_iterator::xccdf_fixtext_iterator_next
OSCAP_API 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.
xccdf_target_fact_iterator::xccdf_target_fact_iterator_next
OSCAP_API 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.
xccdf_benchmark::xccdf_benchmark_export_source
OSCAP_API struct oscap_source * xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename)
Export a benchmark to a source object.
Definition: benchmark.c:218
xccdf_result::xccdf_result_export_source
OSCAP_API struct oscap_source * xccdf_result_export_source(struct xccdf_result *result, const char *filepath)
Export TestResult to oscap_source structure.
Definition: result.c:880
xccdf_warning_iterator::xccdf_warning_iterator_has_more
OSCAP_API bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_WARNING_PERFORMANCE
@ XCCDF_WARNING_PERFORMANCE
Warning about changes to target system performance.
Definition: xccdf_benchmark.h:146
xccdf_warning
Definition: item.h:233
xccdf_setvalue_iterator
Definition: xccdf_benchmark.h:485
XCCDF_STATUS_INCOMPLETE
@ XCCDF_STATUS_INCOMPLETE
The item is not complete.
Definition: xccdf_benchmark.h:89
xccdf_model_iterator::xccdf_model_iterator_next
OSCAP_API 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.
xccdf_ident_iterator::xccdf_ident_iterator_reset
OSCAP_API void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_refine_value
Definition: item.h:268
xccdf_benchmark::xccdf_tailoring_match_profile_id
const OSCAP_API char * xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status)
Match a profile suffix agains profiles present in the given benchmark.
Definition: xccdf_session.c:474
XCCDF_RESULT_NOT_SELECTED
@ XCCDF_RESULT_NOT_SELECTED
Rule was not selected in the Benchmark.
Definition: xccdf_benchmark.h:176
cpe_lang_model
Definition: cpelang_priv.c:63
xccdf_rule_result_iterator::xccdf_rule_result_iterator_free
OSCAP_API void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_target_identifier
Definition: item.h:394
xccdf_target_identifier_iterator::xccdf_target_identifier_iterator_next
OSCAP_API 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.
XCCDF_BENCHMARK
@ XCCDF_BENCHMARK
Type constant for xccdf_benchmark.
Definition: xccdf_benchmark.h:58
oscap_stringlist_iterator
oscap_reference
Definition: reference_priv.h:35
XCCDF_STRATEGY_DISABLE
@ XCCDF_STRATEGY_DISABLE
Turn off or deinstall something.
Definition: xccdf_benchmark.h:159
xccdf_override_iterator::xccdf_override_iterator_reset
OSCAP_API void xccdf_override_iterator_reset(struct xccdf_override_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_fixtext_iterator::xccdf_fixtext_iterator_reset
OSCAP_API void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_check_export
Definition: item.h:314
XCCDF_SUBST_LINK
@ XCCDF_SUBST_LINK
substitute a hyperlink
Definition: xccdf_benchmark.h:3434
xccdf_status_iterator::xccdf_status_iterator_reset
OSCAP_API void xccdf_status_iterator_reset(struct xccdf_status_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_PROFILE
@ XCCDF_PROFILE
Type constant for xccdf_profile.
Definition: xccdf_benchmark.h:59
xccdf_check_content_ref_iterator::xccdf_check_content_ref_iterator_has_more
OSCAP_API 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_score
Definition: item.h:369
xccdf_identity_iterator::xccdf_identity_iterator_reset
OSCAP_API void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_RESULT
@ XCCDF_RESULT
Type constant for xccdf_result.
Definition: xccdf_benchmark.h:60
xccdf_rule::xccdf_rule_get_parent
OSCAP_API struct xccdf_item * xccdf_rule_get_parent(const struct xccdf_rule *rule)
Return rule's parent in the grouping hierarchy.
xccdf_result_iterator::xccdf_result_iterator_next
OSCAP_API 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.
xccdf_item_iterator
Definition: xccdf_benchmark.h:422
xccdf_item_iterator::xccdf_item_iterator_next
OSCAP_API 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.
XCCDF_WARNING_HARDWARE
@ XCCDF_WARNING_HARDWARE
Warning about hardware restrictions or possible impacts to hardware.
Definition: xccdf_benchmark.h:147
XCCDF_HIGH
@ XCCDF_HIGH
High.
Definition: xccdf_benchmark.h:124
XCCDF_RULE
@ XCCDF_RULE
Type constant for xccdf_rule.
Definition: xccdf_benchmark.h:61
XCCDF_WARNING_AUDIT
@ XCCDF_WARNING_AUDIT
Warning about impacts to audit or logging.
Definition: xccdf_benchmark.h:151
xccdf_check_export_iterator::xccdf_check_export_iterator_next
OSCAP_API 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.
XCCDF_ITEM
@ XCCDF_ITEM
Represents items as described in the XCCDF documentation (see xccdf_item)
Definition: xccdf_benchmark.h:68
xccdf_value_instance
Definition: item.h:114
XCCDF_TYPE_BOOLEAN
@ XCCDF_TYPE_BOOLEAN
Boolean.
Definition: xccdf_benchmark.h:97
xccdf_rule_result_iterator::xccdf_rule_result_iterator_reset
OSCAP_API void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_refine_value_iterator::xccdf_refine_value_iterator_reset
OSCAP_API 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)
xccdf_target_identifier_iterator::xccdf_target_identifier_iterator_has_more
OSCAP_API bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF_GROUP
@ XCCDF_GROUP
Type constant for xccdf_group.
Definition: xccdf_benchmark.h:62
xccdf_refine_value_iterator::xccdf_refine_value_iterator_free
OSCAP_API void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_check_export_iterator::xccdf_check_export_iterator_reset
OSCAP_API void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_tailoring
Definition: item.h:171
xccdf_select_iterator::xccdf_select_iterator_has_more
OSCAP_API bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_notice_iterator::xccdf_notice_iterator_reset
OSCAP_API void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
oscap_source::filepath
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:71
XCCDF_OBJECT
@ XCCDF_OBJECT
Represents an object, profile, result or whole benchmark (see xccdf_item)
Definition: xccdf_benchmark.h:70
xccdf_benchmark::xccdf_benchmark_get_notices
OSCAP_API struct xccdf_notice_iterator * xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark legal notices.
xccdf_result_iterator
Definition: xccdf_benchmark.h:457
XCCDF_STRATEGY_CONFIGURE
@ XCCDF_STRATEGY_CONFIGURE
Adjust target config or settings.
Definition: xccdf_benchmark.h:158
xccdf_profile_note_iterator::xccdf_profile_note_iterator_reset
OSCAP_API void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_warning_iterator::xccdf_warning_iterator_reset
OSCAP_API void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it)
Reset the iterator structure (it makes no changes to the underlying list)
xccdf_target_fact_iterator::xccdf_target_fact_iterator_free
OSCAP_API void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_check_export_iterator::xccdf_check_export_iterator_free
OSCAP_API void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF_IFACE_HINT_DATETIME
@ XCCDF_IFACE_HINT_DATETIME
Date and time selection widget.
Definition: xccdf_benchmark.h:80
xccdf_test_result_type_t
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:169
xccdf_score_iterator
Definition: xccdf_benchmark.h:603
xccdf_item_iterator::xccdf_item_iterator_reset
OSCAP_API void xccdf_item_iterator_reset(struct xccdf_item_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF_STATUS_ACCEPTED
@ XCCDF_STATUS_ACCEPTED
Accepted.
Definition: xccdf_benchmark.h:86
XCCDF_WARNING_MANAGEMENT
@ XCCDF_WARNING_MANAGEMENT
Warning about impacts to the mgmt or administration of the target system.
Definition: xccdf_benchmark.h:150
xccdf_version_info
Definition: XCCDF/elements.c:42
xccdf_rule_result_iterator::xccdf_rule_result_iterator_has_more
OSCAP_API bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_result
Definition: xccdf_benchmark.h:233
oscap_stringlist
Definition: oscap_text.h:60
xccdf_rule_result_iterator
Definition: xccdf_benchmark.h:589
xccdf_identity
Definition: item.h:361
XCCDF_RESULT_FIXED
@ XCCDF_RESULT_FIXED
Rule failed, but was later fixed.
Definition: xccdf_benchmark.h:178
xccdf_benchmark::xccdf_benchmark_match_profile_id
const OSCAP_API char * xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status)
Match a profile suffix agains profiles present in the given benchmark.
Definition: xccdf_session.c:480
xccdf_status_iterator::xccdf_status_iterator_free
OSCAP_API void xccdf_status_iterator_free(struct xccdf_status_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_notice_iterator::xccdf_notice_iterator_next
OSCAP_API 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.
xccdf_item::xccdf_item_get_schema_version
OSCAP_API const struct xccdf_version_info * xccdf_item_get_schema_version(struct xccdf_item *item)
Retrieves the XCCDF version of top-level benchmark item.
xccdf_value_iterator::xccdf_value_iterator_reset
OSCAP_API void xccdf_value_iterator_reset(struct xccdf_value_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
xccdf_value_instance_iterator::xccdf_value_instance_iterator_next
OSCAP_API 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.
xccdf_select_iterator::xccdf_select_iterator_free
OSCAP_API void xccdf_select_iterator_free(struct xccdf_select_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
xccdf_warning_iterator
Definition: xccdf_benchmark.h:561
XCCDF_WARNING_LEGAL
@ XCCDF_WARNING_LEGAL
Warning about legal implications.
Definition: xccdf_benchmark.h:148
oscap_text
Definition: text_priv.h:46