@@ -112,9 +112,7 @@ static struct oscap_module OVAL_EVAL = {
112
112
" --datastream-id <id> - ID of the datastream in the collection to use.\n"
113
113
" (only applicable for source datastreams)\n"
114
114
" --oval-id <id> - ID of the OVAL component ref in the datastream to use.\n"
115
- " (only applicable for source datastreams)\n"
116
- " --verbose <verbosity_level> - Turn on verbose mode at specified verbosity level.\n"
117
- " --verbose-log-file <file> - Write verbose information into file.\n" ,
115
+ " (only applicable for source datastreams)\n" ,
118
116
.opt_parser = getopt_oval_eval ,
119
117
.func = app_evaluate_oval
120
118
};
@@ -129,9 +127,7 @@ static struct oscap_module OVAL_COLLECT = {
129
127
" --id <object> - Collect system characteristics ONLY for specified OVAL Object.\n"
130
128
" --syschar <file> - Write OVAL System Characteristic into file.\n"
131
129
" --variables <file> - Provide external variables expected by OVAL Definitions.\n"
132
- " --skip-valid - Skip validation.\n"
133
- " --verbose <verbosity_level> - Turn on verbose mode at specified verbosity level.\n"
134
- " --verbose-log-file <file> - Write verbose information into file.\n" ,
130
+ " --skip-valid - Skip validation.\n" ,
135
131
.opt_parser = getopt_oval_collect ,
136
132
.func = app_collect_oval
137
133
};
@@ -146,9 +142,7 @@ static struct oscap_module OVAL_ANALYSE = {
146
142
"Options:\n"
147
143
" --variables <file> - Provide external variables expected by OVAL Definitions.\n"
148
144
" --directives <file> - Use OVAL Directives content to specify desired results content.\n"
149
- " --skip-valid - Skip validation.\n"
150
- " --verbose <verbosity_level> - Turn on verbose mode at specified verbosity level.\n"
151
- " --verbose-log-file <file> - Write verbose information into file.\n" ,
145
+ " --skip-valid - Skip validation.\n" ,
152
146
.opt_parser = getopt_oval_analyse ,
153
147
.func = app_analyse_oval
154
148
};
@@ -210,11 +204,6 @@ int app_collect_oval(const struct oscap_action *action)
210
204
struct oval_generator * generator = NULL ;
211
205
int ret = OSCAP_ERROR ;
212
206
213
- /* Turn on verbosity */
214
- if (!oscap_set_verbose (action -> verbosity_level , action -> f_verbose_log , false)) {
215
- goto cleanup ;
216
- }
217
-
218
207
/* validate inputs */
219
208
if (action -> validate ) {
220
209
if (!valid_inputs (action )) {
@@ -331,11 +320,6 @@ int app_evaluate_oval(const struct oscap_action *action)
331
320
oval_result_t eval_result ;
332
321
int ret = OSCAP_ERROR ;
333
322
334
- /* Turn on verbosity */
335
- if (!oscap_set_verbose (action -> verbosity_level , action -> f_verbose_log , false)) {
336
- goto cleanup ;
337
- }
338
-
339
323
/* create a new OVAL session */
340
324
if ((session = oval_session_new (action -> f_oval )) == NULL ) {
341
325
oscap_print_error ();
@@ -399,11 +383,6 @@ static int app_analyse_oval(const struct oscap_action *action) {
399
383
struct oval_generator * generator = NULL ;
400
384
int ret = OSCAP_ERROR ;
401
385
402
- /* Turn on verbosity */
403
- if (!oscap_set_verbose (action -> verbosity_level , action -> f_verbose_log , false)) {
404
- goto cleanup ;
405
- }
406
-
407
386
/* validate inputs */
408
387
if (action -> validate ) {
409
388
if (!valid_inputs (action )) {
@@ -515,9 +494,7 @@ enum oval_opt {
515
494
OVAL_OPT_DIRECTIVES ,
516
495
OVAL_OPT_DATASTREAM_ID ,
517
496
OVAL_OPT_OVAL_ID ,
518
- OVAL_OPT_OUTPUT = 'o' ,
519
- OVAL_OPT_VERBOSE ,
520
- OVAL_OPT_VERBOSE_LOG_FILE
497
+ OVAL_OPT_OUTPUT = 'o'
521
498
};
522
499
523
500
#if defined(OVAL_PROBES_ENABLED )
@@ -536,8 +513,6 @@ bool getopt_oval_eval(int argc, char **argv, struct oscap_action *action)
536
513
{ "datastream-id" ,required_argument , NULL , OVAL_OPT_DATASTREAM_ID },
537
514
{ "oval-id" , required_argument , NULL , OVAL_OPT_OVAL_ID },
538
515
{ "skip-valid" , no_argument , & action -> validate , 0 },
539
- { "verbose" , required_argument , NULL , OVAL_OPT_VERBOSE },
540
- { "verbose-log-file" , required_argument , NULL , OVAL_OPT_VERBOSE_LOG_FILE },
541
516
{ "fetch-remote-resources" , no_argument , & action -> remote_resources , 1 },
542
517
{ 0 , 0 , 0 , 0 }
543
518
};
@@ -552,19 +527,10 @@ bool getopt_oval_eval(int argc, char **argv, struct oscap_action *action)
552
527
case OVAL_OPT_DIRECTIVES : action -> f_directives = optarg ; break ;
553
528
case OVAL_OPT_DATASTREAM_ID : action -> f_datastream_id = optarg ; break ;
554
529
case OVAL_OPT_OVAL_ID : action -> f_oval_id = optarg ; break ;
555
- case OVAL_OPT_VERBOSE :
556
- action -> verbosity_level = optarg ;
557
- break ;
558
- case OVAL_OPT_VERBOSE_LOG_FILE :
559
- action -> f_verbose_log = optarg ;
560
- break ;
561
530
case 0 : break ;
562
531
default : return oscap_module_usage (action -> module , stderr , NULL );
563
532
}
564
533
}
565
- if (!check_verbose_options (action )) {
566
- return false;
567
- }
568
534
569
535
/* We should have Definitions file here */
570
536
if (optind >= argc )
@@ -586,8 +552,6 @@ bool getopt_oval_collect(int argc, char **argv, struct oscap_action *action)
586
552
{ "variables" , required_argument , NULL , OVAL_OPT_VARIABLES },
587
553
{ "syschar" , required_argument , NULL , OVAL_OPT_SYSCHAR },
588
554
{ "skip-valid" , no_argument , & action -> validate , 0 },
589
- { "verbose" , required_argument , NULL , OVAL_OPT_VERBOSE },
590
- { "verbose-log-file" , required_argument , NULL , OVAL_OPT_VERBOSE_LOG_FILE },
591
555
{ 0 , 0 , 0 , 0 }
592
556
};
593
557
@@ -597,19 +561,10 @@ bool getopt_oval_collect(int argc, char **argv, struct oscap_action *action)
597
561
case OVAL_OPT_ID : action -> id = optarg ; break ;
598
562
case OVAL_OPT_VARIABLES : action -> f_variables = optarg ; break ;
599
563
case OVAL_OPT_SYSCHAR : action -> f_syschar = optarg ; break ;
600
- case OVAL_OPT_VERBOSE :
601
- action -> verbosity_level = optarg ;
602
- break ;
603
- case OVAL_OPT_VERBOSE_LOG_FILE :
604
- action -> f_verbose_log = optarg ;
605
- break ;
606
564
case 0 : break ;
607
565
default : return oscap_module_usage (action -> module , stderr , NULL );
608
566
}
609
567
}
610
- if (!check_verbose_options (action )) {
611
- return false;
612
- }
613
568
614
569
/* We should have Definitions file here */
615
570
if (optind >= argc )
@@ -630,8 +585,6 @@ bool getopt_oval_analyse(int argc, char **argv, struct oscap_action *action)
630
585
{ "variables" , required_argument , NULL , OVAL_OPT_VARIABLES },
631
586
{ "directives" , required_argument , NULL , OVAL_OPT_DIRECTIVES },
632
587
{ "skip-valid" , no_argument , & action -> validate , 0 },
633
- { "verbose" , required_argument , NULL , OVAL_OPT_VERBOSE },
634
- { "verbose-log-file" , required_argument , NULL , OVAL_OPT_VERBOSE_LOG_FILE },
635
588
{ 0 , 0 , 0 , 0 }
636
589
};
637
590
@@ -641,19 +594,10 @@ bool getopt_oval_analyse(int argc, char **argv, struct oscap_action *action)
641
594
case OVAL_OPT_RESULT_FILE : action -> f_results = optarg ; break ;
642
595
case OVAL_OPT_VARIABLES : action -> f_variables = optarg ; break ;
643
596
case OVAL_OPT_DIRECTIVES : action -> f_directives = optarg ; break ;
644
- case OVAL_OPT_VERBOSE :
645
- action -> verbosity_level = optarg ;
646
- break ;
647
- case OVAL_OPT_VERBOSE_LOG_FILE :
648
- action -> f_verbose_log = optarg ;
649
- break ;
650
597
case 0 : break ;
651
598
default : return oscap_module_usage (action -> module , stderr , NULL );
652
599
}
653
600
}
654
- if (!check_verbose_options (action )) {
655
- return false;
656
- }
657
601
658
602
/* We should have Definitions file here */
659
603
if (optind >= argc )
0 commit comments