| 1 | /** |
| 2 | * @file oval_test.c |
| 3 | * \brief Open Vulnerability and Assessment Language |
| 4 | * |
| 5 | * See more details at http://oval.mitre.org/ |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * Copyright 2009--2013 Red Hat Inc., Durham, North Carolina. |
| 10 | * All Rights Reserved. |
| 11 | * |
| 12 | * This library is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU Lesser General Public |
| 14 | * License as published by the Free Software Foundation; either |
| 15 | * version 2.1 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This library is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 | * Lesser General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 25 | * |
| 26 | * Authors: |
| 27 | * "David Niemoller" <[email protected]> |
| 28 | */ |
| 29 | |
| 30 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 31 | #include <config.h>cxx . . $ `<file>/build/config.h`/ |
| 32 | #endif |
| 33 | |
| 34 | #include <stdlib.h> |
| 35 | #include <stdio.h> |
| 36 | #include <string.h> |
| 37 | |
| 38 | #include "public/oval_types.h"cxx . . $ `<file>/src/OVAL/public/oval_types.h`/ |
| 39 | #include "oval_definitions_impl.h"cxx . . $ `<file>/src/OVAL/oval_definitions_impl.h`/ |
| 40 | #include "adt/oval_collection_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_collection_impl.h`/ |
| 41 | #include "oval_agent_api_impl.h"cxx . . $ `<file>/src/OVAL/oval_agent_api_impl.h`/ |
| 42 | #include "common/oscap_string.h"cxx . . $ `<file>/src/common/oscap_string.h`/ |
| 43 | #include "common/util.h"cxx . . $ `<file>/src/common/util.h`/ |
| 44 | #include "common/debug_priv.h"cxx . . $ `<file>/src/common/debug_priv.h`/ |
| 45 | #include "common/elements.h"cxx . . $ `<file>/src/common/elements.h`/ |
| 46 | #include "common/_error.h"cxx . . $ `<file>/src/common/_error.h`/ |
| 47 | |
| 48 | typedef struct oval_testcxx . . $ oval_test# { |
| 49 | struct oval_definition_modelcxx . . $ oval_definition_model# *modelcxx . . $ oval_test#model.; |
| 50 | oval_subtype_tcxx . . $ oval_subtype_t# subtypecxx . . $ oval_test#subtype.; |
| 51 | struct oval_collectioncxx . . $ oval_collection# *notescxx . . $ oval_test#notes.; |
| 52 | char *commentcxx . . $ oval_test#comment.; |
| 53 | char *idcxx . . $ oval_test#id.; |
| 54 | int deprecatedcxx . . $ oval_test#deprecated.; |
| 55 | int versioncxx . . $ oval_test#version.; |
| 56 | oval_existence_tcxx . . $ oval_existence_t# existencecxx . . $ oval_test#existence.; |
| 57 | oval_check_tcxx . . $ oval_check_t# checkcxx . . $ oval_test#check.; |
| 58 | oval_operator_tcxx . . $ oval_operator_t# state_operatorcxx . . $ oval_test#state_operator.; |
| 59 | struct oval_objectcxx . . $ oval_object# *objectcxx . . $ oval_test#object.; |
| 60 | struct oval_collectioncxx . . $ oval_collection# *statescxx . . $ oval_test#states.; |
| 61 | } oval_test_tcxx . . $ oval_test_t#; |
| 62 | |
| 63 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_test_iterator_has_morecxx . . $ oval_test_iterator_has_more(f199731469cf8e01).(struct oval_test_iteratorcxx . . $ oval_test_iterator# *oc_test) |
| 64 | { |
| 65 | return oval_collection_iterator_has_morecxx . . $ oval_collection_iterator_has_more(de0650ab9b639739).((struct oval_iteratorcxx . . $ oval_iterator# *) |
| 66 | oc_test); |
| 67 | } |
| 68 | |
| 69 | struct oval_testcxx . . $ oval_test# *oval_test_iterator_nextcxx . . $ oval_test_iterator_next(48424747268c0c13).(struct oval_test_iteratorcxx . . $ oval_test_iterator# *oc_test) |
| 70 | { |
| 71 | return (struct oval_testcxx . . $ oval_test# *) |
| 72 | oval_collection_iterator_nextcxx . . $ oval_collection_iterator_next(344074693c9690a9).((struct oval_iteratorcxx . . $ oval_iterator# *)oc_test); |
| 73 | } |
| 74 | |
| 75 | void oval_test_iterator_freecxx . . $ oval_test_iterator_free(da66bbde0720dc2).(struct oval_test_iteratorcxx . . $ oval_test_iterator# *oc_test) |
| 76 | { |
| 77 | oval_collection_iterator_freecxx . . $ oval_collection_iterator_free(ee496816570b41f7).((struct oval_iteratorcxx . . $ oval_iterator# *)oc_test); |
| 78 | } |
| 79 | |
| 80 | oval_family_tcxx . . $ oval_family_t# oval_test_get_familycxx . . $ oval_test_get_family(84d5c6a24a43e020).(struct oval_testcxx . . $ oval_test# *test) |
| 81 | { |
| 82 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 83 | |
| 84 | return ((test->subtypecxx . . $ oval_test#subtype.) / 1000) * 1000; |
| 85 | } |
| 86 | |
| 87 | oval_subtype_tcxx . . $ oval_subtype_t# oval_test_get_subtypecxx . . $ oval_test_get_subtype(ae5a5b14a3df8d45).(struct oval_testcxx . . $ oval_test# * test) |
| 88 | { |
| 89 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 90 | |
| 91 | return test->subtypecxx . . $ oval_test#subtype.; |
| 92 | } |
| 93 | |
| 94 | struct oval_string_iteratorcxx . . $ oval_string_iterator# *oval_test_get_notescxx . . $ oval_test_get_notes(7c3f035b0a29db5d).(struct oval_testcxx . . $ oval_test# *test) |
| 95 | { |
| 96 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 97 | |
| 98 | return (struct oval_string_iteratorcxx . . $ oval_string_iterator# *)oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(test->notescxx . . $ oval_test#notes.); |
| 99 | } |
| 100 | |
| 101 | char *oval_test_get_commentcxx . . $ oval_test_get_comment(6776e4970683fd20).(struct oval_testcxx . . $ oval_test# *test) |
| 102 | { |
| 103 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 104 | |
| 105 | return test->commentcxx . . $ oval_test#comment.; |
| 106 | } |
| 107 | |
| 108 | char *oval_test_get_idcxx . . $ oval_test_get_id(6776e4970683fd20).(struct oval_testcxx . . $ oval_test# *test) |
| 109 | { |
| 110 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 111 | |
| 112 | return test->idcxx . . $ oval_test#id.; |
| 113 | } |
| 114 | |
| 115 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_test_get_deprecatedcxx . . $ oval_test_get_deprecated(2359d79b98bd026f).(struct oval_testcxx . . $ oval_test# * test) |
| 116 | { |
| 117 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 118 | |
| 119 | return test->deprecatedcxx . . $ oval_test#deprecated.; |
| 120 | } |
| 121 | |
| 122 | int oval_test_get_versioncxx . . $ oval_test_get_version(9ebe9a7516516147).(struct oval_testcxx . . $ oval_test# *test) |
| 123 | { |
| 124 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 125 | |
| 126 | return test->versioncxx . . $ oval_test#version.; |
| 127 | } |
| 128 | |
| 129 | oval_existence_tcxx . . $ oval_existence_t# oval_test_get_existencecxx . . $ oval_test_get_existence(7e0630d105fa339e).(struct oval_testcxx . . $ oval_test# * test) |
| 130 | { |
| 131 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 132 | |
| 133 | return test->existencecxx . . $ oval_test#existence.; |
| 134 | } |
| 135 | |
| 136 | oval_check_tcxx . . $ oval_check_t# oval_test_get_checkcxx . . $ oval_test_get_check(52b877f2832a591f).(struct oval_testcxx . . $ oval_test# * test) |
| 137 | { |
| 138 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 139 | |
| 140 | return test->checkcxx . . $ oval_test#check.; |
| 141 | } |
| 142 | |
| 143 | oval_operator_tcxx . . $ oval_operator_t# oval_test_get_state_operatorcxx . . $ oval_test_get_state_operator(312b811947068aed).(struct oval_testcxx . . $ oval_test# *test) |
| 144 | { |
| 145 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 146 | |
| 147 | return test->state_operatorcxx . . $ oval_test#state_operator.; |
| 148 | } |
| 149 | |
| 150 | struct oval_objectcxx . . $ oval_object# *oval_test_get_objectcxx . . $ oval_test_get_object(7733aadd35446dd9).(struct oval_testcxx . . $ oval_test# *test) |
| 151 | { |
| 152 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 153 | |
| 154 | return test->objectcxx . . $ oval_test#object.; |
| 155 | } |
| 156 | |
| 157 | struct oval_state_iteratorcxx . . $ oval_state_iterator# *oval_test_get_statescxx . . $ oval_test_get_states(b738fee4834aaaa6).(struct oval_testcxx . . $ oval_test# *test) |
| 158 | { |
| 159 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 160 | |
| 161 | return (struct oval_state_iteratorcxx . . $ oval_state_iterator# *) oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(test->statescxx . . $ oval_test#states.); |
| 162 | } |
| 163 | |
| 164 | char *oval_test_get_state_namescxx . . $ oval_test_get_state_names(6776e4970683fd20).(struct oval_testcxx . . $ oval_test# *test) |
| 165 | { |
| 166 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 167 | |
| 168 | struct oval_state_iteratorcxx . . $ oval_state_iterator# *ste_itr = oval_test_get_statescxx . . $ oval_test_get_states(b738fee4834aaaa6).(test); |
| 169 | if (!oval_state_iterator_has_morecxx . . $ oval_state_iterator_has_more(bbfacbd9c1bc3d63).(ste_itr)) { |
| 170 | oval_state_iterator_freecxx . . $ oval_state_iterator_free(37c8c23faa65426a).(ste_itr); |
| 171 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 172 | } |
| 173 | struct oscap_stringcxx . . $ oscap_string# *state_list = oscap_string_newcxx . . $ oscap_string_new(a2a7aea7d1de9315).(); |
| 174 | oscap_string_append_charcxx . . $ oscap_string_append_char(10528718cb7e122a).(state_list, '\''); |
| 175 | while (1) { |
| 176 | struct oval_statecxx . . $ oval_state# *ste = oval_state_iterator_nextcxx . . $ oval_state_iterator_next(f0883bc3981b419).(ste_itr); |
| 177 | const char *ste_id = oval_state_get_idcxx . . $ oval_state_get_id(3f993b0a468bf006).(ste); |
| 178 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(state_list, ste_id); |
| 179 | if (!oval_state_iterator_has_morecxx . . $ oval_state_iterator_has_more(bbfacbd9c1bc3d63).(ste_itr)) { |
| 180 | break; |
| 181 | } |
| 182 | oscap_string_append_stringcxx . . $ oscap_string_append_string(bdf4962f194308bb).(state_list, "', '"); |
| 183 | } |
| 184 | oscap_string_append_charcxx . . $ oscap_string_append_char(10528718cb7e122a).(state_list, '\''); |
| 185 | char *state_names = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(oscap_string_get_cstrcxx . . $ oscap_string_get_cstr(4dc31ca86595c117).(state_list)); |
| 186 | oscap_string_freecxx . . $ oscap_string_free(bf7769a094bde656).(state_list); |
| 187 | oval_state_iterator_freecxx . . $ oval_state_iterator_free(37c8c23faa65426a).(ste_itr); |
| 188 | return state_names; |
| 189 | } |
| 190 | |
| 191 | struct oval_testcxx . . $ oval_test# *oval_test_newcxx . . $ oval_test_new(c765f99071e189c).(struct oval_definition_modelcxx . . $ oval_definition_model# *model, const char *id) |
| 192 | { |
| 193 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(model); |
| 194 | oval_test_tcxx . . $ oval_test_t# *test; |
| 195 | |
| 196 | test = (oval_test_tcxx . . $ oval_test_t# *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(oval_test_tcxx . . $ oval_test_t#)); |
| 197 | if (test == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 198 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 199 | |
| 200 | test->deprecatedcxx . . $ oval_test#deprecated. = 0; |
| 201 | test->versioncxx . . $ oval_test#version. = 0; |
| 202 | test->checkcxx . . $ oval_test#check. = OVAL_CHECK_UNKNOWNcxx . . $ OVAL_CHECK_UNKNOWN.; |
| 203 | test->existencecxx . . $ oval_test#existence. = OVAL_EXISTENCE_UNKNOWNcxx . . $ OVAL_EXISTENCE_UNKNOWN.; |
| 204 | test->state_operatorcxx . . $ oval_test#state_operator. = OVAL_OPERATOR_ANDcxx . . $ OVAL_OPERATOR_AND.; |
| 205 | test->subtypecxx . . $ oval_test#subtype. = OVAL_SUBTYPE_UNKNOWNcxx . . $ OVAL_SUBTYPE_UNKNOWN.; |
| 206 | test->commentcxx . . $ oval_test#comment. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 207 | test->idcxx . . $ oval_test#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(id); |
| 208 | test->objectcxx . . $ oval_test#object. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 209 | test->statescxx . . $ oval_test#states. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).(); |
| 210 | test->notescxx . . $ oval_test#notes. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).(); |
| 211 | test->modelcxx . . $ oval_test#model. = model; |
| 212 | |
| 213 | oval_definition_model_add_testcxx . . $ oval_definition_model_add_test(b86237d957f07752).(model, test); |
| 214 | |
| 215 | return test; |
| 216 | } |
| 217 | |
| 218 | struct oval_testcxx . . $ oval_test# *oval_test_clonecxx . . $ oval_test_clone(b7249b42de984a2b).(struct oval_definition_modelcxx . . $ oval_definition_model# *new_model, struct oval_testcxx . . $ oval_test# *old_test) { |
| 219 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(old_test); |
| 220 | |
| 221 | struct oval_state_iteratorcxx . . $ oval_state_iterator# *ste_itr; |
| 222 | struct oval_testcxx . . $ oval_test# *new_test = oval_definition_model_get_testcxx . . $ oval_definition_model_get_test(c765f99071e189c).(new_model, old_test->idcxx . . $ oval_test#id.); |
| 223 | if (new_test == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 224 | new_test = oval_test_newcxx . . $ oval_test_new(c765f99071e189c).(new_model, old_test->idcxx . . $ oval_test#id.); |
| 225 | oval_test_set_deprecatedcxx . . $ oval_test_set_deprecated(e8d3bef309d7bb50).(new_test, old_test->deprecatedcxx . . $ oval_test#deprecated.); |
| 226 | oval_test_set_versioncxx . . $ oval_test_set_version(8b558d84ba8269d9).(new_test, old_test->versioncxx . . $ oval_test#version.); |
| 227 | oval_test_set_checkcxx . . $ oval_test_set_check(3aea7a1311c2c81c).(new_test, old_test->checkcxx . . $ oval_test#check.); |
| 228 | oval_test_set_existencecxx . . $ oval_test_set_existence(bda369d17cca1746).(new_test, old_test->existencecxx . . $ oval_test#existence.); |
| 229 | oval_test_set_state_operatorcxx . . $ oval_test_set_state_operator(ef0d581b625fe043).(new_test, old_test->state_operatorcxx . . $ oval_test#state_operator.); |
| 230 | oval_test_set_subtypecxx . . $ oval_test_set_subtype(b9e88bc223db1848).(new_test, old_test->subtypecxx . . $ oval_test#subtype.); |
| 231 | oval_test_set_commentcxx . . $ oval_test_set_comment(d4661599f24d44f5).(new_test, old_test->commentcxx . . $ oval_test#comment.); |
| 232 | |
| 233 | if (old_test->objectcxx . . $ oval_test#object.) { |
| 234 | struct oval_objectcxx . . $ oval_object# *object = oval_object_clonecxx . . $ oval_object_clone(cda8d9effee3e98b).(new_model, old_test->objectcxx . . $ oval_test#object.); |
| 235 | oval_test_set_objectcxx . . $ oval_test_set_object(c002a0ed3558e40).(new_test, object); |
| 236 | } |
| 237 | |
| 238 | ste_itr = oval_test_get_statescxx . . $ oval_test_get_states(b738fee4834aaaa6).(old_test); |
| 239 | while (oval_state_iterator_has_morecxx . . $ oval_state_iterator_has_more(bbfacbd9c1bc3d63).(ste_itr)) { |
| 240 | struct oval_statecxx . . $ oval_state# *ste; |
| 241 | |
| 242 | ste = oval_state_iterator_nextcxx . . $ oval_state_iterator_next(f0883bc3981b419).(ste_itr); |
| 243 | ste = oval_state_clonecxx . . $ oval_state_clone(4b918e9848c3d95f).(new_model, ste); |
| 244 | oval_test_add_statecxx . . $ oval_test_add_state(2acb0927931f2c7e).(new_test, ste); |
| 245 | } |
| 246 | oval_state_iterator_freecxx . . $ oval_state_iterator_free(37c8c23faa65426a).(ste_itr); |
| 247 | |
| 248 | struct oval_string_iteratorcxx . . $ oval_string_iterator# *notes = oval_test_get_notescxx . . $ oval_test_get_notes(7c3f035b0a29db5d).(old_test); |
| 249 | while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) { |
| 250 | char *note = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(notes); |
| 251 | oval_test_add_notecxx . . $ oval_test_add_note(d4661599f24d44f5).(new_test, note); |
| 252 | } |
| 253 | oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(notes); |
| 254 | } |
| 255 | return new_test; |
| 256 | } |
| 257 | |
| 258 | void oval_test_freecxx . . $ oval_test_free(f7daaecac5035e27).(struct oval_testcxx . . $ oval_test# *test) |
| 259 | { |
| 260 | if (test == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 261 | return; |
| 262 | |
| 263 | freecxx . . $ free(5d22bdacc48458e8).(test->commentcxx . . $ oval_test#comment.); |
| 264 | freecxx . . $ free(5d22bdacc48458e8).(test->idcxx . . $ oval_test#id.); |
| 265 | oval_collection_free_itemscxx . . $ oval_collection_free_items(637ec69504f927f1).(test->notescxx . . $ oval_test#notes., freecxx . . $ free(5d22bdacc48458e8).); |
| 266 | oval_collection_freecxx . . $ oval_collection_free(7f543398a7666e77).(test->statescxx . . $ oval_test#states.); |
| 267 | |
| 268 | freecxx . . $ free(5d22bdacc48458e8).(test); |
| 269 | } |
| 270 | |
| 271 | void oval_test_set_deprecatedcxx . . $ oval_test_set_deprecated(e8d3bef309d7bb50).(struct oval_testcxx . . $ oval_test# *test, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! deprecated) |
| 272 | { |
| 273 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 274 | test->deprecatedcxx . . $ oval_test#deprecated. = deprecated; |
| 275 | } |
| 276 | |
| 277 | void oval_test_set_versioncxx . . $ oval_test_set_version(8b558d84ba8269d9).(struct oval_testcxx . . $ oval_test# *test, int version) |
| 278 | { |
| 279 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 280 | test->versioncxx . . $ oval_test#version. = version; |
| 281 | } |
| 282 | |
| 283 | void oval_test_set_subtypecxx . . $ oval_test_set_subtype(b9e88bc223db1848).(struct oval_testcxx . . $ oval_test# *test, oval_subtype_tcxx . . $ oval_subtype_t# subtype) |
| 284 | { |
| 285 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 286 | test->subtypecxx . . $ oval_test#subtype. = subtype; |
| 287 | } |
| 288 | |
| 289 | void oval_test_set_commentcxx . . $ oval_test_set_comment(d4661599f24d44f5).(struct oval_testcxx . . $ oval_test# *test, char *comm) |
| 290 | { |
| 291 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 292 | if (test->commentcxx . . $ oval_test#comment. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 293 | freecxx . . $ free(5d22bdacc48458e8).(test->commentcxx . . $ oval_test#comment.); |
| 294 | test->commentcxx . . $ oval_test#comment. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(comm); |
| 295 | } |
| 296 | |
| 297 | void oval_test_set_existencecxx . . $ oval_test_set_existence(bda369d17cca1746).(struct oval_testcxx . . $ oval_test# *test, oval_existence_tcxx . . $ oval_existence_t# existence) |
| 298 | { |
| 299 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 300 | test->existencecxx . . $ oval_test#existence. = existence; |
| 301 | } |
| 302 | |
| 303 | void oval_test_set_state_operatorcxx . . $ oval_test_set_state_operator(ef0d581b625fe043).(struct oval_testcxx . . $ oval_test# *test, oval_operator_tcxx . . $ oval_operator_t# state_operator) |
| 304 | { |
| 305 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 306 | test->state_operatorcxx . . $ oval_test#state_operator. = state_operator; |
| 307 | } |
| 308 | |
| 309 | void oval_test_set_checkcxx . . $ oval_test_set_check(3aea7a1311c2c81c).(struct oval_testcxx . . $ oval_test# *test, oval_check_tcxx . . $ oval_check_t# check) |
| 310 | { |
| 311 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 312 | test->checkcxx . . $ oval_test#check. = check; |
| 313 | } |
| 314 | |
| 315 | void oval_test_set_objectcxx . . $ oval_test_set_object(c002a0ed3558e40).(struct oval_testcxx . . $ oval_test# *test, struct oval_objectcxx . . $ oval_object# *object) |
| 316 | { |
| 317 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 318 | test->objectcxx . . $ oval_test#object. = object; |
| 319 | } |
| 320 | |
| 321 | void oval_test_add_statecxx . . $ oval_test_add_state(2acb0927931f2c7e).(struct oval_testcxx . . $ oval_test# *test, struct oval_statecxx . . $ oval_state# *state) |
| 322 | { |
| 323 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 324 | oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(test->statescxx . . $ oval_test#states., state); |
| 325 | } |
| 326 | |
| 327 | void oval_test_add_notecxx . . $ oval_test_add_note(d4661599f24d44f5).(struct oval_testcxx . . $ oval_test# *test, char *note) |
| 328 | { |
| 329 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(test); |
| 330 | oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(test->notescxx . . $ oval_test#notes., (void *)oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(note)); |
| 331 | } |
| 332 | |
| 333 | static void _oval_test_parse_notes_consumercxx . . $ _oval_test_parse_notes_consumer(75961c4613ebf8f5).(char *text, void *test) |
| 334 | { |
| 335 | oval_test_add_notecxx . . $ oval_test_add_note(d4661599f24d44f5).(test, text); |
| 336 | } |
| 337 | |
| 338 | static int _oval_test_parse_notescxx . . $ _oval_test_parse_notes(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *user) |
| 339 | { |
| 340 | struct oval_testcxx . . $ oval_test# *test = (struct oval_testcxx . . $ oval_test# *)user; |
| 341 | return oscap_parser_text_valuecxx . . $ oscap_parser_text_value(23cd2d9646b6359b).(reader, &_oval_test_parse_notes_consumercxx . . $ _oval_test_parse_notes_consumer(75961c4613ebf8f5)., test); |
| 342 | } |
| 343 | |
| 344 | static int _oval_test_parse_tagcxx . . $ _oval_test_parse_tag(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *user) |
| 345 | { |
| 346 | struct oval_testcxx . . $ oval_test# *test = (struct oval_testcxx . . $ oval_test# *)user; |
| 347 | char *tagname = (char *)xmlTextReaderLocalNamecxx . . $ xmlTextReaderLocalName(3322afb275581432).(reader); |
| 348 | int return_code = 0; |
| 349 | if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "notes") == 0)) { |
| 350 | return_code = oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(reader, context, &_oval_test_parse_notescxx . . $ _oval_test_parse_notes(cf369959597901d1)., test); |
| 351 | } else if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "object") == 0)) { |
| 352 | char *object_ref = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "object_ref"); |
| 353 | if (object_ref != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 354 | struct oval_definition_modelcxx . . $ oval_definition_model# *model = context->definition_modelcxx . . $ oval_parser_context#definition_model.; |
| 355 | struct oval_objectcxx . . $ oval_object# *object = oval_definition_model_get_new_objectcxx . . $ oval_definition_model_get_new_object(2c583c84850ee973).(model, object_ref); |
| 356 | freecxx . . $ free(5d22bdacc48458e8).(object_ref); |
| 357 | object_ref = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 358 | oval_test_set_objectcxx . . $ oval_test_set_object(c002a0ed3558e40).(test, object); |
| 359 | } |
| 360 | } else if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "state") == 0)) { |
| 361 | char *state_ref = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "state_ref"); |
| 362 | if (state_ref != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 363 | struct oval_definition_modelcxx . . $ oval_definition_model# *model = context->definition_modelcxx . . $ oval_parser_context#definition_model.; |
| 364 | struct oval_statecxx . . $ oval_state# *state = oval_definition_model_get_new_statecxx . . $ oval_definition_model_get_new_state(a16da6d5657b0c91).(model, state_ref); |
| 365 | oval_test_add_statecxx . . $ oval_test_add_state(2acb0927931f2c7e).(test, state); |
| 366 | freecxx . . $ free(5d22bdacc48458e8).(state_ref); |
| 367 | state_ref = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 368 | } |
| 369 | } else { |
| 370 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("Skipping tag <%s>.", tagname); |
| 371 | return_code = oval_parser_skip_tagcxx . . $ oval_parser_skip_tag(b61d4daae99e998a).(reader, context); |
| 372 | } |
| 373 | |
| 374 | freecxx . . $ free(5d22bdacc48458e8).(tagname); |
| 375 | return return_code; |
| 376 | |
| 377 | } |
| 378 | |
| 379 | int oval_test_parse_tagcxx . . $ oval_test_parse_tag(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *usr) |
| 380 | { |
| 381 | int ret = 0; |
| 382 | char *comm = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 383 | char *version = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 384 | struct oval_definition_modelcxx . . $ oval_definition_model# *model = context->definition_modelcxx . . $ oval_parser_context#definition_model.; |
| 385 | |
| 386 | char *id = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "id"); |
| 387 | if (id == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 388 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("Found test element without id attribute. Ignoring"); |
| 389 | return 1; |
| 390 | } |
| 391 | struct oval_testcxx . . $ oval_test# *test = oval_definition_model_get_new_testcxx . . $ oval_definition_model_get_new_test(c765f99071e189c).(model, id); |
| 392 | |
| 393 | oval_subtype_tcxx . . $ oval_subtype_t# subtype = oval_subtype_parsecxx . . $ oval_subtype_parse(f7bb0059f83e9a03).(reader); |
| 394 | if (subtype == OVAL_SUBTYPE_UNKNOWNcxx . . $ OVAL_SUBTYPE_UNKNOWN.) { |
| 395 | dIcxx . . $ `src/common/debug_priv.h:61:9`!("Unknown test type %s, using independent/unknown", id); |
| 396 | subtype = OVAL_INDEPENDENT_UNKNOWNcxx . . $ OVAL_INDEPENDENT_UNKNOWN.; |
| 397 | } |
| 398 | oval_test_set_subtypecxx . . $ oval_test_set_subtype(b9e88bc223db1848).(test, subtype); |
| 399 | |
| 400 | oval_operator_tcxx . . $ oval_operator_t# ste_operator = oval_operator_parsecxx . . $ oval_operator_parse(68bd3d297b7c50e).(reader, "state_operator", OVAL_OPERATOR_ANDcxx . . $ OVAL_OPERATOR_AND.); |
| 401 | oval_test_set_state_operatorcxx . . $ oval_test_set_state_operator(ef0d581b625fe043).(test, ste_operator); |
| 402 | |
| 403 | oval_check_tcxx . . $ oval_check_t# check = oval_check_parsecxx . . $ oval_check_parse(def8dff2972e216b).(reader, "check", OVAL_CHECK_UNKNOWNcxx . . $ OVAL_CHECK_UNKNOWN.); |
| 404 | if (check == OVAL_CHECK_NONE_EXISTcxx . . $ OVAL_CHECK_NONE_EXIST.) { |
| 405 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("The 'none exist' CheckEnumeration value has been deprecated. " |
| 406 | "Converted to check='none satisfy' and check_existence='none exist'."); |
| 407 | oval_test_set_checkcxx . . $ oval_test_set_check(3aea7a1311c2c81c).(test, OVAL_CHECK_NONE_SATISFYcxx . . $ OVAL_CHECK_NONE_SATISFY.); |
| 408 | oval_test_set_existencecxx . . $ oval_test_set_existence(bda369d17cca1746).(test, OVAL_NONE_EXISTcxx . . $ OVAL_NONE_EXIST.); |
| 409 | } else { |
| 410 | oval_existence_tcxx . . $ oval_existence_t# existence; |
| 411 | |
| 412 | oval_test_set_checkcxx . . $ oval_test_set_check(3aea7a1311c2c81c).(test, check); |
| 413 | existence = oval_existence_parsecxx . . $ oval_existence_parse(b51016942f976cd6).(reader, "check_existence", OVAL_AT_LEAST_ONE_EXISTScxx . . $ OVAL_AT_LEAST_ONE_EXISTS.); |
| 414 | oval_test_set_existencecxx . . $ oval_test_set_existence(bda369d17cca1746).(test, existence); |
| 415 | } |
| 416 | |
| 417 | comm = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "comment"); |
| 418 | if (comm != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 419 | oval_test_set_commentcxx . . $ oval_test_set_comment(d4661599f24d44f5).(test, comm); |
| 420 | } |
| 421 | |
| 422 | int deprecated = oval_parser_boolean_attributecxx . . $ oval_parser_boolean_attribute(a53adaee35698733).(reader, "deprecated", 0); |
| 423 | oval_test_set_deprecatedcxx . . $ oval_test_set_deprecated(e8d3bef309d7bb50).(test, deprecated); |
| 424 | |
| 425 | version = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "version"); |
| 426 | if (version != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 427 | oval_test_set_versioncxx . . $ oval_test_set_version(8b558d84ba8269d9).(test, atoicxx . . $ atoi(5c4306d8553b3696).(version)); |
| 428 | } |
| 429 | |
| 430 | |
| 431 | ret = oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(reader, context, &_oval_test_parse_tagcxx . . $ _oval_test_parse_tag(cf369959597901d1)., test); |
| 432 | |
| 433 | freecxx . . $ free(5d22bdacc48458e8).(version); |
| 434 | freecxx . . $ free(5d22bdacc48458e8).(comm); |
| 435 | freecxx . . $ free(5d22bdacc48458e8).(id); |
| 436 | return ret; |
| 437 | } |
| 438 | |
| 439 | |
| 440 | xmlNodecxx . . $ xmlNode# *oval_test_to_domcxx . . $ oval_test_to_dom(17926246352f56a6).(struct oval_testcxx . . $ oval_test# *test, xmlDoccxx . . $ xmlDoc# * doc, xmlNodecxx . . $ xmlNode# * parent) |
| 441 | { |
| 442 | xmlNodecxx . . $ xmlNode# * test_node=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 443 | |
| 444 | /* skip unknown test */ |
| 445 | oval_subtype_tcxx . . $ oval_subtype_t# subtype = oval_test_get_subtypecxx . . $ oval_test_get_subtype(ae5a5b14a3df8d45).(test); |
| 446 | if (subtype == OVAL_SUBTYPE_UNKNOWNcxx . . $ OVAL_SUBTYPE_UNKNOWN.) { |
| 447 | dWcxx . . $ `src/common/debug_priv.h:62:9`!("Unable to convert unknown test %s, skipping", oval_test_get_id(test)); |
| 448 | return test_node; |
| 449 | } |
| 450 | |
| 451 | /* get test name */ |
| 452 | const char *subtype_text = oval_subtype_get_textcxx . . $ oval_subtype_get_text(ee6b3dcae047e21f).(subtype); |
| 453 | char *test_name = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(strlencxx . . $ strlen(751346f8406fd082).(subtype_text) + 6); |
| 454 | sprintfcxx . . $ sprintf(26c8642d26409d6d).(test_name, "%s_test", subtype_text); |
| 455 | |
| 456 | oval_family_tcxx . . $ oval_family_t# family = oval_test_get_familycxx . . $ oval_test_get_family(84d5c6a24a43e020).(test); |
| 457 | |
| 458 | /* search namespace & create child */ |
| 459 | xmlNscxx . . $ xmlNs# *ns_family = oval_family_to_namespacecxx . . $ oval_family_to_namespace(8189eb69f31875e4).(family, (const char *) OVAL_DEFINITIONS_NAMESPACEcxx . . $ `src/OVAL/oval_agent_api_impl.h:50:9`!, doc, parent); |
| 460 | test_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(parent, ns_family, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! test_name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 461 | freecxx . . $ free(5d22bdacc48458e8).(test_name); |
| 462 | |
| 463 | char *id = oval_test_get_idcxx . . $ oval_test_get_id(6776e4970683fd20).(test); |
| 464 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "id", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! id); |
| 465 | |
| 466 | char version[10]; |
| 467 | *version = '\0'; |
| 468 | snprintfcxx . . $ snprintf(ea502d73e74c754c).(version, sizeof(version), "%d", oval_test_get_versioncxx . . $ oval_test_get_version(9ebe9a7516516147).(test)); |
| 469 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "version", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! version); |
| 470 | |
| 471 | oval_existence_tcxx . . $ oval_existence_t# existence = oval_test_get_existencecxx . . $ oval_test_get_existence(7e0630d105fa339e).(test); |
| 472 | if (existence != OVAL_AT_LEAST_ONE_EXISTScxx . . $ OVAL_AT_LEAST_ONE_EXISTS.) |
| 473 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "check_existence", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_existence_get_textcxx . . $ oval_existence_get_text(b55025df715e2668).(existence)); |
| 474 | |
| 475 | oval_check_tcxx . . $ oval_check_t# check = oval_test_get_checkcxx . . $ oval_test_get_check(52b877f2832a591f).(test); |
| 476 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "check", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_check_get_textcxx . . $ oval_check_get_text(738477922eea9c02).(check)); |
| 477 | |
| 478 | oval_operator_tcxx . . $ oval_operator_t# ste_operator = oval_test_get_state_operatorcxx . . $ oval_test_get_state_operator(312b811947068aed).(test); |
| 479 | if (ste_operator != OVAL_OPERATOR_ANDcxx . . $ OVAL_OPERATOR_AND.) |
| 480 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "state_operator", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_operator_get_textcxx . . $ oval_operator_get_text(31e5cd98682f5d2e).(ste_operator)); |
| 481 | |
| 482 | char *comm = oval_test_get_commentcxx . . $ oval_test_get_comment(6776e4970683fd20).(test); |
| 483 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "comment", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! comm); |
| 484 | |
| 485 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! deprecated = oval_test_get_deprecatedcxx . . $ oval_test_get_deprecated(2359d79b98bd026f).(test); |
| 486 | if (deprecated) |
| 487 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(test_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "deprecated", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "true"); |
| 488 | |
| 489 | struct oval_string_iteratorcxx . . $ oval_string_iterator# *notes = oval_test_get_notescxx . . $ oval_test_get_notes(7c3f035b0a29db5d).(test); |
| 490 | if (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) { |
| 491 | xmlNscxx . . $ xmlNs# *ns_definitions = xmlSearchNsByHrefcxx . . $ xmlSearchNsByHref(d0fb0b6b99319c4).(doc, parent, OVAL_DEFINITIONS_NAMESPACEcxx . . $ `src/OVAL/oval_agent_api_impl.h:50:9`!); |
| 492 | xmlNodecxx . . $ xmlNode# *notes_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(test_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "notes", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 493 | while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) { |
| 494 | char *note = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(notes); |
| 495 | xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(notes_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "note", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! note); |
| 496 | } |
| 497 | } |
| 498 | oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(notes); |
| 499 | |
| 500 | struct oval_objectcxx . . $ oval_object# *object = oval_test_get_objectcxx . . $ oval_test_get_object(7733aadd35446dd9).(test); |
| 501 | if (object) { |
| 502 | xmlNodecxx . . $ xmlNode# *object_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(test_node, ns_family, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "object", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 503 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(object_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "object_ref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_object_get_idcxx . . $ oval_object_get_id(c789946d38fecc83).(object)); |
| 504 | } |
| 505 | |
| 506 | struct oval_state_iteratorcxx . . $ oval_state_iterator# *ste_itr = oval_test_get_statescxx . . $ oval_test_get_states(b738fee4834aaaa6).(test); |
| 507 | while (oval_state_iterator_has_morecxx . . $ oval_state_iterator_has_more(bbfacbd9c1bc3d63).(ste_itr)) { |
| 508 | struct oval_statecxx . . $ oval_state# *state; |
| 509 | |
| 510 | state = oval_state_iterator_nextcxx . . $ oval_state_iterator_next(f0883bc3981b419).(ste_itr); |
| 511 | xmlNodecxx . . $ xmlNode# *state_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(test_node, ns_family, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "state", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 512 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(state_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "state_ref", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_state_get_idcxx . . $ oval_state_get_id(3f993b0a468bf006).(state)); |
| 513 | } |
| 514 | oval_state_iterator_freecxx . . $ oval_state_iterator_free(37c8c23faa65426a).(ste_itr); |
| 515 | |
| 516 | return test_node; |
| 517 | } |