| 1 | |
| 2 | #ifdef HAVE_CONFIG_H |
| 3 | #include <config.h> |
| 4 | #endif |
| 5 | |
| 6 | #include <stdlib.h> |
| 7 | #include <stdio.h> |
| 8 | #include "oval_agent_api.h" |
| 9 | #include "oval_results.h" |
| 10 | #include "oscap.h" |
| 11 | #include "oscap_source.h" |
| 12 | |
| 13 | int main(int argc, char *argv[]) { |
| 14 | struct oval_directives_model *model; |
| 15 | |
| 16 | model=oval_directives_model_new(); |
| 17 | |
| 18 | struct oscap_source *source = oscap_source_new_from_file(argv[1]); |
| 19 | oval_directives_model_import_source(model, source); |
| 20 | oscap_source_free(source); |
| 21 | oval_directives_model_export(model, argv[2]); |
| 22 | |
| 23 | oval_directives_model_free(model); |
| 24 | oscap_cleanup(); |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 |