@@ -209,8 +209,11 @@ static inline void _print_xccdf_referenced_files(struct xccdf_policy_model *poli
209
209
printf ("%sReferenced check files:\n" , prefix );
210
210
while (oscap_file_entry_iterator_has_more (files_it )) {
211
211
struct oscap_file_entry * file_entry = (struct oscap_file_entry * ) oscap_file_entry_iterator_next (files_it );
212
- printf ("%s\t%s\n" , prefix , oscap_file_entry_get_file (file_entry ));
213
- printf ("%s\t\tsystem: %s\n" , prefix , oscap_file_entry_get_system (file_entry ));
212
+ const char * system = oscap_file_entry_get_system (file_entry );
213
+ if (strcmp (system , "http://open-scap.org/page/SCE" )) {
214
+ printf ("%s\t%s\n" , prefix , oscap_file_entry_get_file (file_entry ));
215
+ printf ("%s\t\tsystem: %s\n" , prefix , oscap_file_entry_get_system (file_entry ));
216
+ }
214
217
}
215
218
oscap_file_entry_iterator_free (files_it );
216
219
oscap_file_entry_list_free (referenced_files );
@@ -490,26 +493,6 @@ static int app_info_single_ds_all(struct ds_stream_index_iterator* sds_it, struc
490
493
ds_sds_session_reset (session );
491
494
}
492
495
oscap_string_iterator_free (checklist_it );
493
-
494
- printf ("Checks:\n" );
495
- struct oscap_string_iterator * checks_it = ds_stream_index_get_checks (stream );
496
- while (oscap_string_iterator_has_more (checks_it )) {
497
- const char * id = oscap_string_iterator_next (checks_it );
498
- printf ("\tRef-Id: %s\n" , id );
499
- }
500
- oscap_string_iterator_free (checks_it );
501
-
502
- struct oscap_string_iterator * dict_it = ds_stream_index_get_dictionaries (stream );
503
- if (oscap_string_iterator_has_more (dict_it )) {
504
- printf ("Dictionaries:\n" );
505
- } else {
506
- printf ("No dictionaries.\n" );
507
- }
508
- while (oscap_string_iterator_has_more (dict_it )) {
509
- const char * id = oscap_string_iterator_next (dict_it );
510
- printf ("\tRef-Id: %s\n" , id );
511
- }
512
- oscap_string_iterator_free (dict_it );
513
496
return OSCAP_OK ;
514
497
}
515
498
0 commit comments