| 1 | /* |
| 2 | * Copyright 2009--2013 Red Hat Inc., Durham, North Carolina. |
| 3 | * Copyright (C) 2010 Tresys Technology, LLC |
| 4 | * All Rights Reserved. |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | * |
| 20 | * Authors: |
| 21 | * Lukas Kuklinek <[email protected]> |
| 22 | * Josh Adams <[email protected]> |
| 23 | * Šimon Lukašík |
| 24 | */ |
| 25 | |
| 26 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 27 | #include <config.h>cxx . . $ `<file>/build/config.h`/ |
| 28 | #endif |
| 29 | |
| 30 | #include <assert.h> |
| 31 | #include <string.h> |
| 32 | |
| 33 | #include "item.h"cxx . . $ `<file>/src/XCCDF/item.h`/ |
| 34 | #include "elements.h"cxx . . $ `<file>/src/XCCDF/elements.h`/ |
| 35 | #include "helpers.h"cxx . . $ `<file>/src/XCCDF/helpers.h`/ |
| 36 | #include "xccdf_impl.h"cxx . . $ `<file>/src/XCCDF/xccdf_impl.h`/ |
| 37 | #include "common/debug_priv.h"cxx . . $ `<file>/src/common/debug_priv.h`/ |
| 38 | #include "oscap_helpers.h"cxx . . $ `<file>/src/common/public/oscap_helpers.h`/ |
| 39 | #include "oscap_string.h"cxx . . $ `<file>/src/common/oscap_string.h`/ |
| 40 | |
| 41 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_content_parsecxx . . $ xccdf_content_parse(1afc04bf1b8fc835).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct xccdf_itemcxx . . $ xccdf_item# *parent) |
| 42 | { |
| 43 | assertcxx . . $ `/usr/include/assert.h:50:10`!(parent != NULL); |
| 44 | |
| 45 | struct oscap_listcxx . . $ oscap_list# *list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 46 | struct xccdf_itemcxx . . $ xccdf_item# *item = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 47 | |
| 48 | switch (parent->typecxx . . $ xccdf_item#type.) { |
| 49 | case XCCDF_BENCHMARKcxx . . $ XCCDF_BENCHMARK.: |
| 50 | list = parent->subcxx . . $ xccdf_item#sub..benchmarkcxx . . $ xccdf_item#$anonymous_type_1#benchmark..contentcxx . . $ xccdf_benchmark_item#content.; |
| 51 | break; |
| 52 | case XCCDF_GROUPcxx . . $ XCCDF_GROUP.: |
| 53 | list = parent->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..contentcxx . . $ xccdf_group_item#content.; |
| 54 | break; |
| 55 | default: |
| 56 | assertcxx . . $ `/usr/include/assert.h:50:10`!(false); |
| 57 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 58 | } |
| 59 | |
| 60 | switch (xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader)) { |
| 61 | case XCCDFE_RULEcxx . . $ XCCDFE_RULE.: |
| 62 | item = xccdf_rule_parsecxx . . $ xccdf_rule_parse(8cf60c58117f1f7b).(reader, parent); |
| 63 | break; |
| 64 | case XCCDFE_GROUPcxx . . $ XCCDFE_GROUP.: |
| 65 | item = xccdf_group_parsecxx . . $ xccdf_group_parse(8cf60c58117f1f7b).(reader, parent); |
| 66 | break; |
| 67 | default: |
| 68 | assertcxx . . $ `/usr/include/assert.h:50:10`!(false); |
| 69 | } |
| 70 | |
| 71 | if (item != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 72 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(list, item); |
| 73 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 74 | } |
| 75 | |
| 76 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 77 | } |
| 78 | |
| 79 | static void xccdf_deps_getcxx . . $ xccdf_deps_get(45fb671398dede41).(struct xccdf_itemcxx . . $ xccdf_item# *item, struct oscap_listcxx . . $ oscap_list# **conflicts, struct oscap_listcxx . . $ oscap_list# **requires) |
| 80 | { |
| 81 | switch (item->typecxx . . $ xccdf_item#type.) { |
| 82 | case XCCDF_RULEcxx . . $ XCCDF_RULE.: |
| 83 | if (conflicts) |
| 84 | *conflicts = item->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..conflictscxx . . $ xccdf_rule_item#conflicts.; |
| 85 | if (requires) |
| 86 | *requires = item->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..requires_cxx . . $ xccdf_rule_item#requires_.; |
| 87 | break; |
| 88 | case XCCDF_GROUPcxx . . $ XCCDF_GROUP.: |
| 89 | if (conflicts) |
| 90 | *conflicts = item->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..conflictscxx . . $ xccdf_group_item#conflicts.; |
| 91 | if (requires) |
| 92 | *requires = item->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..requires_cxx . . $ xccdf_group_item#requires_.; |
| 93 | break; |
| 94 | default: |
| 95 | assertcxx . . $ `/usr/include/assert.h:50:10`!(false); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_item_parse_depscxx . . $ xccdf_item_parse_deps(1afc04bf1b8fc835).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct xccdf_itemcxx . . $ xccdf_item# *item) |
| 100 | { |
| 101 | struct oscap_listcxx . . $ oscap_list# *conflicts = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 102 | struct oscap_listcxx . . $ oscap_list# *requires = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 103 | xccdf_deps_getcxx . . $ xccdf_deps_get(45fb671398dede41).(item, &conflicts, &requires); |
| 104 | |
| 105 | switch (xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader)) { |
| 106 | case XCCDFE_REQUIREScxx . . $ XCCDFE_REQUIRES.:{ |
| 107 | struct oscap_listcxx . . $ oscap_list# *reqs = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 108 | char *ids = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_IDREFcxx . . $ XCCDFA_IDREF.), *idsstr = ids, *id; |
| 109 | |
| 110 | while ((id = strsepcxx . . $ strsep(f4782bac5b8a260e).(&ids, " ")) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 111 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(id, "") == 0) continue; |
| 112 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(reqs, oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(id)); |
| 113 | } |
| 114 | if (reqs->itemcountcxx . . $ oscap_list#itemcount. == 0) { |
| 115 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(reqs, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 116 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 117 | } |
| 118 | |
| 119 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(requires, reqs); |
| 120 | freecxx . . $ free(5d22bdacc48458e8).(idsstr); |
| 121 | break; |
| 122 | } |
| 123 | case XCCDFE_CONFLICTScxx . . $ XCCDFE_CONFLICTS.: |
| 124 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(conflicts, xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_IDREFcxx . . $ XCCDFA_IDREF.)); |
| 125 | break; |
| 126 | default: |
| 127 | assertcxx . . $ `/usr/include/assert.h:50:10`!(false); |
| 128 | } |
| 129 | |
| 130 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 131 | } |
| 132 | |
| 133 | static void xccdf_items_print_id_listcxx . . $ xccdf_items_print_id_list(d51099bd0ec2594f).(struct oscap_listcxx . . $ oscap_list# *items, const char *sep) |
| 134 | { |
| 135 | struct oscap_list_itemcxx . . $ oscap_list_item# *it; |
| 136 | if (sep == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 137 | sep = ", "; |
| 138 | for (it = items->firstcxx . . $ oscap_list#first.; it; it = it->nextcxx . . $ oscap_list_item#next.) { |
| 139 | if (it != items->firstcxx . . $ oscap_list#first.) |
| 140 | printfcxx . . $ printf(581fddd72a8db8fc).("%s", sep); |
| 141 | printfcxx . . $ printf(581fddd72a8db8fc).("%s", (const char *) it->datacxx . . $ oscap_list_item#data.); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | static void xccdf_item_dump_depscxx . . $ xccdf_item_dump_deps(399eb5318584c7ce).(struct xccdf_itemcxx . . $ xccdf_item# *item, int depth) |
| 146 | { |
| 147 | struct oscap_listcxx . . $ oscap_list# *conflicts = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, *requires = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 148 | xccdf_deps_getcxx . . $ xccdf_deps_get(45fb671398dede41).(item, &conflicts, &requires); |
| 149 | |
| 150 | if (conflicts == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || requires == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 151 | return; |
| 152 | } |
| 153 | |
| 154 | if (requires->itemcountcxx . . $ oscap_list#itemcount. > 0) { |
| 155 | struct oscap_list_itemcxx . . $ oscap_list_item# *it; |
| 156 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 157 | printfcxx . . $ printf(581fddd72a8db8fc).("requires: "); |
| 158 | for (it = requires->firstcxx . . $ oscap_list#first.; it; it = it->nextcxx . . $ oscap_list_item#next.) { |
| 159 | struct oscap_listcxx . . $ oscap_list# *nlist = it->datacxx . . $ oscap_list_item#data.; |
| 160 | if (it != requires->firstcxx . . $ oscap_list#first.) |
| 161 | printfcxx . . $ printf(581fddd72a8db8fc).(" & "); |
| 162 | if (nlist->itemcountcxx . . $ oscap_list#itemcount. == 0) |
| 163 | continue; |
| 164 | if (nlist->itemcountcxx . . $ oscap_list#itemcount. > 1) |
| 165 | printfcxx . . $ printf(581fddd72a8db8fc).("("); |
| 166 | xccdf_items_print_id_listcxx . . $ xccdf_items_print_id_list(d51099bd0ec2594f).(nlist, " | "); |
| 167 | if (nlist->itemcountcxx . . $ oscap_list#itemcount. > 1) |
| 168 | printfcxx . . $ printf(581fddd72a8db8fc).(")"); |
| 169 | } |
| 170 | printfcxx . . $ printf(581fddd72a8db8fc).("\n"); |
| 171 | } |
| 172 | |
| 173 | if (conflicts->itemcountcxx . . $ oscap_list#itemcount. > 0) { |
| 174 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 175 | printfcxx . . $ printf(581fddd72a8db8fc).("conflicts: "); |
| 176 | xccdf_items_print_id_listcxx . . $ xccdf_items_print_id_list(d51099bd0ec2594f).(conflicts, " | "); |
| 177 | printfcxx . . $ printf(581fddd72a8db8fc).("\n"); |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | struct xccdf_itemcxx . . $ xccdf_item# *xccdf_group_new_internalcxx . . $ xccdf_group_new_internal(6721b4840dba2b39).(struct xccdf_itemcxx . . $ xccdf_item# *parent) |
| 182 | { |
| 183 | struct xccdf_itemcxx . . $ xccdf_item# *group = xccdf_item_newcxx . . $ xccdf_item_new(8094a7806c065071).(XCCDF_GROUPcxx . . $ XCCDF_GROUP., parent); |
| 184 | group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..contentcxx . . $ xccdf_group_item#content. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 185 | group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..requires_cxx . . $ xccdf_group_item#requires_. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 186 | group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..conflictscxx . . $ xccdf_group_item#conflicts. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 187 | group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..valuescxx . . $ xccdf_group_item#values. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 188 | return group; |
| 189 | } |
| 190 | |
| 191 | struct xccdf_groupcxx . . $ xccdf_group# *xccdf_group_newcxx . . $ xccdf_group_new(43c6f8984aa61365).(void) |
| 192 | { |
| 193 | return XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(xccdf_group_new_internal(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)); |
| 194 | } |
| 195 | |
| 196 | struct xccdf_groupcxx . . $ xccdf_group# * xccdf_group_clonecxx . . $ xccdf_group_clone(5211b7223cb7a338).(const struct xccdf_groupcxx . . $ xccdf_group# * group) |
| 197 | { |
| 198 | struct xccdf_itemcxx . . $ xccdf_item# *new_group = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_itemcxx . . $ xccdf_item#) + sizeof(struct xccdf_group_itemcxx . . $ xccdf_group_item#)); |
| 199 | struct xccdf_itemcxx . . $ xccdf_item# *old = XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group); |
| 200 | xccdf_item_base_clonecxx . . $ xccdf_item_base_clone(f0db45ff8e952d03).(&new_group->itemcxx . . $ xccdf_item#item., &(old->itemcxx . . $ xccdf_item#item.)); |
| 201 | new_group->typecxx . . $ xccdf_item#type. = old->typecxx . . $ xccdf_item#type.; |
| 202 | xccdf_group_item_clonecxx . . $ xccdf_group_item_clone(d76e0db0d4a9d44e).(new_group, &(old->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group.)); |
| 203 | return XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(new_group); |
| 204 | } |
| 205 | |
| 206 | struct xccdf_itemcxx . . $ xccdf_item# *xccdf_group_parsecxx . . $ xccdf_group_parse(8cf60c58117f1f7b).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct xccdf_itemcxx . . $ xccdf_item# *parent) |
| 207 | { |
| 208 | XCCDF_ASSERT_ELEMENTcxx . . $ `src/XCCDF/elements.h:141:9`!(reader, XCCDFE_GROUP); |
| 209 | |
| 210 | struct xccdf_itemcxx . . $ xccdf_item# *group = xccdf_group_new_internalcxx . . $ xccdf_group_new_internal(6721b4840dba2b39).(parent); |
| 211 | |
| 212 | if (!xccdf_item_process_attributescxx . . $ xccdf_item_process_attributes(bf0f85c13dd5e40b).(group, reader)) { |
| 213 | xccdf_group_freecxx . . $ xccdf_group_free(9e1ae929b010245a).(group); |
| 214 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 215 | } |
| 216 | |
| 217 | int depth = oscap_element_depthcxx . . $ oscap_element_depth(82a242a19623f75).(reader) + 1; |
| 218 | |
| 219 | while (oscap_to_start_elementcxx . . $ oscap_to_start_element(c0c45fd800596ca5).(reader, depth)) { |
| 220 | switch (xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader)) { |
| 221 | case XCCDFE_REQUIREScxx . . $ XCCDFE_REQUIRES.: |
| 222 | case XCCDFE_CONFLICTScxx . . $ XCCDFE_CONFLICTS.: |
| 223 | xccdf_item_parse_depscxx . . $ xccdf_item_parse_deps(1afc04bf1b8fc835).(reader, group); |
| 224 | break; |
| 225 | case XCCDFE_GROUPcxx . . $ XCCDFE_GROUP.: |
| 226 | case XCCDFE_RULEcxx . . $ XCCDFE_RULE.: |
| 227 | xccdf_content_parsecxx . . $ xccdf_content_parse(1afc04bf1b8fc835).(reader, group); |
| 228 | break; |
| 229 | case XCCDFE_VALUEcxx . . $ XCCDFE_VALUE.: |
| 230 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..valuescxx . . $ xccdf_group_item#values., xccdf_value_parsecxx . . $ xccdf_value_parse(8cf60c58117f1f7b).(reader, group)); |
| 231 | break; |
| 232 | default: |
| 233 | if (!xccdf_item_process_elementcxx . . $ xccdf_item_process_element(bf0f85c13dd5e40b).(group, reader)) |
| 234 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("Encountered an unknown element '%s' while parsing XCCDF group.", |
| 235 | xmlTextReaderConstLocalName(reader)); |
| 236 | } |
| 237 | xmlTextReaderReadcxx . . $ xmlTextReaderRead(82a242a19623f75).(reader); |
| 238 | } |
| 239 | |
| 240 | return group; |
| 241 | } |
| 242 | |
| 243 | void xccdf_group_dumpcxx . . $ xccdf_group_dump(399eb5318584c7ce).(struct xccdf_itemcxx . . $ xccdf_item# *group, int depth) |
| 244 | { |
| 245 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 246 | printfcxx . . $ printf(581fddd72a8db8fc).("Group : %s\n", (group ? group->itemcxx . . $ xccdf_item#item..idcxx . . $ xccdf_item_base#id. : "(NULL)")); |
| 247 | if (group) { |
| 248 | xccdf_item_printcxx . . $ xccdf_item_print(399eb5318584c7ce).(group, depth + 1); |
| 249 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth + 1); |
| 250 | printfcxx . . $ printf(581fddd72a8db8fc).("values"); |
| 251 | oscap_list_dumpcxx . . $ oscap_list_dump(df0831e7fcc09688).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..valuescxx . . $ xccdf_group_item#values., (oscap_dump_funccxx . . $ oscap_dump_func#) xccdf_value_dumpcxx . . $ xccdf_value_dump(399eb5318584c7ce)., depth + 2); |
| 252 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth + 1); |
| 253 | printfcxx . . $ printf(581fddd72a8db8fc).("content"); |
| 254 | oscap_list_dumpcxx . . $ oscap_list_dump(df0831e7fcc09688).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..contentcxx . . $ xccdf_group_item#content., (oscap_dump_funccxx . . $ oscap_dump_func#) xccdf_item_dumpcxx . . $ xccdf_item_dump(399eb5318584c7ce)., depth + 2); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | static void xccdf_free_strlistcxx . . $ xccdf_free_strlist(27ed2064e5aec1b1).(struct oscap_listcxx . . $ oscap_list# *list) |
| 259 | { |
| 260 | if (list) oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(list, freecxx . . $ free(5d22bdacc48458e8).); |
| 261 | } |
| 262 | |
| 263 | void xccdf_group_freecxx . . $ xccdf_group_free(9e1ae929b010245a).(struct xccdf_itemcxx . . $ xccdf_item# *group) |
| 264 | { |
| 265 | if (group) { |
| 266 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..contentcxx . . $ xccdf_group_item#content., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_item_freecxx . . $ xccdf_item_free(9e1ae929b010245a).); |
| 267 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..valuescxx . . $ xccdf_group_item#values., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_value_freecxx . . $ xccdf_value_free(9e1ae929b010245a).); |
| 268 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..requires_cxx . . $ xccdf_group_item#requires_., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_free_strlistcxx . . $ xccdf_free_strlist(27ed2064e5aec1b1).); |
| 269 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(group->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..conflictscxx . . $ xccdf_group_item#conflicts., freecxx . . $ free(5d22bdacc48458e8).); |
| 270 | xccdf_item_releasecxx . . $ xccdf_item_release(9e1ae929b010245a).(group); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | struct xccdf_itemcxx . . $ xccdf_item# *xccdf_rule_new_internalcxx . . $ xccdf_rule_new_internal(6721b4840dba2b39).(struct xccdf_itemcxx . . $ xccdf_item# *parent) |
| 275 | { |
| 276 | struct xccdf_itemcxx . . $ xccdf_item# *rule = xccdf_item_newcxx . . $ xccdf_item_new(8094a7806c065071).(XCCDF_RULEcxx . . $ XCCDF_RULE., parent); |
| 277 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..rolecxx . . $ xccdf_rule_item#role. = XCCDF_ROLE_FULLcxx . . $ XCCDF_ROLE_FULL.; |
| 278 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..severitycxx . . $ xccdf_rule_item#severity. = XCCDF_UNKNOWNcxx . . $ XCCDF_UNKNOWN.; |
| 279 | |
| 280 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..identscxx . . $ xccdf_rule_item#idents. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 281 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 282 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..requires_cxx . . $ xccdf_rule_item#requires_. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 283 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..conflictscxx . . $ xccdf_rule_item#conflicts. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 284 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..profile_notescxx . . $ xccdf_rule_item#profile_notes. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 285 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixescxx . . $ xccdf_rule_item#fixes. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 286 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixtextscxx . . $ xccdf_rule_item#fixtexts. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 287 | |
| 288 | return rule; |
| 289 | } |
| 290 | |
| 291 | struct xccdf_rulecxx . . $ xccdf_rule# *xccdf_rule_newcxx . . $ xccdf_rule_new(4a927809b3c89669).(void) |
| 292 | { |
| 293 | return XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(xccdf_rule_new_internal(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)); |
| 294 | } |
| 295 | |
| 296 | struct xccdf_rulecxx . . $ xccdf_rule# *xccdf_rule_clonecxx . . $ xccdf_rule_clone(4e6d026f6da8e790).(const struct xccdf_rulecxx . . $ xccdf_rule# * rule) |
| 297 | { |
| 298 | struct xccdf_itemcxx . . $ xccdf_item# *new_rule = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_itemcxx . . $ xccdf_item#) + sizeof(struct xccdf_rule_itemcxx . . $ xccdf_rule_item#)); |
| 299 | struct xccdf_itemcxx . . $ xccdf_item# *old = XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule); |
| 300 | xccdf_item_base_clonecxx . . $ xccdf_item_base_clone(f0db45ff8e952d03).(&new_rule->itemcxx . . $ xccdf_item#item., &(old->itemcxx . . $ xccdf_item#item.)); |
| 301 | new_rule->typecxx . . $ xccdf_item#type. = old->typecxx . . $ xccdf_item#type.; |
| 302 | xccdf_rule_item_clonecxx . . $ xccdf_rule_item_clone(1412c91b9f8e6897).(&new_rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule., &old->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule.); |
| 303 | return XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(new_rule); |
| 304 | } |
| 305 | |
| 306 | struct xccdf_itemcxx . . $ xccdf_item# *xccdf_rule_parsecxx . . $ xccdf_rule_parse(8cf60c58117f1f7b).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct xccdf_itemcxx . . $ xccdf_item# *parent) |
| 307 | { |
| 308 | XCCDF_ASSERT_ELEMENTcxx . . $ `src/XCCDF/elements.h:141:9`!(reader, XCCDFE_RULE); |
| 309 | |
| 310 | struct xccdf_itemcxx . . $ xccdf_item# *rule = xccdf_rule_new_internalcxx . . $ xccdf_rule_new_internal(6721b4840dba2b39).(parent); |
| 311 | |
| 312 | if (!xccdf_item_process_attributescxx . . $ xccdf_item_process_attributes(bf0f85c13dd5e40b).(rule, reader)) { |
| 313 | xccdf_rule_freecxx . . $ xccdf_rule_free(9e1ae929b010245a).(rule); |
| 314 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 315 | } |
| 316 | if (xccdf_attribute_hascxx . . $ xccdf_attribute_has(5c4b5ba7d6a00a2).(reader, XCCDFA_ROLEcxx . . $ XCCDFA_ROLE.)) { |
| 317 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..rolecxx . . $ xccdf_rule_item#role. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_ROLE_MAPcxx . . $ XCCDF_ROLE_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_ROLEcxx . . $ XCCDFA_ROLE.)); |
| 318 | rule->itemcxx . . $ xccdf_item#item..defined_flagscxx . . $ xccdf_item_base#defined_flags..rolecxx . . $ xccdf_defflags#role. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 319 | } |
| 320 | if (xccdf_attribute_hascxx . . $ xccdf_attribute_has(5c4b5ba7d6a00a2).(reader, XCCDFA_SEVERITYcxx . . $ XCCDFA_SEVERITY.)) { |
| 321 | rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..severitycxx . . $ xccdf_rule_item#severity. = |
| 322 | oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_SEVERITYcxx . . $ XCCDFA_SEVERITY.)); |
| 323 | rule->itemcxx . . $ xccdf_item#item..defined_flagscxx . . $ xccdf_item_base#defined_flags..severitycxx . . $ xccdf_defflags#severity. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 324 | } |
| 325 | |
| 326 | int depth = oscap_element_depthcxx . . $ oscap_element_depth(82a242a19623f75).(reader) + 1; |
| 327 | |
| 328 | while (oscap_to_start_elementcxx . . $ oscap_to_start_element(c0c45fd800596ca5).(reader, depth)) { |
| 329 | switch (xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader)) { |
| 330 | case XCCDFE_REQUIREScxx . . $ XCCDFE_REQUIRES.: |
| 331 | case XCCDFE_CONFLICTScxx . . $ XCCDFE_CONFLICTS.: |
| 332 | xccdf_item_parse_depscxx . . $ xccdf_item_parse_deps(1afc04bf1b8fc835).(reader, rule); |
| 333 | break; |
| 334 | case XCCDFE_PROFILE_NOTEcxx . . $ XCCDFE_PROFILE_NOTE.:{ |
| 335 | const char *tag = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_TAGcxx . . $ XCCDFA_TAG.); |
| 336 | if (tag == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 337 | break; |
| 338 | struct xccdf_profile_notecxx . . $ xccdf_profile_note# *note = xccdf_profile_note_newcxx . . $ xccdf_profile_note_new(92c81179d71c4322).(); |
| 339 | note->reftagcxx . . $ xccdf_profile_note#reftag. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(tag); |
| 340 | note->textcxx . . $ xccdf_profile_note#text. = oscap_text_new_parsecxx . . $ oscap_text_new_parse(fc91cb6a8c9d272a).(XCCDF_TEXT_PROFNOTEcxx . . $ XCCDF_TEXT_PROFNOTE., reader); |
| 341 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..profile_notescxx . . $ xccdf_rule_item#profile_notes., note); |
| 342 | break; |
| 343 | } |
| 344 | case XCCDFE_COMPLEX_CHECKcxx . . $ XCCDFE_COMPLEX_CHECK.: |
| 345 | case XCCDFE_CHECKcxx . . $ XCCDFE_CHECK.:{ |
| 346 | struct xccdf_checkcxx . . $ xccdf_check# *check = xccdf_check_parsecxx . . $ xccdf_check_parse(91f7c6d5425e84bb).(reader); |
| 347 | if (check == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 348 | break; |
| 349 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks., check); |
| 350 | break; |
| 351 | } |
| 352 | case XCCDFE_FIXcxx . . $ XCCDFE_FIX.: |
| 353 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixescxx . . $ xccdf_rule_item#fixes., xccdf_fix_parsecxx . . $ xccdf_fix_parse(d0483b468e4b06a7).(reader)); |
| 354 | break; |
| 355 | case XCCDFE_FIXTEXTcxx . . $ XCCDFE_FIXTEXT.: |
| 356 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixtextscxx . . $ xccdf_rule_item#fixtexts., xccdf_fixtext_parsecxx . . $ xccdf_fixtext_parse(107dd4c91094a5e8).(reader)); |
| 357 | break; |
| 358 | case XCCDFE_IDENTcxx . . $ XCCDFE_IDENT.: |
| 359 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..identscxx . . $ xccdf_rule_item#idents., xccdf_ident_parsecxx . . $ xccdf_ident_parse(57af45080b4e3c6f).(reader)); |
| 360 | break; |
| 361 | default: |
| 362 | if (!xccdf_item_process_elementcxx . . $ xccdf_item_process_element(bf0f85c13dd5e40b).(rule, reader)) |
| 363 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("Encountered an unknown element '%s' while parsing XCCDF group.", |
| 364 | xmlTextReaderConstLocalName(reader)); |
| 365 | } |
| 366 | xmlTextReaderReadcxx . . $ xmlTextReaderRead(82a242a19623f75).(reader); |
| 367 | } |
| 368 | |
| 369 | return rule; |
| 370 | } |
| 371 | |
| 372 | void xccdf_rule_dumpcxx . . $ xccdf_rule_dump(399eb5318584c7ce).(struct xccdf_itemcxx . . $ xccdf_item# *rule, int depth) |
| 373 | { |
| 374 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 375 | printfcxx . . $ printf(581fddd72a8db8fc).("Rule : %s\n", (rule ? rule->itemcxx . . $ xccdf_item#item..idcxx . . $ xccdf_item_base#id. : "(NULL)")); |
| 376 | if (rule) { |
| 377 | xccdf_item_printcxx . . $ xccdf_item_print(399eb5318584c7ce).(rule, depth + 1); |
| 378 | xccdf_item_dump_depscxx . . $ xccdf_item_dump_deps(399eb5318584c7ce).(rule, depth + 1); |
| 379 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth + 1); |
| 380 | printfcxx . . $ printf(581fddd72a8db8fc).("idents"); |
| 381 | oscap_list_dumpcxx . . $ oscap_list_dump(df0831e7fcc09688).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..identscxx . . $ xccdf_rule_item#idents., (oscap_dump_funccxx . . $ oscap_dump_func#) xccdf_ident_dumpcxx . . $ xccdf_ident_dump(a414a6c7220fa99e)., depth + 2); |
| 382 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth + 1); |
| 383 | printfcxx . . $ printf(581fddd72a8db8fc).("checks"); |
| 384 | oscap_list_dumpcxx . . $ oscap_list_dump(df0831e7fcc09688).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks., (oscap_dump_funccxx . . $ oscap_dump_func#) xccdf_check_dumpcxx . . $ xccdf_check_dump(7cfabb62e50db9f8)., depth + 2); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | void xccdf_rule_freecxx . . $ xccdf_rule_free(9e1ae929b010245a).(struct xccdf_itemcxx . . $ xccdf_item# *rule) |
| 389 | { |
| 390 | if (rule) { |
| 391 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..identscxx . . $ xccdf_rule_item#idents., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_ident_freecxx . . $ xccdf_ident_free(9a3cd491c0c01da2).); |
| 392 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_freecxx . . $ xccdf_check_free(5c0307a75faadf5).); |
| 393 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..profile_notescxx . . $ xccdf_rule_item#profile_notes., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_profile_note_freecxx . . $ xccdf_profile_note_free(241d1bf99edd395e).); |
| 394 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixescxx . . $ xccdf_rule_item#fixes., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_fix_freecxx . . $ xccdf_fix_free(c140d0eff936239d).); |
| 395 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..fixtextscxx . . $ xccdf_rule_item#fixtexts., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_fixtext_freecxx . . $ xccdf_fixtext_free(69fcf378619677d).); |
| 396 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..requires_cxx . . $ xccdf_rule_item#requires_., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_free_strlistcxx . . $ xccdf_free_strlist(27ed2064e5aec1b1).); |
| 397 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..conflictscxx . . $ xccdf_rule_item#conflicts., freecxx . . $ free(5d22bdacc48458e8).); |
| 398 | xccdf_item_releasecxx . . $ xccdf_item_release(9e1ae929b010245a).(rule); |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * Filter function returning true if the check/@selector matches with selectid |
| 404 | */ |
| 405 | static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 406 | _xccdf_check_filter_selectorcxx . . $ _xccdf_check_filter_selector(48bdb03e125a00e6).(struct xccdf_checkcxx . . $ xccdf_check# *check, char *selectid) |
| 407 | { |
| 408 | return !oscap_strcmpcxx . . $ oscap_strcmp(5ae29d726ae57f88).((char*) xccdf_check_get_selectorcxx . . $ xccdf_check_get_selector(698a89d24cc1a492).(check), selectid); |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * Filter all checks within a rule by their @selector attribute. |
| 413 | * @param rule which encapsulates the checks |
| 414 | * @param selector string to filter these checks. NULL or "" values might be used |
| 415 | * in order to filter checks without @selector attribute. |
| 416 | */ |
| 417 | struct xccdf_check_iteratorcxx . . $ xccdf_check_iterator# * |
| 418 | xccdf_rule_get_checks_filteredcxx . . $ xccdf_rule_get_checks_filtered(d809ddc538ffe32d).(struct xccdf_itemcxx . . $ xccdf_item# *rule, char *selector) |
| 419 | { |
| 420 | return (struct xccdf_check_iteratorcxx . . $ xccdf_check_iterator# *) oscap_iterator_new_filtercxx . . $ oscap_iterator_new_filter(412a5e5f37b98023).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks., (oscap_filter_funccxx . . $ oscap_filter_func#) _xccdf_check_filter_selectorcxx . . $ _xccdf_check_filter_selector(48bdb03e125a00e6)., selector); |
| 421 | } |
| 422 | |
| 423 | /** |
| 424 | * Filter function returning true if the xccdf_check is complex-check |
| 425 | */ |
| 426 | static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 427 | _xccdf_check_filter_complexcxx . . $ _xccdf_check_filter_complex(deb21378443db509).(struct xccdf_checkcxx . . $ xccdf_check# *check, void *unused) |
| 428 | { |
| 429 | return xccdf_check_get_complexcxx . . $ xccdf_check_get_complex(ceaafcd79241aa30).(check); |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * Filter checks and return complex-check. |
| 434 | * Note: In valid XCCDF 1.2 documents there must not be more than one check within the given rule. |
| 435 | */ |
| 436 | struct xccdf_check_iteratorcxx . . $ xccdf_check_iterator# * |
| 437 | xccdf_rule_get_complex_checkscxx . . $ xccdf_rule_get_complex_checks(b4fee8dce785ca5f).(struct xccdf_itemcxx . . $ xccdf_item# *rule) |
| 438 | { |
| 439 | return (struct xccdf_check_iteratorcxx . . $ xccdf_check_iterator# *) oscap_iterator_new_filtercxx . . $ oscap_iterator_new_filter(412a5e5f37b98023).(rule->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..checkscxx . . $ xccdf_rule_item#checks., (oscap_filter_funccxx . . $ oscap_filter_func#) _xccdf_check_filter_complexcxx . . $ _xccdf_check_filter_complex(deb21378443db509)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 440 | } |
| 441 | |
| 442 | struct xccdf_identcxx . . $ xccdf_ident# * xccdf_ident_clonecxx . . $ xccdf_ident_clone(c4fcf9b271bbac33).(const struct xccdf_identcxx . . $ xccdf_ident# * ident) |
| 443 | { |
| 444 | struct xccdf_identcxx . . $ xccdf_ident# * clone = xccdf_ident_newcxx . . $ xccdf_ident_new(6a8929255112b48).(); |
| 445 | clone->idcxx . . $ xccdf_ident#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(ident->idcxx . . $ xccdf_ident#id.); |
| 446 | clone->systemcxx . . $ xccdf_ident#system. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(ident->systemcxx . . $ xccdf_ident#system.); |
| 447 | return clone; |
| 448 | } |
| 449 | |
| 450 | struct xccdf_identcxx . . $ xccdf_ident# *xccdf_ident_newcxx . . $ xccdf_ident_new(6a8929255112b48).(void) |
| 451 | { |
| 452 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_identcxx . . $ xccdf_ident#)); |
| 453 | } |
| 454 | |
| 455 | struct xccdf_identcxx . . $ xccdf_ident# *xccdf_ident_new_fillcxx . . $ xccdf_ident_new_fill(e3c019007978f038).(const char *id, const char *sys) |
| 456 | { |
| 457 | struct xccdf_identcxx . . $ xccdf_ident# *ident = xccdf_ident_newcxx . . $ xccdf_ident_new(6a8929255112b48).(); |
| 458 | ident->idcxx . . $ xccdf_ident#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(id); |
| 459 | ident->systemcxx . . $ xccdf_ident#system. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(sys); |
| 460 | return ident; |
| 461 | } |
| 462 | |
| 463 | void xccdf_ident_set_idcxx . . $ xccdf_ident_set_id(8313bf2d57a77bb4).(struct xccdf_identcxx . . $ xccdf_ident# * ident, const char *id) |
| 464 | { |
| 465 | ident->idcxx . . $ xccdf_ident#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(id); |
| 466 | } |
| 467 | |
| 468 | void xccdf_ident_set_systemcxx . . $ xccdf_ident_set_system(8313bf2d57a77bb4).(struct xccdf_identcxx . . $ xccdf_ident# * ident, const char *sys) |
| 469 | { |
| 470 | ident->systemcxx . . $ xccdf_ident#system. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(sys); |
| 471 | } |
| 472 | |
| 473 | struct xccdf_identcxx . . $ xccdf_ident# *xccdf_ident_parsecxx . . $ xccdf_ident_parse(57af45080b4e3c6f).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader) |
| 474 | { |
| 475 | XCCDF_ASSERT_ELEMENTcxx . . $ `src/XCCDF/elements.h:141:9`!(reader, XCCDFE_IDENT); |
| 476 | const char *sys = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_SYSTEMcxx . . $ XCCDFA_SYSTEM.); |
| 477 | const char *id = oscap_element_string_getcxx . . $ oscap_element_string_get(fcb9bb882cfd5f9d).(reader); |
| 478 | return xccdf_ident_new_fillcxx . . $ xccdf_ident_new_fill(e3c019007978f038).(id, sys); |
| 479 | } |
| 480 | |
| 481 | void xccdf_ident_dumpcxx . . $ xccdf_ident_dump(a414a6c7220fa99e).(struct xccdf_identcxx . . $ xccdf_ident# *ident, int depth) |
| 482 | { |
| 483 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 484 | printfcxx . . $ printf(581fddd72a8db8fc).("ident : %s => %s\n", ident->systemcxx . . $ xccdf_ident#system., ident->idcxx . . $ xccdf_ident#id.); |
| 485 | } |
| 486 | |
| 487 | void xccdf_ident_freecxx . . $ xccdf_ident_free(9a3cd491c0c01da2).(struct xccdf_identcxx . . $ xccdf_ident# *ident) |
| 488 | { |
| 489 | if (ident) { |
| 490 | freecxx . . $ free(5d22bdacc48458e8).(ident->idcxx . . $ xccdf_ident#id.); |
| 491 | freecxx . . $ free(5d22bdacc48458e8).(ident->systemcxx . . $ xccdf_ident#system.); |
| 492 | freecxx . . $ free(5d22bdacc48458e8).(ident); |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | struct xccdf_profile_notecxx . . $ xccdf_profile_note# *xccdf_profile_note_newcxx . . $ xccdf_profile_note_new(92c81179d71c4322).(void) |
| 497 | { |
| 498 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_profile_notecxx . . $ xccdf_profile_note#)); |
| 499 | } |
| 500 | |
| 501 | struct xccdf_profile_notecxx . . $ xccdf_profile_note# * xccdf_profile_note_clonecxx . . $ xccdf_profile_note_clone(44194b9583ba5a96).(const struct xccdf_profile_notecxx . . $ xccdf_profile_note# * note) |
| 502 | { |
| 503 | struct xccdf_profile_notecxx . . $ xccdf_profile_note# * clone = xccdf_profile_note_newcxx . . $ xccdf_profile_note_new(92c81179d71c4322).(); |
| 504 | clone->reftagcxx . . $ xccdf_profile_note#reftag. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(note->reftagcxx . . $ xccdf_profile_note#reftag.); |
| 505 | clone->textcxx . . $ xccdf_profile_note#text. = oscap_text_clonecxx . . $ oscap_text_clone(ca1982dd7fd7b6b0).(note->textcxx . . $ xccdf_profile_note#text.); |
| 506 | return clone; |
| 507 | } |
| 508 | |
| 509 | void xccdf_profile_note_freecxx . . $ xccdf_profile_note_free(241d1bf99edd395e).(struct xccdf_profile_notecxx . . $ xccdf_profile_note# *note) |
| 510 | { |
| 511 | if (note) { |
| 512 | freecxx . . $ free(5d22bdacc48458e8).(note->reftagcxx . . $ xccdf_profile_note#reftag.); |
| 513 | oscap_text_freecxx . . $ oscap_text_free(c2630df24779e845).(note->textcxx . . $ xccdf_profile_note#text.); |
| 514 | freecxx . . $ free(5d22bdacc48458e8).(note); |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | XCCDF_GENERIC_GETTERcxx . . $ `src/XCCDF/helpers.h:46:9`!(const char *, ident, id) XCCDF_GENERIC_GETTERcxx . . $ `src/XCCDF/helpers.h:46:9`!(const char *, ident, system) |
| 519 | |
| 520 | struct xccdf_checkcxx . . $ xccdf_check# *xccdf_check_newcxx . . $ xccdf_check_new(da80f3447c0a9c45).(void) |
| 521 | { |
| 522 | struct xccdf_checkcxx . . $ xccdf_check# *check = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_checkcxx . . $ xccdf_check#)); |
| 523 | check->content_refscxx . . $ xccdf_check#content_refs. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 524 | check->importscxx . . $ xccdf_check#imports. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 525 | check->exportscxx . . $ xccdf_check#exports. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 526 | check->childrencxx . . $ xccdf_check#children. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 527 | return check; |
| 528 | } |
| 529 | |
| 530 | /* Performs a deep copy of a provided xccdf_check, returns a pointer to that copy */ |
| 531 | struct xccdf_checkcxx . . $ xccdf_check# *xccdf_check_clonecxx . . $ xccdf_check_clone(9079e062377838d0).(const struct xccdf_checkcxx . . $ xccdf_check#* old_check) |
| 532 | { |
| 533 | struct xccdf_checkcxx . . $ xccdf_check# *new_check = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_checkcxx . . $ xccdf_check#)); |
| 534 | |
| 535 | new_check->idcxx . . $ xccdf_check#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_check->idcxx . . $ xccdf_check#id.); |
| 536 | new_check->systemcxx . . $ xccdf_check#system. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_check->systemcxx . . $ xccdf_check#system.); |
| 537 | new_check->selectorcxx . . $ xccdf_check#selector. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_check->selectorcxx . . $ xccdf_check#selector.); |
| 538 | new_check->contentcxx . . $ xccdf_check#content. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_check->contentcxx . . $ xccdf_check#content.); |
| 539 | new_check->opercxx . . $ xccdf_check#oper. = old_check->opercxx . . $ xccdf_check#oper.; |
| 540 | new_check->flagscxx . . $ xccdf_check#flags. = old_check->flagscxx . . $ xccdf_check#flags.; |
| 541 | |
| 542 | new_check->importscxx . . $ xccdf_check#imports. = oscap_list_clonecxx . . $ oscap_list_clone(7e3970b01307df8e).(old_check->importscxx . . $ xccdf_check#imports., (oscap_clone_funccxx . . $ oscap_clone_func#) xccdf_check_import_clonecxx . . $ xccdf_check_import_clone(fcaa4796a058290).); |
| 543 | new_check->exportscxx . . $ xccdf_check#exports. = oscap_list_clonecxx . . $ oscap_list_clone(7e3970b01307df8e).(old_check->exportscxx . . $ xccdf_check#exports., (oscap_clone_funccxx . . $ oscap_clone_func#) xccdf_check_export_clonecxx . . $ xccdf_check_export_clone(10dac48ba64a3eae).); |
| 544 | new_check->content_refscxx . . $ xccdf_check#content_refs. = oscap_list_clonecxx . . $ oscap_list_clone(7e3970b01307df8e).(old_check->content_refscxx . . $ xccdf_check#content_refs., (oscap_clone_funccxx . . $ oscap_clone_func#) xccdf_check_content_ref_clonecxx . . $ xccdf_check_content_ref_clone(ba9c561db043db3).); |
| 545 | new_check->childrencxx . . $ xccdf_check#children. = oscap_list_clonecxx . . $ oscap_list_clone(7e3970b01307df8e).(old_check->childrencxx . . $ xccdf_check#children., (oscap_clone_funccxx . . $ oscap_clone_func#) xccdf_check_clonecxx . . $ xccdf_check_clone(9079e062377838d0).); |
| 546 | |
| 547 | return new_check; |
| 548 | } |
| 549 | |
| 550 | /* Performs a deep copy of a provided xccdf_check_import, returns a pointer to that copy */ |
| 551 | struct xccdf_check_importcxx . . $ xccdf_check_import# *xccdf_check_import_clonecxx . . $ xccdf_check_import_clone(fcaa4796a058290).(const struct xccdf_check_importcxx . . $ xccdf_check_import#* old_import) |
| 552 | { |
| 553 | struct xccdf_check_importcxx . . $ xccdf_check_import# *new_import = xccdf_check_import_newcxx . . $ xccdf_check_import_new(5847b07f8aa8ac13).(); |
| 554 | new_import->namecxx . . $ xccdf_check_import#name. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_import->namecxx . . $ xccdf_check_import#name.); |
| 555 | if (old_import->xpathcxx . . $ xccdf_check_import#xpath.) |
| 556 | new_import->xpathcxx . . $ xccdf_check_import#xpath. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_import->xpathcxx . . $ xccdf_check_import#xpath.); |
| 557 | new_import->contentcxx . . $ xccdf_check_import#content. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_import->contentcxx . . $ xccdf_check_import#content.); |
| 558 | return new_import; |
| 559 | } |
| 560 | |
| 561 | /* Performs a deep copy of a provided xccdf_check_export, returns a pointer to that copy */ |
| 562 | struct xccdf_check_exportcxx . . $ xccdf_check_export# *xccdf_check_export_clonecxx . . $ xccdf_check_export_clone(10dac48ba64a3eae).(const struct xccdf_check_exportcxx . . $ xccdf_check_export#* old_export) |
| 563 | { |
| 564 | struct xccdf_check_exportcxx . . $ xccdf_check_export# *new_export = xccdf_check_export_newcxx . . $ xccdf_check_export_new(50dd98f4644f2040).(); |
| 565 | new_export->namecxx . . $ xccdf_check_export#name. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_export->namecxx . . $ xccdf_check_export#name.); |
| 566 | new_export->valuecxx . . $ xccdf_check_export#value. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_export->valuecxx . . $ xccdf_check_export#value.); |
| 567 | return new_export; |
| 568 | } |
| 569 | |
| 570 | /* Performs a deep copy of a provided xcdf_check_content_ref, returns a pointer to that copy */ |
| 571 | struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *xccdf_check_content_ref_clonecxx . . $ xccdf_check_content_ref_clone(ba9c561db043db3).(const struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref#* old_ref) |
| 572 | { |
| 573 | struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *new_ref = xccdf_check_content_ref_newcxx . . $ xccdf_check_content_ref_new(3603a2a950f05952).(); |
| 574 | new_ref->namecxx . . $ xccdf_check_content_ref#name. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_ref->namecxx . . $ xccdf_check_content_ref#name.); |
| 575 | new_ref->hrefcxx . . $ xccdf_check_content_ref#href. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_ref->hrefcxx . . $ xccdf_check_content_ref#href.); |
| 576 | return new_ref; |
| 577 | } |
| 578 | |
| 579 | struct xccdf_checkcxx . . $ xccdf_check# *xccdf_check_parsecxx . . $ xccdf_check_parse(91f7c6d5425e84bb).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader) |
| 580 | { |
| 581 | xccdf_element_tcxx . . $ xccdf_element_t# el = xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader); |
| 582 | if (el != XCCDFE_CHECKcxx . . $ XCCDFE_CHECK. && el != XCCDFE_COMPLEX_CHECKcxx . . $ XCCDFE_COMPLEX_CHECK.) |
| 583 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 584 | struct xccdf_checkcxx . . $ xccdf_check# *check = xccdf_check_newcxx . . $ xccdf_check_new(da80f3447c0a9c45).(); |
| 585 | |
| 586 | check->idcxx . . $ xccdf_check#id. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_IDcxx . . $ XCCDFA_ID.); |
| 587 | check->systemcxx . . $ xccdf_check#system. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_SYSTEMcxx . . $ XCCDFA_SYSTEM.); |
| 588 | check->selectorcxx . . $ xccdf_check#selector. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_SELECTORcxx . . $ XCCDFA_SELECTOR.); |
| 589 | check->opercxx . . $ xccdf_check#oper. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_BOOLOP_MAPcxx . . $ XCCDF_BOOLOP_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_OPERATORcxx . . $ XCCDFA_OPERATOR.)); |
| 590 | if (xccdf_attribute_hascxx . . $ xccdf_attribute_has(5c4b5ba7d6a00a2).(reader, XCCDFA_MULTICHECKcxx . . $ XCCDFA_MULTICHECK.) && el != XCCDFE_COMPLEX_CHECKcxx . . $ XCCDFE_COMPLEX_CHECK.) { |
| 591 | check->flagscxx . . $ xccdf_check#flags..def_multicheckcxx . . $ _xccdf_check_flags#def_multicheck. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 592 | check->flagscxx . . $ xccdf_check#flags..multicheckcxx . . $ _xccdf_check_flags#multicheck. = xccdf_attribute_get_boolcxx . . $ xccdf_attribute_get_bool(5c4b5ba7d6a00a2).(reader, XCCDFA_MULTICHECKcxx . . $ XCCDFA_MULTICHECK.); |
| 593 | } |
| 594 | check->flagscxx . . $ xccdf_check#flags..def_negatecxx . . $ _xccdf_check_flags#def_negate. = xccdf_attribute_hascxx . . $ xccdf_attribute_has(5c4b5ba7d6a00a2).(reader, XCCDFA_NEGATEcxx . . $ XCCDFA_NEGATE.); |
| 595 | check->flagscxx . . $ xccdf_check#flags..negatecxx . . $ _xccdf_check_flags#negate. = xccdf_attribute_get_boolcxx . . $ xccdf_attribute_get_bool(5c4b5ba7d6a00a2).(reader, XCCDFA_NEGATEcxx . . $ XCCDFA_NEGATE.); |
| 596 | |
| 597 | int depth = oscap_element_depthcxx . . $ oscap_element_depth(82a242a19623f75).(reader) + 1; |
| 598 | |
| 599 | while (oscap_to_start_elementcxx . . $ oscap_to_start_element(c0c45fd800596ca5).(reader, depth)) { |
| 600 | switch (xccdf_element_getcxx . . $ xccdf_element_get(a5dd71d24d1f6f1).(reader)) { |
| 601 | case XCCDFE_CHECKcxx . . $ XCCDFE_CHECK.: |
| 602 | case XCCDFE_COMPLEX_CHECKcxx . . $ XCCDFE_COMPLEX_CHECK.: |
| 603 | if (check->opercxx . . $ xccdf_check#oper. == 0) |
| 604 | break; |
| 605 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(check->childrencxx . . $ xccdf_check#children., xccdf_check_parsecxx . . $ xccdf_check_parse(91f7c6d5425e84bb).(reader)); |
| 606 | break; |
| 607 | case XCCDFE_CHECK_CONTENT_REFcxx . . $ XCCDFE_CHECK_CONTENT_REF.:{ |
| 608 | const char *href = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_HREFcxx . . $ XCCDFA_HREF.); |
| 609 | if (href == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 610 | break; |
| 611 | struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *ref = xccdf_check_content_ref_newcxx . . $ xccdf_check_content_ref_new(3603a2a950f05952).(); |
| 612 | ref->namecxx . . $ xccdf_check_content_ref#name. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_NAMEcxx . . $ XCCDFA_NAME.); |
| 613 | ref->hrefcxx . . $ xccdf_check_content_ref#href. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(href); |
| 614 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(check->content_refscxx . . $ xccdf_check#content_refs., ref); |
| 615 | break; |
| 616 | } |
| 617 | case XCCDFE_CHECK_CONTENTcxx . . $ XCCDFE_CHECK_CONTENT.: |
| 618 | if (check->contentcxx . . $ xccdf_check#content. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 619 | check->contentcxx . . $ xccdf_check#content. = oscap_get_xmlcxx . . $ oscap_get_xml(93c99f8009311dd0).(reader); |
| 620 | break; |
| 621 | case XCCDFE_CHECK_IMPORTcxx . . $ XCCDFE_CHECK_IMPORT.:{ |
| 622 | const char *name = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_IMPORT_NAMEcxx . . $ XCCDFA_IMPORT_NAME.); |
| 623 | const char *xpath = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_IMPORT_XPATHcxx . . $ XCCDFA_IMPORT_XPATH.); |
| 624 | if (name == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) // @import-name is a required attribute |
| 625 | break; |
| 626 | struct xccdf_check_importcxx . . $ xccdf_check_import# *imp = xccdf_check_import_newcxx . . $ xccdf_check_import_new(5847b07f8aa8ac13).(); |
| 627 | imp->namecxx . . $ xccdf_check_import#name. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(name); |
| 628 | if (xpath) // @import-xpath is just optional |
| 629 | imp->xpathcxx . . $ xccdf_check_import#xpath. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(xpath); |
| 630 | imp->contentcxx . . $ xccdf_check_import#content. = oscap_element_string_copycxx . . $ oscap_element_string_copy(93c99f8009311dd0).(reader); |
| 631 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(check->importscxx . . $ xccdf_check#imports., imp); |
| 632 | break; |
| 633 | } |
| 634 | case XCCDFE_CHECK_EXPORTcxx . . $ XCCDFE_CHECK_EXPORT.:{ |
| 635 | const char *name = xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_EXPORT_NAMEcxx . . $ XCCDFA_EXPORT_NAME.); |
| 636 | if (name == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 637 | break; |
| 638 | struct xccdf_check_exportcxx . . $ xccdf_check_export# *exp = xccdf_check_export_newcxx . . $ xccdf_check_export_new(50dd98f4644f2040).(); |
| 639 | exp->namecxx . . $ xccdf_check_export#name. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(name); |
| 640 | exp->valuecxx . . $ xccdf_check_export#value. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_VALUE_IDcxx . . $ XCCDFA_VALUE_ID.); |
| 641 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(check->exportscxx . . $ xccdf_check#exports., exp); |
| 642 | break; |
| 643 | } |
| 644 | default: |
| 645 | break; |
| 646 | } |
| 647 | xmlTextReaderReadcxx . . $ xmlTextReaderRead(82a242a19623f75).(reader); |
| 648 | } |
| 649 | |
| 650 | return check; |
| 651 | } |
| 652 | |
| 653 | void xccdf_check_dumpcxx . . $ xccdf_check_dump(7cfabb62e50db9f8).(struct xccdf_checkcxx . . $ xccdf_check# *check, int depth) |
| 654 | { |
| 655 | if (check->idcxx . . $ xccdf_check#id.) { |
| 656 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 657 | printfcxx . . $ printf(581fddd72a8db8fc).("id : %s\n", check->idcxx . . $ xccdf_check#id.); |
| 658 | } |
| 659 | if (check->systemcxx . . $ xccdf_check#system.) { |
| 660 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 661 | printfcxx . . $ printf(581fddd72a8db8fc).("system : %s\n", check->systemcxx . . $ xccdf_check#system.); |
| 662 | } |
| 663 | if (check->selectorcxx . . $ xccdf_check#selector.) { |
| 664 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 665 | printfcxx . . $ printf(581fddd72a8db8fc).("selector: %s\n", check->selectorcxx . . $ xccdf_check#selector.); |
| 666 | } |
| 667 | if (check->contentcxx . . $ xccdf_check#content.) { |
| 668 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 669 | printfcxx . . $ printf(581fddd72a8db8fc).("content : %s\n", check->contentcxx . . $ xccdf_check#content.); |
| 670 | } |
| 671 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 672 | printfcxx . . $ printf(581fddd72a8db8fc).("content-refs"); |
| 673 | oscap_list_dumpcxx . . $ oscap_list_dump(df0831e7fcc09688).(check->content_refscxx . . $ xccdf_check#content_refs., (oscap_dump_funccxx . . $ oscap_dump_func#) xccdf_check_content_ref_dumpcxx . . $ xccdf_check_content_ref_dump(4bb00f870d238bdd)., depth + 1); |
| 674 | } |
| 675 | |
| 676 | /** |
| 677 | * Enforce given content with given name to be the only check-content of the check. |
| 678 | * This may turn to be usefull,when processing check within rule-result -- |
| 679 | * such check may (and in some cases must) refer only to the executed content. |
| 680 | */ |
| 681 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 682 | xccdf_check_inject_content_refcxx . . $ xccdf_check_inject_content_ref(fa23abb48d445643).(struct xccdf_checkcxx . . $ xccdf_check# *check, const struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *content, const char *name) |
| 683 | { |
| 684 | struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *content_clone = xccdf_check_content_ref_clonecxx . . $ xccdf_check_content_ref_clone(ba9c561db043db3).(content); |
| 685 | if (name != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 686 | xccdf_check_content_ref_set_namecxx . . $ xccdf_check_content_ref_set_name(a4354fa008926119).(content_clone, name); |
| 687 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(check->content_refscxx . . $ xccdf_check#content_refs., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_content_ref_freecxx . . $ xccdf_check_content_ref_free(b6bf9f0f19e3c1e7).); |
| 688 | check->content_refscxx . . $ xccdf_check#content_refs. = oscap_list_newcxx . . $ oscap_list_new(ea215f73c8361bff).(); |
| 689 | return oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(check->content_refscxx . . $ xccdf_check#content_refs., content_clone); |
| 690 | } |
| 691 | |
| 692 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_check_get_complexcxx . . $ xccdf_check_get_complex(ceaafcd79241aa30).(const struct xccdf_checkcxx . . $ xccdf_check# *check) |
| 693 | { |
| 694 | return check->opercxx . . $ xccdf_check#oper. ? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 695 | } |
| 696 | |
| 697 | void xccdf_check_freecxx . . $ xccdf_check_free(5c0307a75faadf5).(struct xccdf_checkcxx . . $ xccdf_check# *check) |
| 698 | { |
| 699 | if (check) { |
| 700 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(check->content_refscxx . . $ xccdf_check#content_refs., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_content_ref_freecxx . . $ xccdf_check_content_ref_free(b6bf9f0f19e3c1e7).); |
| 701 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(check->importscxx . . $ xccdf_check#imports., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_import_freecxx . . $ xccdf_check_import_free(bf09ccfe8b63061f).); |
| 702 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(check->exportscxx . . $ xccdf_check#exports., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_export_freecxx . . $ xccdf_check_export_free(b37dfbb38ee38c69).); |
| 703 | oscap_list_freecxx . . $ oscap_list_free(e68e105c3900fcc1).(check->childrencxx . . $ xccdf_check#children., (oscap_destruct_funccxx . . $ oscap_destruct_func#) xccdf_check_freecxx . . $ xccdf_check_free(5c0307a75faadf5).); |
| 704 | freecxx . . $ free(5d22bdacc48458e8).(check->idcxx . . $ xccdf_check#id.); |
| 705 | freecxx . . $ free(5d22bdacc48458e8).(check->systemcxx . . $ xccdf_check#system.); |
| 706 | freecxx . . $ free(5d22bdacc48458e8).(check->selectorcxx . . $ xccdf_check#selector.); |
| 707 | freecxx . . $ free(5d22bdacc48458e8).(check->contentcxx . . $ xccdf_check#content.); |
| 708 | freecxx . . $ free(5d22bdacc48458e8).(check); |
| 709 | } |
| 710 | } |
| 711 | |
| 712 | void xccdf_check_content_ref_dumpcxx . . $ xccdf_check_content_ref_dump(4bb00f870d238bdd).(struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *ref, int depth) |
| 713 | { |
| 714 | xccdf_print_depthcxx . . $ xccdf_print_depth(d4f767463ce0a6b3).(depth); |
| 715 | printfcxx . . $ printf(581fddd72a8db8fc).("%s (%s)\n", ref->hrefcxx . . $ xccdf_check_content_ref#href., ref->namecxx . . $ xccdf_check_content_ref#name.); |
| 716 | } |
| 717 | |
| 718 | struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *xccdf_check_content_ref_newcxx . . $ xccdf_check_content_ref_new(3603a2a950f05952).(void) |
| 719 | { |
| 720 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref#)); |
| 721 | } |
| 722 | |
| 723 | void xccdf_check_content_ref_freecxx . . $ xccdf_check_content_ref_free(b6bf9f0f19e3c1e7).(struct xccdf_check_content_refcxx . . $ xccdf_check_content_ref# *ref) |
| 724 | { |
| 725 | if (ref) { |
| 726 | freecxx . . $ free(5d22bdacc48458e8).(ref->namecxx . . $ xccdf_check_content_ref#name.); |
| 727 | freecxx . . $ free(5d22bdacc48458e8).(ref->hrefcxx . . $ xccdf_check_content_ref#href.); |
| 728 | freecxx . . $ free(5d22bdacc48458e8).(ref); |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | struct xccdf_check_importcxx . . $ xccdf_check_import# *xccdf_check_import_newcxx . . $ xccdf_check_import_new(5847b07f8aa8ac13).(void) |
| 733 | { |
| 734 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_check_importcxx . . $ xccdf_check_import#)); |
| 735 | } |
| 736 | |
| 737 | void xccdf_check_import_freecxx . . $ xccdf_check_import_free(bf09ccfe8b63061f).(struct xccdf_check_importcxx . . $ xccdf_check_import# *item) |
| 738 | { |
| 739 | if (item) { |
| 740 | freecxx . . $ free(5d22bdacc48458e8).(item->namecxx . . $ xccdf_check_import#name.); |
| 741 | freecxx . . $ free(5d22bdacc48458e8).(item->xpathcxx . . $ xccdf_check_import#xpath.); |
| 742 | freecxx . . $ free(5d22bdacc48458e8).(item->contentcxx . . $ xccdf_check_import#content.); |
| 743 | freecxx . . $ free(5d22bdacc48458e8).(item); |
| 744 | } |
| 745 | } |
| 746 | |
| 747 | struct xccdf_check_exportcxx . . $ xccdf_check_export# *xccdf_check_export_newcxx . . $ xccdf_check_export_new(50dd98f4644f2040).(void) |
| 748 | { |
| 749 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_check_exportcxx . . $ xccdf_check_export#)); |
| 750 | } |
| 751 | |
| 752 | void xccdf_check_export_freecxx . . $ xccdf_check_export_free(b37dfbb38ee38c69).(struct xccdf_check_exportcxx . . $ xccdf_check_export# *item) |
| 753 | { |
| 754 | if (item) { |
| 755 | freecxx . . $ free(5d22bdacc48458e8).(item->namecxx . . $ xccdf_check_export#name.); |
| 756 | freecxx . . $ free(5d22bdacc48458e8).(item->valuecxx . . $ xccdf_check_export#value.); |
| 757 | freecxx . . $ free(5d22bdacc48458e8).(item); |
| 758 | } |
| 759 | } |
| 760 | |
| 761 | const struct oscap_string_mapcxx . . $ oscap_string_map# XCCDF_STRATEGY_MAPcxx . . $ XCCDF_STRATEGY_MAP.[] = { |
| 762 | {XCCDF_STRATEGY_CONFIGUREcxx . . $ XCCDF_STRATEGY_CONFIGURE., "configure"}, |
| 763 | {XCCDF_STRATEGY_DISABLEcxx . . $ XCCDF_STRATEGY_DISABLE., "disable"}, |
| 764 | {XCCDF_STRATEGY_ENABLEcxx . . $ XCCDF_STRATEGY_ENABLE., "enable"}, |
| 765 | {XCCDF_STRATEGY_PATCHcxx . . $ XCCDF_STRATEGY_PATCH., "patch"}, |
| 766 | {XCCDF_STRATEGY_POLICYcxx . . $ XCCDF_STRATEGY_POLICY., "policy"}, |
| 767 | {XCCDF_STRATEGY_RESTRICTcxx . . $ XCCDF_STRATEGY_RESTRICT., "restrict"}, |
| 768 | {XCCDF_STRATEGY_UPDATEcxx . . $ XCCDF_STRATEGY_UPDATE., "update"}, |
| 769 | {XCCDF_STRATEGY_COMBINATIONcxx . . $ XCCDF_STRATEGY_COMBINATION., "combination"}, |
| 770 | {XCCDF_STRATEGY_UNKNOWNcxx . . $ XCCDF_STRATEGY_UNKNOWN., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!} |
| 771 | }; |
| 772 | |
| 773 | struct xccdf_fixcxx . . $ xccdf_fix# *xccdf_fix_newcxx . . $ xccdf_fix_new(fdd0187204002f68).(void) |
| 774 | { |
| 775 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_fixcxx . . $ xccdf_fix#)); |
| 776 | } |
| 777 | |
| 778 | /* Creates a deep copy of a provided xccdf_fix, returns a pointer to that copy */ |
| 779 | struct xccdf_fixcxx . . $ xccdf_fix# *xccdf_fix_clonecxx . . $ xccdf_fix_clone(9a7f33ce0fad32e3).(const struct xccdf_fixcxx . . $ xccdf_fix# *old_fix) |
| 780 | { |
| 781 | struct xccdf_fixcxx . . $ xccdf_fix# *new_fix = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_fixcxx . . $ xccdf_fix#)); |
| 782 | |
| 783 | new_fix->rebootcxx . . $ xccdf_fix#reboot. = old_fix->rebootcxx . . $ xccdf_fix#reboot.; |
| 784 | new_fix->strategycxx . . $ xccdf_fix#strategy. = old_fix->strategycxx . . $ xccdf_fix#strategy.; |
| 785 | new_fix->disruptioncxx . . $ xccdf_fix#disruption. = old_fix->disruptioncxx . . $ xccdf_fix#disruption.; |
| 786 | new_fix->complexitycxx . . $ xccdf_fix#complexity. = old_fix->complexitycxx . . $ xccdf_fix#complexity.; |
| 787 | |
| 788 | new_fix->idcxx . . $ xccdf_fix#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_fix->idcxx . . $ xccdf_fix#id.); |
| 789 | new_fix->contentcxx . . $ xccdf_fix#content. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_fix->contentcxx . . $ xccdf_fix#content.); |
| 790 | new_fix->systemcxx . . $ xccdf_fix#system. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_fix->systemcxx . . $ xccdf_fix#system.); |
| 791 | new_fix->platformcxx . . $ xccdf_fix#platform. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(old_fix->platformcxx . . $ xccdf_fix#platform.); |
| 792 | |
| 793 | return new_fix; |
| 794 | } |
| 795 | |
| 796 | |
| 797 | |
| 798 | struct xccdf_fixcxx . . $ xccdf_fix# *xccdf_fix_parsecxx . . $ xccdf_fix_parse(d0483b468e4b06a7).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader) |
| 799 | { |
| 800 | struct xccdf_fixcxx . . $ xccdf_fix# *fix = xccdf_fix_newcxx . . $ xccdf_fix_new(fdd0187204002f68).(); |
| 801 | fix->idcxx . . $ xccdf_fix#id. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_IDcxx . . $ XCCDFA_ID.); |
| 802 | fix->systemcxx . . $ xccdf_fix#system. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_SYSTEMcxx . . $ XCCDFA_SYSTEM.); |
| 803 | fix->platformcxx . . $ xccdf_fix#platform. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_PLATFORMcxx . . $ XCCDFA_PLATFORM.); |
| 804 | fix->rebootcxx . . $ xccdf_fix#reboot. = xccdf_attribute_get_boolcxx . . $ xccdf_attribute_get_bool(5c4b5ba7d6a00a2).(reader, XCCDFA_REBOOTcxx . . $ XCCDFA_REBOOT.); |
| 805 | fix->strategycxx . . $ xccdf_fix#strategy. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_STRATEGY_MAPcxx . . $ XCCDF_STRATEGY_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_STRATEGYcxx . . $ XCCDFA_STRATEGY.)); |
| 806 | fix->disruptioncxx . . $ xccdf_fix#disruption. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_DISRUPTIONcxx . . $ XCCDFA_DISRUPTION.)); |
| 807 | fix->complexitycxx . . $ xccdf_fix#complexity. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_COMPLEXITYcxx . . $ XCCDFA_COMPLEXITY.)); |
| 808 | fix->contentcxx . . $ xccdf_fix#content. = oscap_get_xmlcxx . . $ oscap_get_xml(93c99f8009311dd0).(reader); |
| 809 | return fix; |
| 810 | } |
| 811 | |
| 812 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# *xccdf_fixtext_newcxx . . $ xccdf_fixtext_new(d0abc313b88197bc).(void) |
| 813 | { |
| 814 | return calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(struct xccdf_fixtextcxx . . $ xccdf_fixtext#)); |
| 815 | } |
| 816 | |
| 817 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# * xccdf_fixtext_clonecxx . . $ xccdf_fixtext_clone(91e294ef9d2e1e03).(const struct xccdf_fixtextcxx . . $ xccdf_fixtext# * fixtext) |
| 818 | { |
| 819 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# * clone = xccdf_fixtext_newcxx . . $ xccdf_fixtext_new(d0abc313b88197bc).(); |
| 820 | clone->rebootcxx . . $ xccdf_fixtext#reboot. = fixtext->rebootcxx . . $ xccdf_fixtext#reboot.; |
| 821 | clone->strategycxx . . $ xccdf_fixtext#strategy. = fixtext->strategycxx . . $ xccdf_fixtext#strategy.; |
| 822 | clone->disruptioncxx . . $ xccdf_fixtext#disruption. = fixtext->disruptioncxx . . $ xccdf_fixtext#disruption.; |
| 823 | clone->complexitycxx . . $ xccdf_fixtext#complexity. = fixtext->complexitycxx . . $ xccdf_fixtext#complexity.; |
| 824 | clone->fixrefcxx . . $ xccdf_fixtext#fixref. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(fixtext->fixrefcxx . . $ xccdf_fixtext#fixref.); |
| 825 | clone->textcxx . . $ xccdf_fixtext#text. = oscap_text_clonecxx . . $ oscap_text_clone(ca1982dd7fd7b6b0).(fixtext->textcxx . . $ xccdf_fixtext#text.); |
| 826 | return clone; |
| 827 | } |
| 828 | |
| 829 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# *xccdf_fixtext_parsecxx . . $ xccdf_fixtext_parse(107dd4c91094a5e8).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader) |
| 830 | { |
| 831 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# *fix = xccdf_fixtext_newcxx . . $ xccdf_fixtext_new(d0abc313b88197bc).(); |
| 832 | fix->fixrefcxx . . $ xccdf_fixtext#fixref. = xccdf_attribute_copycxx . . $ xccdf_attribute_copy(861b5c6f59611beb).(reader, XCCDFA_FIXREFcxx . . $ XCCDFA_FIXREF.); |
| 833 | fix->textcxx . . $ xccdf_fixtext#text. = oscap_text_new_parsecxx . . $ oscap_text_new_parse(fc91cb6a8c9d272a).(XCCDF_TEXT_HTMLSUBcxx . . $ XCCDF_TEXT_HTMLSUB., reader); |
| 834 | fix->rebootcxx . . $ xccdf_fixtext#reboot. = xccdf_attribute_get_boolcxx . . $ xccdf_attribute_get_bool(5c4b5ba7d6a00a2).(reader, XCCDFA_REBOOTcxx . . $ XCCDFA_REBOOT.); |
| 835 | fix->strategycxx . . $ xccdf_fixtext#strategy. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_STRATEGY_MAPcxx . . $ XCCDF_STRATEGY_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_STRATEGYcxx . . $ XCCDFA_STRATEGY.)); |
| 836 | fix->disruptioncxx . . $ xccdf_fixtext#disruption. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_DISRUPTIONcxx . . $ XCCDFA_DISRUPTION.)); |
| 837 | fix->complexitycxx . . $ xccdf_fixtext#complexity. = oscap_string_to_enumcxx . . $ oscap_string_to_enum(851d6ce10579b7d8).(XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP., xccdf_attribute_getcxx . . $ xccdf_attribute_get(9e9cd2f6cdd20132).(reader, XCCDFA_COMPLEXITYcxx . . $ XCCDFA_COMPLEXITY.)); |
| 838 | return fix; |
| 839 | } |
| 840 | |
| 841 | void xccdf_fixtext_freecxx . . $ xccdf_fixtext_free(69fcf378619677d).(struct xccdf_fixtextcxx . . $ xccdf_fixtext# *item) |
| 842 | { |
| 843 | if (item) { |
| 844 | oscap_text_freecxx . . $ oscap_text_free(c2630df24779e845).(item->textcxx . . $ xccdf_fixtext#text.); |
| 845 | freecxx . . $ free(5d22bdacc48458e8).(item->fixrefcxx . . $ xccdf_fixtext#fixref.); |
| 846 | freecxx . . $ free(5d22bdacc48458e8).(item); |
| 847 | } |
| 848 | } |
| 849 | |
| 850 | void xccdf_fix_freecxx . . $ xccdf_fix_free(c140d0eff936239d).(struct xccdf_fixcxx . . $ xccdf_fix# *item) |
| 851 | { |
| 852 | if (item) { |
| 853 | freecxx . . $ free(5d22bdacc48458e8).(item->idcxx . . $ xccdf_fix#id.); |
| 854 | freecxx . . $ free(5d22bdacc48458e8).(item->systemcxx . . $ xccdf_fix#system.); |
| 855 | freecxx . . $ free(5d22bdacc48458e8).(item->platformcxx . . $ xccdf_fix#platform.); |
| 856 | freecxx . . $ free(5d22bdacc48458e8).(item->contentcxx . . $ xccdf_fix#content.); |
| 857 | freecxx . . $ free(5d22bdacc48458e8).(item); |
| 858 | } |
| 859 | } |
| 860 | |
| 861 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *xccdf_item_get_conflictscxx . . $ xccdf_item_get_conflicts(aa681965e3ad4ccf).(const struct xccdf_itemcxx . . $ xccdf_item#* item) |
| 862 | { |
| 863 | if (item == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 864 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_RULEcxx . . $ XCCDF_RULE.) return xccdf_rule_get_conflictscxx . . $ xccdf_rule_get_conflicts(9e2f62e8f19f5403). ( XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(item)); |
| 865 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_GROUPcxx . . $ XCCDF_GROUP.) return xccdf_group_get_conflictscxx . . $ xccdf_group_get_conflicts(5344bdd86a59aeab).(XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(item)); |
| 866 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 867 | } |
| 868 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *xccdf_rule_get_conflictscxx . . $ xccdf_rule_get_conflicts(9e2f62e8f19f5403).(const struct xccdf_rulecxx . . $ xccdf_rule#* rule) |
| 869 | { |
| 870 | return oscap_iterator_newcxx . . $ oscap_iterator_new(f89fb456dfd589d7).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..conflictscxx . . $ xccdf_rule_item#conflicts.); |
| 871 | } |
| 872 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *xccdf_group_get_conflictscxx . . $ xccdf_group_get_conflicts(5344bdd86a59aeab).(const struct xccdf_groupcxx . . $ xccdf_group#* group) |
| 873 | { |
| 874 | return oscap_iterator_newcxx . . $ oscap_iterator_new(f89fb456dfd589d7).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..conflictscxx . . $ xccdf_group_item#conflicts.); |
| 875 | } |
| 876 | |
| 877 | struct oscap_stringlist_iteratorcxx . . $ oscap_stringlist_iterator# *xccdf_item_get_requirescxx . . $ xccdf_item_get_requires(4162f05d84d02d26).(const struct xccdf_itemcxx . . $ xccdf_item#* item) |
| 878 | { |
| 879 | if (item == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 880 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_RULEcxx . . $ XCCDF_RULE.) return xccdf_rule_get_requirescxx . . $ xccdf_rule_get_requires(8c86636c55548ddc). ( XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(item)); |
| 881 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_GROUPcxx . . $ XCCDF_GROUP.) return xccdf_group_get_requirescxx . . $ xccdf_group_get_requires(898c24d9c18f1356).(XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(item)); |
| 882 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 883 | } |
| 884 | struct oscap_stringlist_iteratorcxx . . $ oscap_stringlist_iterator# *xccdf_rule_get_requirescxx . . $ xccdf_rule_get_requires(8c86636c55548ddc).(const struct xccdf_rulecxx . . $ xccdf_rule#* rule) |
| 885 | { |
| 886 | return oscap_iterator_newcxx . . $ oscap_iterator_new(f89fb456dfd589d7).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..requires_cxx . . $ xccdf_rule_item#requires_.); |
| 887 | } |
| 888 | struct oscap_stringlist_iteratorcxx . . $ oscap_stringlist_iterator# *xccdf_group_get_requirescxx . . $ xccdf_group_get_requires(898c24d9c18f1356).(const struct xccdf_groupcxx . . $ xccdf_group#* group) |
| 889 | { |
| 890 | return oscap_iterator_newcxx . . $ oscap_iterator_new(f89fb456dfd589d7).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..requires_cxx . . $ xccdf_group_item#requires_.); |
| 891 | } |
| 892 | |
| 893 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_rule_add_requirescxx . . $ xccdf_rule_add_requires(8965ee213cf84292).(struct xccdf_rulecxx . . $ xccdf_rule#* rule, struct oscap_stringlistcxx . . $ oscap_stringlist#* requires_) |
| 894 | { |
| 895 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..requires_cxx . . $ xccdf_rule_item#requires_., requires_); |
| 896 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 897 | } |
| 898 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_group_add_requirescxx . . $ xccdf_group_add_requires(94b3617648511153).(struct xccdf_groupcxx . . $ xccdf_group#* group, struct oscap_stringlistcxx . . $ oscap_stringlist#* requires_) |
| 899 | { |
| 900 | oscap_list_addcxx . . $ oscap_list_add(97f28760a5cf7823).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..requires_cxx . . $ xccdf_group_item#requires_., requires_); |
| 901 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 902 | } |
| 903 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_item_add_requirescxx . . $ xccdf_item_add_requires(1ea9eaf119b506d4).(struct xccdf_itemcxx . . $ xccdf_item#* item, struct oscap_stringlistcxx . . $ oscap_stringlist#* requires_) |
| 904 | { |
| 905 | if (item == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 906 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_RULEcxx . . $ XCCDF_RULE.) return xccdf_rule_add_requirescxx . . $ xccdf_rule_add_requires(8965ee213cf84292). ( XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(item), requires_); |
| 907 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_GROUPcxx . . $ XCCDF_GROUP.) return xccdf_group_add_requirescxx . . $ xccdf_group_add_requires(94b3617648511153).(XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(item), requires_); |
| 908 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 909 | } |
| 910 | |
| 911 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_rule_add_conflictscxx . . $ xccdf_rule_add_conflicts(ab4918a9b8c7811e).(struct xccdf_rulecxx . . $ xccdf_rule#* rule, const char* conflicts) |
| 912 | { |
| 913 | oscap_stringlist_add_stringcxx . . $ oscap_stringlist_add_string(80c12aaea9c014af).((struct oscap_stringlistcxx . . $ oscap_stringlist#*)(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)->subcxx . . $ xccdf_item#sub..rulecxx . . $ xccdf_item#$anonymous_type_1#rule..conflictscxx . . $ xccdf_rule_item#conflicts.), conflicts); |
| 914 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 915 | } |
| 916 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_group_add_conflictscxx . . $ xccdf_group_add_conflicts(af27815a81a2e945).(struct xccdf_groupcxx . . $ xccdf_group#* group, const char* conflicts) |
| 917 | { |
| 918 | oscap_stringlist_add_stringcxx . . $ oscap_stringlist_add_string(80c12aaea9c014af).((struct oscap_stringlistcxx . . $ oscap_stringlist#*)(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->subcxx . . $ xccdf_item#sub..groupcxx . . $ xccdf_item#$anonymous_type_1#group..conflictscxx . . $ xccdf_group_item#conflicts.), conflicts); |
| 919 | return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; |
| 920 | } |
| 921 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_item_add_conflictscxx . . $ xccdf_item_add_conflicts(f2a91ef87fc649ce).(struct xccdf_itemcxx . . $ xccdf_item#* item, const char* conflicts) |
| 922 | { |
| 923 | if (item == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 924 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_RULEcxx . . $ XCCDF_RULE.) return xccdf_rule_add_conflictscxx . . $ xccdf_rule_add_conflicts(ab4918a9b8c7811e). ( XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(item), conflicts); |
| 925 | if (item->typecxx . . $ xccdf_item#type. == XCCDF_GROUPcxx . . $ XCCDF_GROUP.) return xccdf_group_add_conflictscxx . . $ xccdf_group_add_conflicts(af27815a81a2e945).(XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(item), conflicts); |
| 926 | return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 927 | } |
| 928 | |
| 929 | |
| 930 | void xccdf_rule_to_domcxx . . $ xccdf_rule_to_dom(95abb6c5e85021f7).(struct xccdf_rulecxx . . $ xccdf_rule# *rule, xmlNodecxx . . $ xmlNode# *rule_node, xmlDoccxx . . $ xmlDoc# *doc, xmlNodecxx . . $ xmlNode# *parent) |
| 931 | { |
| 932 | const struct xccdf_version_infocxx . . $ xccdf_version_info#* version_info = xccdf_item_get_schema_versioncxx . . $ xccdf_item_get_schema_version(a15732c9a5bba7d0).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)); |
| 933 | xmlNscxx . . $ xmlNs# *ns_xccdf = lookup_xccdf_nscxx . . $ lookup_xccdf_ns(145fb009c13e3a1).(doc, parent, version_info); |
| 934 | |
| 935 | /* Handle Attributes */ |
| 936 | const char *extends = xccdf_rule_get_extendscxx . . $ xccdf_rule_get_extends(f04cd2d7bd5fa08a).(rule); |
| 937 | if (extends) |
| 938 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "extends", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! extends); |
| 939 | |
| 940 | if (xccdf_rule_get_multiplecxx . . $ xccdf_rule_get_multiple(3359d783637f350f).(rule)) |
| 941 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "multiple", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "true"); |
| 942 | |
| 943 | if (xccdf_rule_get_selectedcxx . . $ xccdf_rule_get_selected(3359d783637f350f).(rule)) |
| 944 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "selected", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "true"); |
| 945 | else |
| 946 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "selected", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "false"); |
| 947 | |
| 948 | if (XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(rule)->itemcxx . . $ xccdf_item#item..defined_flagscxx . . $ xccdf_item_base#defined_flags..weightcxx . . $ xccdf_defflags#weight.) { |
| 949 | char *weight_str = oscap_sprintfcxx . . $ oscap_sprintf(a849077ff1b8d812).("%f", xccdf_rule_get_weightcxx . . $ xccdf_rule_get_weight(42ee48c6d74abf6d).(rule)); |
| 950 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "weight", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! weight_str); |
| 951 | freecxx . . $ free(5d22bdacc48458e8).(weight_str); |
| 952 | } |
| 953 | |
| 954 | xccdf_role_tcxx . . $ xccdf_role_t# role = xccdf_rule_get_rolecxx . . $ xccdf_rule_get_role(650bae5cc56a05f).(rule); |
| 955 | if (role != 0) |
| 956 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "role", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! XCCDF_ROLE_MAPcxx . . $ XCCDF_ROLE_MAP.[role - 1].stringcxx . . $ oscap_string_map#string.); |
| 957 | |
| 958 | xccdf_level_tcxx . . $ xccdf_level_t# severity = xccdf_rule_get_severitycxx . . $ xccdf_rule_get_severity(ca5871e1866e8ad4).(rule); |
| 959 | if (severity != XCCDF_LEVEL_NOT_DEFINEDcxx . . $ XCCDF_LEVEL_NOT_DEFINED.) |
| 960 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(rule_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "severity", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! XCCDF_LEVEL_MAPcxx . . $ XCCDF_LEVEL_MAP.[severity - 1].stringcxx . . $ oscap_string_map#string.); |
| 961 | |
| 962 | /* Handle Child Nodes */ |
| 963 | xccdf_texts_to_domcxx . . $ xccdf_texts_to_dom(c13e4d88df8e39b1).(xccdf_rule_get_rationalecxx . . $ xccdf_rule_get_rationale(c0482d228818cb6b).(rule), rule_node, "rationale"); |
| 964 | |
| 965 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *platforms = xccdf_rule_get_platformscxx . . $ xccdf_rule_get_platforms(9e2f62e8f19f5403).(rule); |
| 966 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(platforms)) { |
| 967 | const char *platform = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(platforms); |
| 968 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(rule_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "platform", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 969 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! platform); |
| 970 | } |
| 971 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(platforms); |
| 972 | |
| 973 | struct oscap_stringlist_iteratorcxx . . $ oscap_stringlist_iterator# *lists = xccdf_rule_get_requirescxx . . $ xccdf_rule_get_requires(8c86636c55548ddc).(rule); |
| 974 | while (oscap_stringlist_iterator_has_morecxx . . $ oscap_stringlist_iterator_has_more(36a5096ea135105).(lists)) { |
| 975 | struct oscap_stringlistcxx . . $ oscap_stringlist# *list = oscap_stringlist_iterator_nextcxx . . $ oscap_stringlist_iterator_next(bc2d458b6c9aa3b8).(lists); |
| 976 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *strings = oscap_stringlist_get_stringscxx . . $ oscap_stringlist_get_strings(13be827fcd32d2b9).(list); |
| 977 | struct oscap_stringcxx . . $ oscap_string# *all_requires = oscap_string_newcxx . . $ oscap_string_new(a2a7aea7d1de9315).(); |
| 978 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(strings)) { |
| 979 | const char *requires = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(strings); |
| 980 | if (!oscap_string_emptycxx . . $ oscap_string_empty(7916fe0434b4321e).(all_requires)) |
| 981 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(all_requires, " "); |
| 982 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(all_requires, requires); |
| 983 | } |
| 984 | const char *all_reqs = oscap_string_get_cstrcxx . . $ oscap_string_get_cstr(4dc31ca86595c117).(all_requires); |
| 985 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(rule_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "requires", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 986 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! all_reqs); |
| 987 | oscap_string_freecxx . . $ oscap_string_free(bf7769a094bde656).(all_requires); |
| 988 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(strings); |
| 989 | } |
| 990 | oscap_stringlist_iterator_freecxx . . $ oscap_stringlist_iterator_free(8dac3ebbe1cd8b03).(lists); |
| 991 | |
| 992 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *conflicts = xccdf_rule_get_conflictscxx . . $ xccdf_rule_get_conflicts(9e2f62e8f19f5403).(rule); |
| 993 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(conflicts)) { |
| 994 | const char *conflict = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(conflicts); |
| 995 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(rule_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "conflicts", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 996 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! conflict); |
| 997 | } |
| 998 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(conflicts); |
| 999 | |
| 1000 | struct xccdf_ident_iteratorcxx . . $ xccdf_ident_iterator# *idents = xccdf_rule_get_identscxx . . $ xccdf_rule_get_idents(a0e3f5394b5a0b4c).(rule); |
| 1001 | while (xccdf_ident_iterator_has_morecxx . . $ xccdf_ident_iterator_has_more(9cd00765e4887e1a).(idents)) { |
| 1002 | struct xccdf_identcxx . . $ xccdf_ident# *ident = xccdf_ident_iterator_nextcxx . . $ xccdf_ident_iterator_next(980350b3dadb3f34).(idents); |
| 1003 | xccdf_ident_to_domcxx . . $ xccdf_ident_to_dom(1b85a4fa2445e286).(ident, doc, rule_node, version_info); |
| 1004 | } |
| 1005 | xccdf_ident_iterator_freecxx . . $ xccdf_ident_iterator_free(24490d322c8816ab).(idents); |
| 1006 | |
| 1007 | struct xccdf_profile_note_iteratorcxx . . $ xccdf_profile_note_iterator# *notes = xccdf_rule_get_profile_notescxx . . $ xccdf_rule_get_profile_notes(ecde7676a66fbcdd).(rule); |
| 1008 | while (xccdf_profile_note_iterator_has_morecxx . . $ xccdf_profile_note_iterator_has_more(a90d280cd35f74ee).(notes)) { |
| 1009 | struct xccdf_profile_notecxx . . $ xccdf_profile_note# *note = xccdf_profile_note_iterator_nextcxx . . $ xccdf_profile_note_iterator_next(dbc0718b2bc5c364).(notes); |
| 1010 | xccdf_profile_note_to_domcxx . . $ xccdf_profile_note_to_dom(b58d6441255950f6).(note, doc, rule_node); |
| 1011 | } |
| 1012 | xccdf_profile_note_iterator_freecxx . . $ xccdf_profile_note_iterator_free(1c633a619d155f51).(notes); |
| 1013 | |
| 1014 | struct xccdf_fixtext_iteratorcxx . . $ xccdf_fixtext_iterator# *fixtexts = xccdf_rule_get_fixtextscxx . . $ xccdf_rule_get_fixtexts(36aa771fcfd2b0e9).(rule); |
| 1015 | while (xccdf_fixtext_iterator_has_morecxx . . $ xccdf_fixtext_iterator_has_more(a1bf98fd546f87a).(fixtexts)) { |
| 1016 | struct xccdf_fixtextcxx . . $ xccdf_fixtext# *fixtext = xccdf_fixtext_iterator_nextcxx . . $ xccdf_fixtext_iterator_next(b2f08b77128222dc).(fixtexts); |
| 1017 | xccdf_fixtext_to_domcxx . . $ xccdf_fixtext_to_dom(ea9e616dc4619b09).(fixtext, doc, rule_node); |
| 1018 | } |
| 1019 | xccdf_fixtext_iterator_freecxx . . $ xccdf_fixtext_iterator_free(584ed1dd2ec43df4).(fixtexts); |
| 1020 | |
| 1021 | struct xccdf_fix_iteratorcxx . . $ xccdf_fix_iterator# *fixes = xccdf_rule_get_fixescxx . . $ xccdf_rule_get_fixes(b9bf97642392b364).(rule); |
| 1022 | while (xccdf_fix_iterator_has_morecxx . . $ xccdf_fix_iterator_has_more(8344f4a32c58f139).(fixes)) { |
| 1023 | struct xccdf_fixcxx . . $ xccdf_fix# *fix = xccdf_fix_iterator_nextcxx . . $ xccdf_fix_iterator_next(9a95ad7b0146f43c).(fixes); |
| 1024 | xccdf_fix_to_domcxx . . $ xccdf_fix_to_dom(20dcfd4d69b8f8e8).(fix, doc, rule_node, version_info); |
| 1025 | } |
| 1026 | xccdf_fix_iterator_freecxx . . $ xccdf_fix_iterator_free(a510a8e9c8cea220).(fixes); |
| 1027 | |
| 1028 | struct xccdf_check_iteratorcxx . . $ xccdf_check_iterator# *checks = xccdf_rule_get_checkscxx . . $ xccdf_rule_get_checks(ae88bd66bcaa297a).(rule); |
| 1029 | while (xccdf_check_iterator_has_morecxx . . $ xccdf_check_iterator_has_more(644a620a92cf84a7).(checks)) { |
| 1030 | struct xccdf_checkcxx . . $ xccdf_check# *check = xccdf_check_iterator_nextcxx . . $ xccdf_check_iterator_next(a435bf31c65e745a).(checks); |
| 1031 | xccdf_check_to_domcxx . . $ xccdf_check_to_dom(9632601fe73cd180).(check, doc, rule_node, version_info); |
| 1032 | } |
| 1033 | xccdf_check_iterator_freecxx . . $ xccdf_check_iterator_free(dcf67c9af31da2e3).(checks); |
| 1034 | } |
| 1035 | |
| 1036 | void xccdf_group_to_domcxx . . $ xccdf_group_to_dom(c3578792c37948aa).(struct xccdf_groupcxx . . $ xccdf_group# *group, xmlNodecxx . . $ xmlNode# *group_node, xmlDoccxx . . $ xmlDoc# *doc, xmlNodecxx . . $ xmlNode# *parent) |
| 1037 | { |
| 1038 | const struct xccdf_version_infocxx . . $ xccdf_version_info#* version_info = xccdf_item_get_schema_versioncxx . . $ xccdf_item_get_schema_version(a15732c9a5bba7d0).(XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)); |
| 1039 | xmlNscxx . . $ xmlNs# *ns_xccdf = lookup_xccdf_nscxx . . $ lookup_xccdf_ns(145fb009c13e3a1).(doc, parent, version_info); |
| 1040 | |
| 1041 | /* Handle Attributes */ |
| 1042 | const char *extends = xccdf_group_get_extendscxx . . $ xccdf_group_get_extends(fed1cedc26fddb9f).(group); |
| 1043 | if (extends) |
| 1044 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(group_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "extends", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! extends); |
| 1045 | |
| 1046 | if (XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->itemcxx . . $ xccdf_item#item..defined_flagscxx . . $ xccdf_item_base#defined_flags..selectedcxx . . $ xccdf_defflags#selected.) { |
| 1047 | if (xccdf_group_get_selectedcxx . . $ xccdf_group_get_selected(439968a624086c37).(group)) |
| 1048 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(group_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "selected", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "true"); |
| 1049 | else |
| 1050 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(group_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "selected", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "false"); |
| 1051 | } |
| 1052 | |
| 1053 | if (XITEMcxx . . $ `src/XCCDF/helpers.h:35:9`!(group)->itemcxx . . $ xccdf_item#item..defined_flagscxx . . $ xccdf_item_base#defined_flags..weightcxx . . $ xccdf_defflags#weight.) { |
| 1054 | float weight = xccdf_group_get_weightcxx . . $ xccdf_group_get_weight(527901b41ec149ee).(group); |
| 1055 | char *weight_str = oscap_sprintfcxx . . $ oscap_sprintf(a849077ff1b8d812).("%f", weight); |
| 1056 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(group_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "weight", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! weight_str); |
| 1057 | freecxx . . $ free(5d22bdacc48458e8).(weight_str); |
| 1058 | } |
| 1059 | |
| 1060 | /* Handle Child Nodes */ |
| 1061 | xccdf_texts_to_domcxx . . $ xccdf_texts_to_dom(c13e4d88df8e39b1).(xccdf_group_get_rationalecxx . . $ xccdf_group_get_rationale(9efe977d5a916823).(group), group_node, "rationale"); |
| 1062 | |
| 1063 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *platforms = xccdf_group_get_platformscxx . . $ xccdf_group_get_platforms(5344bdd86a59aeab).(group); |
| 1064 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(platforms)) { |
| 1065 | const char *platform = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(platforms); |
| 1066 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(group_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "platform", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1067 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! platform); |
| 1068 | } |
| 1069 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(platforms); |
| 1070 | |
| 1071 | struct oscap_stringlist_iteratorcxx . . $ oscap_stringlist_iterator# *lists = xccdf_group_get_requirescxx . . $ xccdf_group_get_requires(898c24d9c18f1356).(group); |
| 1072 | while (oscap_stringlist_iterator_has_morecxx . . $ oscap_stringlist_iterator_has_more(36a5096ea135105).(lists)) { |
| 1073 | struct oscap_stringlistcxx . . $ oscap_stringlist# *list = oscap_stringlist_iterator_nextcxx . . $ oscap_stringlist_iterator_next(bc2d458b6c9aa3b8).(lists); |
| 1074 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *strings = oscap_stringlist_get_stringscxx . . $ oscap_stringlist_get_strings(13be827fcd32d2b9).(list); |
| 1075 | struct oscap_stringcxx . . $ oscap_string# *all_requires = oscap_string_newcxx . . $ oscap_string_new(a2a7aea7d1de9315).(); |
| 1076 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(strings)) { |
| 1077 | const char *requires = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(strings); |
| 1078 | if (!oscap_string_emptycxx . . $ oscap_string_empty(7916fe0434b4321e).(all_requires)) |
| 1079 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(all_requires, " "); |
| 1080 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(all_requires, requires); |
| 1081 | } |
| 1082 | const char *all_reqs = oscap_string_get_cstrcxx . . $ oscap_string_get_cstr(4dc31ca86595c117).(all_requires); |
| 1083 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(group_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "requires", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1084 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! all_reqs); |
| 1085 | oscap_string_freecxx . . $ oscap_string_free(bf7769a094bde656).(all_requires); |
| 1086 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(strings); |
| 1087 | } |
| 1088 | oscap_stringlist_iterator_freecxx . . $ oscap_stringlist_iterator_free(8dac3ebbe1cd8b03).(lists); |
| 1089 | |
| 1090 | struct oscap_string_iteratorcxx . . $ oscap_string_iterator# *conflicts = xccdf_group_get_conflictscxx . . $ xccdf_group_get_conflicts(5344bdd86a59aeab).(group); |
| 1091 | while (oscap_string_iterator_has_morecxx . . $ oscap_string_iterator_has_more(3724f2faf2515a82).(conflicts)) { |
| 1092 | const char *conflict = oscap_string_iterator_nextcxx . . $ oscap_string_iterator_next(1f2a9ae2534eef34).(conflicts); |
| 1093 | xmlNodecxx . . $ xmlNode# * child = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(group_node, ns_xccdf, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "conflicts", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1094 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(child, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "idref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! conflict); |
| 1095 | } |
| 1096 | oscap_string_iterator_freecxx . . $ oscap_string_iterator_free(41a77e9ce361f406).(conflicts); |
| 1097 | |
| 1098 | struct xccdf_value_iteratorcxx . . $ xccdf_value_iterator# *values = xccdf_group_get_valuescxx . . $ xccdf_group_get_values(e98be977e40fa4cf).(group); |
| 1099 | while (xccdf_value_iterator_has_morecxx . . $ xccdf_value_iterator_has_more(bc25df683f527b01).(values)) { |
| 1100 | struct xccdf_valuecxx . . $ xccdf_value# *value = xccdf_value_iterator_nextcxx . . $ xccdf_value_iterator_next(7466feec91220de5).(values); |
| 1101 | if (XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(xccdf_value_get_parent(value)) == group) { |
| 1102 | xccdf_item_to_domcxx . . $ xccdf_item_to_dom(974faac3a53a529f).((struct xccdf_itemcxx . . $ xccdf_item# *)value, doc, group_node, version_info); |
| 1103 | } |
| 1104 | } |
| 1105 | xccdf_value_iterator_freecxx . . $ xccdf_value_iterator_free(ba449c68b21eaa11).(values); |
| 1106 | |
| 1107 | struct xccdf_item_iteratorcxx . . $ xccdf_item_iterator# *items = xccdf_group_get_contentcxx . . $ xccdf_group_get_content(cff1b1d0a9b9d63).(group); |
| 1108 | while (xccdf_item_iterator_has_morecxx . . $ xccdf_item_iterator_has_more(c8a83ac60f16d388).(items)) { |
| 1109 | struct xccdf_itemcxx . . $ xccdf_item# *item = xccdf_item_iterator_nextcxx . . $ xccdf_item_iterator_next(73e3c3f4fb48321d).(items); |
| 1110 | if (XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(xccdf_item_get_parent(item)) == group) { |
| 1111 | xccdf_item_to_domcxx . . $ xccdf_item_to_dom(974faac3a53a529f).(item, doc, group_node, version_info); |
| 1112 | } |
| 1113 | } |
| 1114 | xccdf_item_iterator_freecxx . . $ xccdf_item_iterator_free(5a27e088a1e93c63).(items); |
| 1115 | |
| 1116 | } |
| 1117 | |
| 1118 | struct oscap_stringlistcxx . . $ oscap_stringlist# *xccdf_rule_get_warnings_stringscxx . . $ xccdf_rule_get_warnings_strings(b9f9b705ef6a9d70).(struct xccdf_rulecxx . . $ xccdf_rule# *rule) |
| 1119 | { |
| 1120 | struct oscap_stringlistcxx . . $ oscap_stringlist# *warnings_list = oscap_stringlist_newcxx . . $ oscap_stringlist_new(22a991cfbca9a1c).(); |
| 1121 | /* Handle generic item child nodes */ |
| 1122 | struct xccdf_warning_iteratorcxx . . $ xccdf_warning_iterator# *warnings = xccdf_rule_get_warningscxx . . $ xccdf_rule_get_warnings(ee21f3f6f62e89fd).(rule); |
| 1123 | while (xccdf_warning_iterator_has_morecxx . . $ xccdf_warning_iterator_has_more(41adbe5be2d1070b).(warnings)) { |
| 1124 | struct xccdf_warningcxx . . $ xccdf_warning# *warning = xccdf_warning_iterator_nextcxx . . $ xccdf_warning_iterator_next(ada56af3240021a1).(warnings); |
| 1125 | struct oscap_textcxx . . $ oscap_text# *warning_text = xccdf_warning_get_textcxx . . $ xccdf_warning_get_text(71dc22568ea0a557).(warning); |
| 1126 | const char *warning_cstr = oscap_text_get_textcxx . . $ oscap_text_get_text(ba0993cb6b641422).(warning_text); |
| 1127 | char *warning_plaintext = _xhtml_to_plaintextcxx . . $ _xhtml_to_plaintext(a8b8e32347182212).(warning_cstr); |
| 1128 | oscap_stringlist_add_stringcxx . . $ oscap_stringlist_add_string(80c12aaea9c014af).(warnings_list, warning_plaintext); |
| 1129 | freecxx . . $ free(5d22bdacc48458e8).(warning_plaintext); |
| 1130 | } |
| 1131 | xccdf_warning_iterator_freecxx . . $ xccdf_warning_iterator_free(c611ac5db4f923c).(warnings); |
| 1132 | return warnings_list; |
| 1133 | } |
| 1134 | |
| 1135 | XCCDF_STATUS_CURRENTcxx . . $ `src/XCCDF/helpers.h:39:9`!(rule) |
| 1136 | XCCDF_STATUS_CURRENTcxx . . $ `src/XCCDF/helpers.h:39:9`!(group) |
| 1137 | XCCDF_GROUP_IGETTERcxx . . $ `src/XCCDF/helpers.h:91:9`!(item, content) |
| 1138 | XCCDF_GROUP_IGETTERcxx . . $ `src/XCCDF/helpers.h:91:9`!(value, values) |
| 1139 | |
| 1140 | XCCDF_ITEM_ADDER_REGcxx . . $ `src/XCCDF/helpers.h:206:9`!(group, rule, content) |
| 1141 | XCCDF_ITEM_ADDER_REGcxx . . $ `src/XCCDF/helpers.h:206:9`!(group, group, content) |
| 1142 | XCCDF_ITEM_ADDER_REGcxx . . $ `src/XCCDF/helpers.h:206:9`!(group, value, values) |
| 1143 | |
| 1144 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! xccdf_group_add_contentcxx . . $ xccdf_group_add_content(59a95485d1c1eb4f).(struct xccdf_groupcxx . . $ xccdf_group# *rule, struct xccdf_itemcxx . . $ xccdf_item# *item) |
| 1145 | { |
| 1146 | if (item == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 1147 | switch (xccdf_item_get_typecxx . . $ xccdf_item_get_type(3d8d48c673cd637b).(item)) { |
| 1148 | case XCCDF_RULEcxx . . $ XCCDF_RULE.: return xccdf_group_add_rulecxx . . $ xccdf_group_add_rule(5ddf21586ee325d1). (rule, XRULEcxx . . $ `src/XCCDF/helpers.h:34:9`!(item)); |
| 1149 | case XCCDF_GROUPcxx . . $ XCCDF_GROUP.: return xccdf_group_add_groupcxx . . $ xccdf_group_add_group(6b2e860913d65491).(rule, XGROUPcxx . . $ `src/XCCDF/helpers.h:33:9`!(item)); |
| 1150 | case XCCDF_VALUEcxx . . $ XCCDF_VALUE.: return xccdf_group_add_valuecxx . . $ xccdf_group_add_value(46e21f86ed7650af).(rule, XVALUEcxx . . $ `src/XCCDF/helpers.h:36:9`!(item)); |
| 1151 | default: return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; |
| 1152 | } |
| 1153 | } |
| 1154 | |
| 1155 | XCCDF_ACCESSOR_STRINGcxx . . $ `src/XCCDF/helpers.h:113:9`!(rule, impact_metric) |
| 1156 | XCCDF_ACCESSOR_SIMPLEcxx . . $ `src/XCCDF/helpers.h:115:9`!(rule, xccdf_role_t, role) |
| 1157 | XCCDF_ACCESSOR_SIMPLEcxx . . $ `src/XCCDF/helpers.h:115:9`!(rule, xccdf_level_t, severity) |
| 1158 | XCCDF_LISTMANIPcxx . . $ `src/XCCDF/helpers.h:122:9`!(rule, ident, idents) |
| 1159 | XCCDF_LISTMANIPcxx . . $ `src/XCCDF/helpers.h:122:9`!(rule, check, checks) |
| 1160 | XCCDF_LISTMANIPcxx . . $ `src/XCCDF/helpers.h:122:9`!(rule, profile_note, profile_notes) |
| 1161 | XCCDF_LISTMANIPcxx . . $ `src/XCCDF/helpers.h:122:9`!(rule, fix, fixes) |
| 1162 | XCCDF_LISTMANIPcxx . . $ `src/XCCDF/helpers.h:122:9`!(rule, fixtext, fixtexts) |
| 1163 | XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(ident) |
| 1164 | |
| 1165 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check, id) |
| 1166 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check, system) |
| 1167 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check, selector) |
| 1168 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check, content) |
| 1169 | OSCAP_ACCESSOR_EXPcxx . . $ `src/common/util.h:265:9`!(boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`!, xccdf_check, multicheck, flags.multicheck) |
| 1170 | OSCAP_ACCESSOR_EXPcxx . . $ `src/common/util.h:265:9`!(boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`!, xccdf_check, negate, flags.negate); |
| 1171 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_bool_operator_t, xccdf_check, oper) |
| 1172 | OSCAP_IGETINScxx . . $ `src/common/util.h:283:9`!(xccdf_check_import, xccdf_check, imports, import) |
| 1173 | OSCAP_IGETINScxx . . $ `src/common/util.h:283:9`!(xccdf_check_export, xccdf_check, exports, export) |
| 1174 | OSCAP_IGETINScxx . . $ `src/common/util.h:283:9`!(xccdf_check_content_ref, xccdf_check, content_refs, content_ref) |
| 1175 | OSCAP_IGETINScxx . . $ `src/common/util.h:283:9`!(xccdf_check, xccdf_check, children, child) |
| 1176 | XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(check_content_ref) |
| 1177 | XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(check_export) XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(check_import) XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(check) |
| 1178 | |
| 1179 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_profile_note, reftag) OSCAP_ACCESSOR_TEXTcxx . . $ `src/common/util.h:251:9`!(xccdf_profile_note, text) |
| 1180 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_import, name) OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_import, xpath) |
| 1181 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_import, content) |
| 1182 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_export, name) OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_export, value) |
| 1183 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_content_ref, name) OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_check_content_ref, href) |
| 1184 | |
| 1185 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_strategy_t, xccdf_fixtext, strategy) |
| 1186 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_level_t, xccdf_fixtext, disruption) |
| 1187 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_level_t, xccdf_fixtext, complexity) |
| 1188 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`!, xccdf_fixtext, reboot) |
| 1189 | OSCAP_ACCESSOR_TEXTcxx . . $ `src/common/util.h:251:9`!(xccdf_fixtext, text) |
| 1190 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_fixtext, fixref) |
| 1191 | XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(fixtext) |
| 1192 | |
| 1193 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_strategy_t, xccdf_fix, strategy) |
| 1194 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_level_t, xccdf_fix, disruption) |
| 1195 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(xccdf_level_t, xccdf_fix, complexity) |
| 1196 | OSCAP_ACCESSOR_SIMPLEcxx . . $ `src/common/util.h:258:9`!(boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`!, xccdf_fix, reboot) |
| 1197 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_fix, content) |
| 1198 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_fix, system) |
| 1199 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_fix, platform) |
| 1200 | OSCAP_ACCESSOR_STRINGcxx . . $ `src/common/util.h:245:9`!(xccdf_fix, id) |
| 1201 | XCCDF_ITERATOR_GEN_Scxx . . $ `src/XCCDF/helpers.h:218:9`!(fix) |
| 1202 |