Skip to content

Commit

Permalink
Clean up references for removals of CVE/CVSS/CVRF
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jun 3, 2024
1 parent 7ce7c33 commit 314955a
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ include_directories(
"src/common/"
"src/common/public/"
"src/CPE/public/"
"src/CVE/public/"
"src/DS/public/"
"src/OVAL/public/"
"src/OVAL/probes/public/"
Expand Down
4 changes: 0 additions & 4 deletions src/common/oscapxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ const char *oscap_document_type_to_string(oscap_document_type_t type)
return "CPE Language";
case OSCAP_DOCUMENT_ARF:
return "ARF Result Datastream";
case OSCAP_DOCUMENT_CVE_FEED:
return "CVE NVD Feed";
case OSCAP_DOCUMENT_CVRF_FEED:
return "CVRF Feed";
case OSCAP_DOCUMENT_OCIL:
return "OCIL Questionnaire";
default:
Expand Down
2 changes: 0 additions & 2 deletions src/common/public/oscap.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ typedef enum oscap_document_type {
OSCAP_DOCUMENT_XCCDF, ///< XCCDF benchmark file
OSCAP_DOCUMENT_CPE_LANGUAGE, ///< CPE language file
OSCAP_DOCUMENT_CPE_DICTIONARY, ///< CPE dictionary file
OSCAP_DOCUMENT_CVE_FEED, ///< CVE NVD feed
OSCAP_DOCUMENT_SCE_RESULT, ///< SCE result file
OSCAP_DOCUMENT_SDS, ///< Source Data Stream file
OSCAP_DOCUMENT_ARF, ///< Result Data Stream file
OSCAP_DOCUMENT_XCCDF_TAILORING, ///< XCCDF tailoring file
OSCAP_DOCUMENT_OCIL, ///< OCIL Definitions file
OSCAP_DOCUMENT_CVRF_FEED ///< CVRF feed
// If you are adding a new enum here, make sure you add support for it
// to utils/oscap-info.c!
} oscap_document_type_t;
Expand Down
6 changes: 0 additions & 6 deletions src/source/doc_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ int oscap_determine_document_type_reader(xmlTextReader *reader, oscap_document_t
else if (!strcmp("platform-specification", elm_name)) {
*doc_type = OSCAP_DOCUMENT_CPE_LANGUAGE;
}
else if (!strcmp("nvd", elm_name)) {
*doc_type = OSCAP_DOCUMENT_CVE_FEED;
}
else if (!strcmp("cvrfdoc", elm_name)) {
*doc_type = OSCAP_DOCUMENT_CVRF_FEED;
}
else if (!strcmp("data-stream-collection", elm_name)) {
*doc_type = OSCAP_DOCUMENT_SDS;
}
Expand Down
6 changes: 0 additions & 6 deletions src/source/oscap_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,6 @@ const char *oscap_source_get_schema_version(struct oscap_source *source)
case OSCAP_DOCUMENT_CPE_LANGUAGE:
source->origin.version = cpe_lang_model_detect_version_priv(reader);
break;
case OSCAP_DOCUMENT_CVE_FEED:
source->origin.version = oscap_strdup("2.0");
break;
case OSCAP_DOCUMENT_CVRF_FEED:
source->origin.version = oscap_strdup("1.1");
break;
case OSCAP_DOCUMENT_SCE_RESULT:
source->origin.version = oscap_strdup("1.0");
break;
Expand Down
1 change: 0 additions & 1 deletion src/source/schematron.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,6 @@ int oscap_source_validate_schematron_priv(struct oscap_source *source, oscap_doc
/* Skip document types that don't have a schematron available */
if (scap_type == OSCAP_DOCUMENT_CPE_LANGUAGE ||
scap_type == OSCAP_DOCUMENT_CPE_DICTIONARY ||
scap_type == OSCAP_DOCUMENT_CVE_FEED ||
scap_type == OSCAP_DOCUMENT_SCE_RESULT ||
scap_type == OSCAP_DOCUMENT_OCIL) {
fprintf(outfile_fd, "Skipped\n");
Expand Down
2 changes: 0 additions & 2 deletions src/source/validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ struct oscap_schema_table_entry OSCAP_SCHEMAS_TABLE[] = {
{OSCAP_DOCUMENT_CPE_DICTIONARY, "2.2", "cpe/2.2/cpe-dictionary_2.2.xsd"},
{OSCAP_DOCUMENT_CPE_DICTIONARY, "2.3", "cpe/2.3/cpe-dictionary_2.3.xsd"},
{OSCAP_DOCUMENT_CPE_LANGUAGE, "2.3", "cpe/2.3/cpe-language_2.3.xsd"},
{OSCAP_DOCUMENT_CVE_FEED, "2.0", "cve/nvd-cve-feed_2.0.xsd"},
{OSCAP_DOCUMENT_CVRF_FEED, "1.1", "cvrf/1.1/cvrf_1.1.xsd"},
{0, NULL, NULL }
};

Expand Down
8 changes: 0 additions & 8 deletions utils/oscap-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,14 +751,6 @@ static int app_info(const struct oscap_action *action)
print_time(action->file);
_print_xccdf_tailoring(source, "", 0);
break;
case OSCAP_DOCUMENT_CVE_FEED:
printf("Document type: CVE Feed\n");
// TODO: Provide more info about CVE feeds
break;
case OSCAP_DOCUMENT_CVRF_FEED:
printf("Document type: CVRF Feed\n");
// TODO: Provide more info about CVRF feeds
break;
case OSCAP_DOCUMENT_SCE_RESULT:
printf("Document type: SCE Result File\n");
// Currently, we do not have any SCE result file parsing capabilities.
Expand Down

0 comments on commit 314955a

Please sign in to comment.