Debian Codegraph @

src/OVAL/oval_definition.c

raw symbols SCIP
1 /**
2 * @file oval_definition.c
3 * \brief Open Vulnerability and Assessment Language
4 *
5 * See more details at http://oval.mitre.org/
6 */
7
8 /*
9 * Copyright 2009--2014 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 "oval_definitions_impl.h"cxx . . $ `<file>/src/OVAL/oval_definitions_impl.h`/
39 #include "adt/oval_collection_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_collection_impl.h`/
40 #include "adt/oval_string_map_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_string_map_impl.h`/
41 #include "oval_agent_api_impl.h"cxx . . $ `<file>/src/OVAL/oval_agent_api_impl.h`/
42
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
49 /***************************************************************************/
50 /* Variable definitions
51 * */
52
53 typedef struct oval_definitioncxx . . $ oval_definition# {
54 struct oval_definition_modelcxx . . $ oval_definition_model# *modelcxx . . $ oval_definition#model.;
55 char *idcxx . . $ oval_definition#id.;
56 int versioncxx . . $ oval_definition#version.;
57 oval_definition_class_tcxx . . $ oval_definition_class_t# classcxx . . $ oval_definition#class.;
58 int deprecatedcxx . . $ oval_definition#deprecated.;
59 char *titlecxx . . $ oval_definition#title.;
60 char *descriptioncxx . . $ oval_definition#description.;
61 struct oval_collectioncxx . . $ oval_collection# *affectedcxx . . $ oval_definition#affected.;
62 struct oval_collectioncxx . . $ oval_collection# *referencecxx . . $ oval_definition#reference.;
63 struct oval_collectioncxx . . $ oval_collection# *notescxx . . $ oval_definition#notes.;
64 char *anyxmlcxx . . $ oval_definition#anyxml.;
65 struct oval_criteria_nodecxx . . $ oval_criteria_node# *criteriacxx . . $ oval_definition#criteria.;
66 } oval_definition_tcxx . . $ oval_definition_t#;
67
68
69 /* End of variable definitions
70 * */
71 /***************************************************************************/
72
73 char *oval_definition_get_idcxx . . $ oval_definition_get_id(293cc7080a5789e2).(struct oval_definitioncxx . . $ oval_definition# *definition)
74 {
75 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
76
77 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->idcxx . . $ oval_definition#id.;
78 }
79
80 int oval_definition_get_versioncxx . . $ oval_definition_get_version(5d9693806bb51fdb).(struct oval_definitioncxx . . $ oval_definition# *definition)
81 {
82 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
83
84 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->versioncxx . . $ oval_definition#version.;
85 }
86
87 oval_definition_class_tcxx . . $ oval_definition_class_t# oval_definition_get_classcxx . . $ oval_definition_get_class(aaabc0cd8e2da5f4).(struct oval_definitioncxx . . $ oval_definition# *definition)
88 {
89 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
90
91 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->classcxx . . $ oval_definition#class.;
92 }
93
94 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_definition_get_deprecatedcxx . . $ oval_definition_get_deprecated(398c9276fa28381f).(struct oval_definitioncxx . . $ oval_definition# *definition)
95 {
96 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
97
98 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->deprecatedcxx . . $ oval_definition#deprecated.;
99 }
100
101 char *oval_definition_get_titlecxx . . $ oval_definition_get_title(293cc7080a5789e2).(struct oval_definitioncxx . . $ oval_definition# *definition)
102 {
103 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
104
105 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->titlecxx . . $ oval_definition#title.;
106 }
107
108 char *oval_definition_get_descriptioncxx . . $ oval_definition_get_description(293cc7080a5789e2).(struct oval_definitioncxx . . $ oval_definition# *definition)
109 {
110 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
111
112 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->descriptioncxx . . $ oval_definition#description.;
113 }
114
115 struct oval_affected_iteratorcxx . . $ oval_affected_iterator# *oval_definition_get_affectedcxx . . $ oval_definition_get_affected(5edf6a808f911d85).(struct oval_definitioncxx . . $ oval_definition#
116 *definition)
117 {
118 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
119
120 return (struct oval_affected_iteratorcxx . . $ oval_affected_iterator# *)
121 oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(definition->affectedcxx . . $ oval_definition#affected.);
122 }
123
124 struct oval_reference_iteratorcxx . . $ oval_reference_iterator# *oval_definition_get_referencescxx . . $ oval_definition_get_references(258752f9d864cbd1).(struct oval_definitioncxx . . $ oval_definition#
125 *definition)
126 {
127 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
128
129 return (struct oval_reference_iteratorcxx . . $ oval_reference_iterator# *)
130 oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(definition->referencecxx . . $ oval_definition#reference.);
131 }
132
133 struct oval_string_iteratorcxx . . $ oval_string_iterator# *oval_definition_get_notescxx . . $ oval_definition_get_notes(63d923fd33293cb1).(struct oval_definitioncxx . . $ oval_definition# *definition) {
134 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
135
136 return (struct oval_string_iteratorcxx . . $ oval_string_iterator# *)
137 oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(definition->notescxx . . $ oval_definition#notes.);
138 }
139
140 struct oval_criteria_nodecxx . . $ oval_criteria_node# *oval_definition_get_criteriacxx . . $ oval_definition_get_criteria(65398e133db0196).(struct oval_definitioncxx . . $ oval_definition#
141 *definition)
142 {
143 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
144
145 return ((struct oval_definitioncxx . . $ oval_definition# *)definition)->criteriacxx . . $ oval_definition#criteria.;
146 }
147
148 struct oval_definitioncxx . . $ oval_definition# *oval_definition_newcxx . . $ oval_definition_new(d4bef07f0697769).(struct oval_definition_modelcxx . . $ oval_definition_model# *model, const char *id)
149 {
150 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(model);
151 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(oval_definition_tcxx . . $ oval_definition_t#));
152
153 definition->idcxx . . $ oval_definition#id. = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(id);
154 definition->versioncxx . . $ oval_definition#version. = 0;
155 definition->classcxx . . $ oval_definition#class. = OVAL_CLASS_UNKNOWNcxx . . $ OVAL_CLASS_UNKNOWN.;
156 definition->deprecatedcxx . . $ oval_definition#deprecated. = 0;
157 definition->titlecxx . . $ oval_definition#title. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
158 definition->descriptioncxx . . $ oval_definition#description. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
159 definition->affectedcxx . . $ oval_definition#affected. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).();
160 definition->referencecxx . . $ oval_definition#reference. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).();
161 definition->notescxx . . $ oval_definition#notes. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).();
162
163 definition->anyxmlcxx . . $ oval_definition#anyxml. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
164 definition->criteriacxx . . $ oval_definition#criteria. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
165 definition->modelcxx . . $ oval_definition#model. = model;
166
167 oval_definition_model_add_definitioncxx . . $ oval_definition_model_add_definition(19d97cca8da3649a).(model, definition);
168
169 return definition;
170 }
171
172 struct oval_definitioncxx . . $ oval_definition# *oval_definition_clonecxx . . $ oval_definition_clone(fee9b6e6b0c44e22).
173 (struct oval_definition_modelcxx . . $ oval_definition_model# *new_model, struct oval_definitioncxx . . $ oval_definition# *old_definition) {
174 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(old_definition);
175
176 struct oval_definitioncxx . . $ oval_definition# *new_definition = oval_definition_model_get_definitioncxx . . $ oval_definition_model_get_definition(d4bef07f0697769).(new_model, old_definition->idcxx . . $ oval_definition#id.);
177 if (new_definition == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) {
178
179 new_definition = oval_definition_newcxx . . $ oval_definition_new(d4bef07f0697769).(new_model, old_definition->idcxx . . $ oval_definition#id.);
180 oval_definition_set_versioncxx . . $ oval_definition_set_version(3ac4c7e22005a7ca).(new_definition, old_definition->versioncxx . . $ oval_definition#version.);
181 oval_definition_set_classcxx . . $ oval_definition_set_class(54823cbfca9b3e3e).(new_definition, old_definition->classcxx . . $ oval_definition#class.);
182 oval_definition_set_deprecatedcxx . . $ oval_definition_set_deprecated(e4c4cedb4410f9b2).(new_definition, old_definition->deprecatedcxx . . $ oval_definition#deprecated.);
183 oval_definition_set_titlecxx . . $ oval_definition_set_title(3e6bfbbb79497eb1).(new_definition, old_definition->titlecxx . . $ oval_definition#title.);
184 oval_definition_set_descriptioncxx . . $ oval_definition_set_description(3e6bfbbb79497eb1).(new_definition, old_definition->descriptioncxx . . $ oval_definition#description.);
185
186 struct oval_affected_iteratorcxx . . $ oval_affected_iterator# *affecteds = oval_definition_get_affectedcxx . . $ oval_definition_get_affected(5edf6a808f911d85).(old_definition);
187 while (oval_affected_iterator_has_morecxx . . $ oval_affected_iterator_has_more(178424f7a96afe6c).(affecteds)) {
188 struct oval_affectedcxx . . $ oval_affected# *old_affected = oval_affected_iterator_nextcxx . . $ oval_affected_iterator_next(dc665843cb96a3b8).(affecteds);
189 oval_definition_add_affectedcxx . . $ oval_definition_add_affected(ea06872d21a4e6e7).(new_definition, oval_affected_clonecxx . . $ oval_affected_clone(135242d5b88f5372).(new_model, old_affected));
190 }
191 oval_affected_iterator_freecxx . . $ oval_affected_iterator_free(909fa3115b79bd9f).(affecteds);
192 struct oval_reference_iteratorcxx . . $ oval_reference_iterator# *references = oval_definition_get_referencescxx . . $ oval_definition_get_references(258752f9d864cbd1).(old_definition);
193 while (oval_reference_iterator_has_morecxx . . $ oval_reference_iterator_has_more(ed88b8b7dcfa9c).(references)) {
194 struct oval_referencecxx . . $ oval_reference# *old_reference = oval_reference_iterator_nextcxx . . $ oval_reference_iterator_next(69cb5fc9fafa3c58).(references);
195 oval_definition_add_referencecxx . . $ oval_definition_add_reference(1bf3c828672d6667).(new_definition, oval_reference_clonecxx . . $ oval_reference_clone(741341b6162ef4dd).(new_model, old_reference));
196 }
197 oval_reference_iterator_freecxx . . $ oval_reference_iterator_free(cbd4652e83f0ad3a).(references);
198 struct oval_string_iteratorcxx . . $ oval_string_iterator# *notes = oval_definition_get_notescxx . . $ oval_definition_get_notes(63d923fd33293cb1).(old_definition);
199 while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) {
200 char *old_note = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(notes);
201 oval_definition_add_notecxx . . $ oval_definition_add_note(3e6bfbbb79497eb1).(new_definition, old_note);
202 }
203 oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(notes);
204
205 new_definition->anyxmlcxx . . $ oval_definition#anyxml. = strdupcxx . . $ strdup(a8b8e32347182212).(old_definition->anyxmlcxx . . $ oval_definition#anyxml.);
206
207 oval_definition_set_criteriacxx . . $ oval_definition_set_criteria(37003c2d655fe257).(new_definition, oval_criteria_node_clonecxx . . $ oval_criteria_node_clone(21315d93c855fbea).(new_model, old_definition->criteriacxx . . $ oval_definition#criteria.));
208 }
209 return new_definition;
210 }
211
212 void oval_definition_freecxx . . $ oval_definition_free(d484ebf0ad085a97).(struct oval_definitioncxx . . $ oval_definition# *definition)
213 {
214 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
215
216 if (definition->idcxx . . $ oval_definition#id. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
217 freecxx . . $ free(5d22bdacc48458e8).(definition->idcxx . . $ oval_definition#id.);
218 if (definition->titlecxx . . $ oval_definition#title. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
219 freecxx . . $ free(5d22bdacc48458e8).(definition->titlecxx . . $ oval_definition#title.);
220 if (definition->descriptioncxx . . $ oval_definition#description. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
221 freecxx . . $ free(5d22bdacc48458e8).(definition->descriptioncxx . . $ oval_definition#description.);
222 if (definition->criteriacxx . . $ oval_definition#criteria. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
223 oval_criteria_node_freecxx . . $ oval_criteria_node_free(147b6e64b6f669c9).(definition->criteriacxx . . $ oval_definition#criteria.);
224 oval_collection_free_itemscxx . . $ oval_collection_free_items(637ec69504f927f1).(definition->affectedcxx . . $ oval_definition#affected., (oscap_destruct_funccxx . . $ oscap_destruct_func#) oval_affected_freecxx . . $ oval_affected_free(cb0e034c0e2ba1f5).);
225 oval_collection_free_itemscxx . . $ oval_collection_free_items(637ec69504f927f1).(definition->referencecxx . . $ oval_definition#reference., (oscap_destruct_funccxx . . $ oscap_destruct_func#) oval_reference_freecxx . . $ oval_reference_free(5a3abd4abe57f705).);
226 oval_collection_free_itemscxx . . $ oval_collection_free_items(637ec69504f927f1).(definition->notescxx . . $ oval_definition#notes., (oscap_destruct_funccxx . . $ oscap_destruct_func#) freecxx . . $ free(5d22bdacc48458e8).);
227
228 freecxx . . $ free(5d22bdacc48458e8).(definition->anyxmlcxx . . $ oval_definition#anyxml.);
229
230 definition->affectedcxx . . $ oval_definition#affected. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
231 definition->criteriacxx . . $ oval_definition#criteria. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
232 definition->descriptioncxx . . $ oval_definition#description. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
233 definition->idcxx . . $ oval_definition#id. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
234 definition->referencecxx . . $ oval_definition#reference. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
235 definition->notescxx . . $ oval_definition#notes. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
236 definition->anyxmlcxx . . $ oval_definition#anyxml. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
237 definition->titlecxx . . $ oval_definition#title. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
238 freecxx . . $ free(5d22bdacc48458e8).(definition);
239 }
240
241 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_definition_iterator_has_morecxx . . $ oval_definition_iterator_has_more(97a46799ea94a148).(struct oval_definition_iteratorcxx . . $ oval_definition_iterator#
242 *oc_definition)
243 {
244 return oval_collection_iterator_has_morecxx . . $ oval_collection_iterator_has_more(de0650ab9b639739).((struct oval_iteratorcxx . . $ oval_iterator# *)
245 oc_definition);
246 }
247
248 struct oval_definitioncxx . . $ oval_definition# *oval_definition_iterator_nextcxx . . $ oval_definition_iterator_next(cba20bfe98f05efc).(struct
249 oval_definition_iteratorcxx . . $ oval_definition_iterator#
250 *oc_definition)
251 {
252 return (struct oval_definitioncxx . . $ oval_definition# *)
253 oval_collection_iterator_nextcxx . . $ oval_collection_iterator_next(344074693c9690a9).((struct oval_iteratorcxx . . $ oval_iterator# *)
254 oc_definition);
255 }
256
257 void oval_definition_iterator_freecxx . . $ oval_definition_iterator_free(b4c4f061b8f4c70).(struct
258 oval_definition_iteratorcxx . . $ oval_definition_iterator#
259 *oc_definition)
260 {
261 oval_collection_iterator_freecxx . . $ oval_collection_iterator_free(ee496816570b41f7).((struct oval_iteratorcxx . . $ oval_iterator# *)
262 oc_definition);
263 }
264
265 void oval_definition_set_versioncxx . . $ oval_definition_set_version(3ac4c7e22005a7ca).(struct oval_definitioncxx . . $ oval_definition# *definition, int version)
266 {
267 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
268 definition->versioncxx . . $ oval_definition#version. = version;
269 }
270
271 void oval_definition_set_classcxx . . $ oval_definition_set_class(54823cbfca9b3e3e).(struct oval_definitioncxx . . $ oval_definition# *definition, oval_definition_class_tcxx . . $ oval_definition_class_t# class)
272 {
273 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
274 definition->classcxx . . $ oval_definition#class. = class;
275 }
276
277 void oval_definition_set_deprecatedcxx . . $ oval_definition_set_deprecated(e4c4cedb4410f9b2).(struct oval_definitioncxx . . $ oval_definition# *definition, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! deprecated)
278 {
279 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
280 definition->deprecatedcxx . . $ oval_definition#deprecated. = deprecated;
281 }
282
283 void oval_definition_set_titlecxx . . $ oval_definition_set_title(3e6bfbbb79497eb1).(struct oval_definitioncxx . . $ oval_definition# *definition, char *title)
284 {
285 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
286 if (definition->titlecxx . . $ oval_definition#title. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
287 freecxx . . $ free(5d22bdacc48458e8).(definition->titlecxx . . $ oval_definition#title.);
288 definition->titlecxx . . $ oval_definition#title. = (title == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) ? NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! : oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(title);
289 }
290
291 void oval_definition_set_descriptioncxx . . $ oval_definition_set_description(3e6bfbbb79497eb1).(struct oval_definitioncxx . . $ oval_definition# *definition, char *description)
292 {
293 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
294 if (definition->descriptioncxx . . $ oval_definition#description.)
295 freecxx . . $ free(5d22bdacc48458e8).(definition->descriptioncxx . . $ oval_definition#description.);
296 definition->descriptioncxx . . $ oval_definition#description. = (description == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) ? NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! : oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(description);
297 }
298
299 void oval_definition_set_criteriacxx . . $ oval_definition_set_criteria(37003c2d655fe257).(struct oval_definitioncxx . . $ oval_definition# *definition, struct oval_criteria_nodecxx . . $ oval_criteria_node# *criteria)
300 {
301 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
302 definition->criteriacxx . . $ oval_definition#criteria. = criteria;
303 }
304
305 void oval_definition_add_affectedcxx . . $ oval_definition_add_affected(ea06872d21a4e6e7).(struct oval_definitioncxx . . $ oval_definition# *definition, struct oval_affectedcxx . . $ oval_affected# *affected)
306 {
307 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
308 oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(definition->affectedcxx . . $ oval_definition#affected., affected);
309 }
310
311 void oval_definition_add_referencecxx . . $ oval_definition_add_reference(1bf3c828672d6667).(struct oval_definitioncxx . . $ oval_definition# *definition, struct oval_referencecxx . . $ oval_reference# *ref)
312 {
313 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
314 oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(definition->referencecxx . . $ oval_definition#reference., ref);
315 }
316
317 void oval_definition_add_notecxx . . $ oval_definition_add_note(3e6bfbbb79497eb1).(struct oval_definitioncxx . . $ oval_definition# *definition, char *note) {
318 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(definition);
319 oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(definition->notescxx . . $ oval_definition#notes., note);
320 }
321
322 static void _oval_definition_title_consumercxx . . $ _oval_definition_title_consumer(75961c4613ebf8f5).(char *string, void *user)
323 {
324 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(user);
325
326 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
327 char *title = definition->titlecxx . . $ oval_definition#title.;
328 if (title == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
329 title = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(string);
330 else {
331 int newsize = strlencxx . . $ strlen(751346f8406fd082).(title) + strlencxx . . $ strlen(751346f8406fd082).(string) + 1;
332 char *newtitle = (char *)malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(newsize * sizeof(char));
333 if (newtitle == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
334 return;
335
336 strcpycxx . . $ strcpy(b7b3a83273496486).(newtitle, title);
337 strcatcxx . . $ strcat(b7b3a83273496486).(newtitle, string);
338 freecxx . . $ free(5d22bdacc48458e8).(title);
339 title = newtitle;
340 }
341 definition->titlecxx . . $ oval_definition#title. = title;
342 }
343
344 static void _oval_definition_description_consumercxx . . $ _oval_definition_description_consumer(75961c4613ebf8f5).(char *string, void *user)
345 {
346 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(user);
347
348 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
349 char *description = definition->descriptioncxx . . $ oval_definition#description.;
350 if (description == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
351 description = oscap_strdupcxx . . $ oscap_strdup(a8b8e32347182212).(string);
352 else {
353 int newsize = strlencxx . . $ strlen(751346f8406fd082).(description) + strlencxx . . $ strlen(751346f8406fd082).(string) + 1;
354 char *newdescription = (char *)malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(newsize * sizeof(char));
355 if (newdescription == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
356 return;
357
358 *newdescription = '\0';
359 strcpycxx . . $ strcpy(b7b3a83273496486).(newdescription, description);
360 strcatcxx . . $ strcat(b7b3a83273496486).(newdescription, string);
361 freecxx . . $ free(5d22bdacc48458e8).(description);
362 description = newdescription;
363 }
364 definition->descriptioncxx . . $ oval_definition#description. = description;
365 }
366
367 static void _oval_definition_affected_consumercxx . . $ _oval_definition_affected_consumer(bd85fa059bb665fc).(struct oval_affectedcxx . . $ oval_affected# *affected, void *user)
368 {
369 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(user);
370
371 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
372 oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(definition->affectedcxx . . $ oval_definition#affected., (void *)affected);
373 }
374
375 static void oval_reference_consumecxx . . $ oval_reference_consume(635b74bd647b7d68).(struct oval_referencecxx . . $ oval_reference# *ref, void *def)
376 {
377
378 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(def);
379
380 struct oval_definitioncxx . . $ oval_definition# *definition = def;
381 oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(definition->referencecxx . . $ oval_definition#reference., (void *)ref);
382 }
383
384 static int _oval_definition_parse_metadatacxx . . $ _oval_definition_parse_metadata(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *user)
385 {
386 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
387 char *tagname = (char *)xmlTextReaderLocalNamecxx . . $ xmlTextReaderLocalName(3322afb275581432).(reader);
388 int return_code;
389 if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "title") == 0)) {
390 return_code = oscap_parser_text_valuecxx . . $ oscap_parser_text_value(23cd2d9646b6359b).(reader, &_oval_definition_title_consumercxx . . $ _oval_definition_title_consumer(75961c4613ebf8f5)., definition);
391 } else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "description") == 0) {
392 return_code = oscap_parser_text_valuecxx . . $ oscap_parser_text_value(23cd2d9646b6359b).(reader, &_oval_definition_description_consumercxx . . $ _oval_definition_description_consumer(75961c4613ebf8f5)., definition);
393 } else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "affected") == 0) {
394 return_code = oval_affected_parse_tagcxx . . $ oval_affected_parse_tag(38ff2ed3a5524b93).(reader, context, &_oval_definition_affected_consumercxx . . $ _oval_definition_affected_consumer(bd85fa059bb665fc)., definition);
395 } else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "oval_repository") == 0) { /* NOOP */
396 return_code = oval_parser_skip_tagcxx . . $ oval_parser_skip_tag(b61d4daae99e998a).(reader, context);
397 } else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "reference") == 0) {
398 return_code = oval_reference_parse_tagcxx . . $ oval_reference_parse_tag(93b23cd17ec0538a).(reader, context, &oval_reference_consumecxx . . $ oval_reference_consume(635b74bd647b7d68)., definition);
399 } else {
400 definition->anyxmlcxx . . $ oval_definition#anyxml. = (char *) xmlTextReaderReadOuterXmlcxx . . $ xmlTextReaderReadOuterXml(3322afb275581432).(reader);
401 return_code = oval_parser_skip_tagcxx . . $ oval_parser_skip_tag(b61d4daae99e998a).(reader, context);
402 }
403 freecxx . . $ free(5d22bdacc48458e8).(tagname);
404 return return_code;
405 }
406
407 static void _oval_definition_criteria_consumercxx . . $ _oval_definition_criteria_consumer(6514a6432a8dc834).(struct oval_criteria_nodecxx . . $ oval_criteria_node# *criteria, void *user)
408 {
409 __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(user);
410
411 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
412 definition->criteriacxx . . $ oval_definition#criteria. = criteria;
413 }
414
415 static int _oval_definition_parse_tagcxx . . $ _oval_definition_parse_tag(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *user)
416 {
417 struct oval_definitioncxx . . $ oval_definition# *definition = (struct oval_definitioncxx . . $ oval_definition# *)user;
418 char *tagname = (char *)xmlTextReaderLocalNamecxx . . $ xmlTextReaderLocalName(3322afb275581432).(reader);
419 int return_code;
420 if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "metadata") == 0)) {
421 return_code = oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(reader, context, &_oval_definition_parse_metadatacxx . . $ _oval_definition_parse_metadata(cf369959597901d1)., definition);
422 } else if ((strcmpcxx . . $ strcmp(5ae29d726ae57f88).(tagname, "criteria") == 0)) {
423 return_code = oval_criteria_parse_tagcxx . . $ oval_criteria_parse_tag(ee51306422199fa9).(reader, context, &_oval_definition_criteria_consumercxx . . $ _oval_definition_criteria_consumer(6514a6432a8dc834)., definition);
424 } else {
425 dDcxx . . $ `src/common/debug_priv.h:64:9`!("Skipping tag: %s.", tagname);
426 return_code = oval_parser_skip_tagcxx . . $ oval_parser_skip_tag(b61d4daae99e998a).(reader, context);
427 }
428 freecxx . . $ free(5d22bdacc48458e8).(tagname);
429 return return_code;
430 }
431
432 int oval_definition_parse_tagcxx . . $ oval_definition_parse_tag(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *usr)
433 {
434 struct oval_definition_modelcxx . . $ oval_definition_model# *model = context->definition_modelcxx . . $ oval_parser_context#definition_model.;
435 char *id = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "id");
436 struct oval_definitioncxx . . $ oval_definition# *definition = oval_definition_model_get_new_definitioncxx . . $ oval_definition_model_get_new_definition(d4bef07f0697769).(model, id);
437 freecxx . . $ free(5d22bdacc48458e8).(id);
438 id = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
439
440 char *version = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "version");
441 oval_definition_set_versioncxx . . $ oval_definition_set_version(3ac4c7e22005a7ca).(definition, atoicxx . . $ atoi(5c4306d8553b3696).(version));
442 freecxx . . $ free(5d22bdacc48458e8).(version);
443 version = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
444
445 char *class = (char *)xmlTextReaderGetAttributecxx . . $ xmlTextReaderGetAttribute(6d056300a6ef2116).(reader, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "class");
446 oval_definition_set_classcxx . . $ oval_definition_set_class(54823cbfca9b3e3e).(definition, oval_definition_class_enumcxx . . $ oval_definition_class_enum(3bb3c9d9c15377c1).(class));
447 freecxx . . $ free(5d22bdacc48458e8).(class);
448 class = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
449
450 int deprecated = oval_parser_boolean_attributecxx . . $ oval_parser_boolean_attribute(a53adaee35698733).(reader, "deprecated", 0);
451 oval_definition_set_deprecatedcxx . . $ oval_definition_set_deprecated(e4c4cedb4410f9b2).(definition, deprecated);
452 int return_code = oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(reader, context, &_oval_definition_parse_tagcxx . . $ _oval_definition_parse_tag(cf369959597901d1)., definition);
453 return return_code;
454 }
455
456
457 xmlNodecxx . . $ xmlNode# *oval_definition_to_domcxx . . $ oval_definition_to_dom(18b56f54d4ecf829).(struct oval_definitioncxx . . $ oval_definition# *definition, xmlDoccxx . . $ xmlDoc# * doc, xmlNodecxx . . $ xmlNode# * parent)
458 {
459 xmlNodecxx . . $ xmlNode# *nodestr, *nodelst;
460 xmlDoccxx . . $ xmlDoc# * docstr;
461 xmlNscxx . . $ xmlNs# *ns_definitions = xmlSearchNsByHrefcxx . . $ xmlSearchNsByHref(d0fb0b6b99319c4).(doc, parent, OVAL_DEFINITIONS_NAMESPACEcxx . . $ `src/OVAL/oval_agent_api_impl.h:50:9`!);
462 xmlNodecxx . . $ xmlNode# *definition_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(parent, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "definition", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
463
464 char *id = oval_definition_get_idcxx . . $ oval_definition_get_id(293cc7080a5789e2).(definition);
465 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(definition_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "id", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! id);
466
467 char version[10];
468 *version = '\0';
469 snprintfcxx . . $ snprintf(ea502d73e74c754c).(version, sizeof(version), "%d", oval_definition_get_versioncxx . . $ oval_definition_get_version(5d9693806bb51fdb).(definition));
470 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(definition_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "version", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! version);
471
472 oval_definition_class_tcxx . . $ oval_definition_class_t# class = oval_definition_get_classcxx . . $ oval_definition_get_class(aaabc0cd8e2da5f4).(definition);
473 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(definition_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "class", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_definition_class_textcxx . . $ oval_definition_class_text(57b08f9c5fa3eb98).(class));
474
475 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! deprecated = oval_definition_get_deprecatedcxx . . $ oval_definition_get_deprecated(398c9276fa28381f).(definition);
476 if (deprecated)
477 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(definition_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "deprecated", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "true");
478
479 xmlNodecxx . . $ xmlNode# *metadata_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(definition_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "metadata", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
480
481 char *title = oval_definition_get_titlecxx . . $ oval_definition_get_title(293cc7080a5789e2).(definition);
482 xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(metadata_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "title", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! title);
483
484 struct oval_affected_iteratorcxx . . $ oval_affected_iterator# *affecteds = oval_definition_get_affectedcxx . . $ oval_definition_get_affected(5edf6a808f911d85).(definition);
485 while (oval_affected_iterator_has_morecxx . . $ oval_affected_iterator_has_more(178424f7a96afe6c).(affecteds)) {
486 xmlNodecxx . . $ xmlNode# *affected_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(metadata_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "affected", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
487 struct oval_affectedcxx . . $ oval_affected# *affected = oval_affected_iterator_nextcxx . . $ oval_affected_iterator_next(dc665843cb96a3b8).(affecteds);
488 oval_affected_family_tcxx . . $ oval_affected_family_t# family = oval_affected_get_familycxx . . $ oval_affected_get_family(62b180de559e1e1b).(affected);
489 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(affected_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "family", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_affected_family_get_textcxx . . $ oval_affected_family_get_text(a4f5ae4cfe4b2931).(family));
490 struct oval_string_iteratorcxx . . $ oval_string_iterator# *platforms = oval_affected_get_platformscxx . . $ oval_affected_get_platforms(7c544294b661c17f).(affected);
491 while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(platforms)) {
492 char *platform = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(platforms);
493 xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(affected_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "platform", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! platform);
494 }
495 oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(platforms);
496 struct oval_string_iteratorcxx . . $ oval_string_iterator# *products = oval_affected_get_productscxx . . $ oval_affected_get_products(7c544294b661c17f).(affected);
497 while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(products)) {
498 char *product = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(products);
499 xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(affected_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "product", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! product);
500 }
501 oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(products);
502 }
503 oval_affected_iterator_freecxx . . $ oval_affected_iterator_free(909fa3115b79bd9f).(affecteds);
504
505 struct oval_reference_iteratorcxx . . $ oval_reference_iterator# *references = oval_definition_get_referencescxx . . $ oval_definition_get_references(258752f9d864cbd1).(definition);
506 while (oval_reference_iterator_has_morecxx . . $ oval_reference_iterator_has_more(ed88b8b7dcfa9c).(references)) {
507 struct oval_referencecxx . . $ oval_reference# *ref = oval_reference_iterator_nextcxx . . $ oval_reference_iterator_next(69cb5fc9fafa3c58).(references);
508 xmlNodecxx . . $ xmlNode# *referenceNode = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(metadata_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "reference", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
509 char *source = oval_reference_get_sourcecxx . . $ oval_reference_get_source(465b82d770bf06bd).(ref);
510 char *ref_id = oval_reference_get_idcxx . . $ oval_reference_get_id(465b82d770bf06bd).(ref);
511 char *ref_url = oval_reference_get_urlcxx . . $ oval_reference_get_url(465b82d770bf06bd).(ref);
512 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(referenceNode, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "source", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! source);
513 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(referenceNode, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "ref_id", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! ref_id);
514 if (ref_url)
515 xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(referenceNode, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "ref_url", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! ref_url);
516 }
517 oval_reference_iterator_freecxx . . $ oval_reference_iterator_free(cbd4652e83f0ad3a).(references);
518
519 char *description = oval_definition_get_descriptioncxx . . $ oval_definition_get_description(293cc7080a5789e2).(definition);
520 xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(metadata_node, ns_definitions, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "description", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! description);
521
522 struct oval_string_iteratorcxx . . $ oval_string_iterator# *notes = oval_definition_get_notescxx . . $ oval_definition_get_notes(63d923fd33293cb1).(definition);
523 if (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) {
524 xmlNodecxx . . $ xmlNode# *notes_node = xmlNewTextChildcxx . . $ xmlNewTextChild(4c74f4d7754e7bc8).(definition_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`!);
525 while (oval_string_iterator_has_morecxx . . $ oval_string_iterator_has_more(41a15bd829ecb6dd).(notes)) {
526 char *note = oval_string_iterator_nextcxx . . $ oval_string_iterator_next(fc393b19611653f6).(notes);
527 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);
528 }
529 }
530 oval_string_iterator_freecxx . . $ oval_string_iterator_free(eccafcd0705f3c29).(notes);
531
532 docstr = xmlReadDoccxx . . $ xmlReadDoc(f9d9dda98e3f2b07).(BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! definition->anyxmlcxx . . $ oval_definition#anyxml., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0);
533 nodestr = xmlDocGetRootElementcxx . . $ xmlDocGetRootElement(53aa9a676bd496f2).(docstr);
534 nodelst = xmlDocCopyNodecxx . . $ xmlDocCopyNode(822fd5ca7909f438).(nodestr, doc, 1);
535 xmlAddChildListcxx . . $ xmlAddChildList(93e65f4d4ebd68bd).(metadata_node, nodelst);
536 xmlFreeDoccxx . . $ xmlFreeDoc(42de24d0ab3f771).(docstr);
537
538 struct oval_criteria_nodecxx . . $ oval_criteria_node# *criteria = oval_definition_get_criteriacxx . . $ oval_definition_get_criteria(65398e133db0196).(definition);
539 if (criteria)
540 oval_criteria_node_to_domcxx . . $ oval_criteria_node_to_dom(d582470bf637fa0f).(criteria, doc, definition_node);
541
542 return definition_node;
543 }
544
545 const char * oval_definition_model_supportedcxx . . $ oval_definition_model_supported(33a1f659e94feb42).(void)
546 {
547 return OVAL_SUPPORTEDcxx . . $ `src/OVAL/oval_agent_api_impl.h:38:9`!;
548 }