diff --git a/src/XCCDF/result.c b/src/XCCDF/result.c index e317319fe0..83456f8133 100644 --- a/src/XCCDF/result.c +++ b/src/XCCDF/result.c @@ -91,7 +91,8 @@ // References containing STIG Rule IDs can be found by their href attribute, it must match the following url static const char *DISA_STIG_VIEWER_HREF[] = { "http://iase.disa.mil/stigs/Pages/stig-viewing-guidance.aspx", - "https://public.cyber.mil/stigs/srg-stig-tools/" }; + "https://public.cyber.mil/stigs/srg-stig-tools/", + "https://www.cyber.mil/stigs/srg-stig-tools/" }; // constants static const xccdf_numeric XCCDF_SCORE_MAX_DAFAULT = 100.0f; @@ -1278,7 +1279,8 @@ void xccdf_result_to_dom(struct xccdf_result *result, xmlNode *result_node, xmlD struct oscap_reference *ref = oscap_reference_iterator_next(references); const char *href = oscap_reference_get_href(ref); if (href && (strcmp(href, DISA_STIG_VIEWER_HREF[0]) == 0 || - strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0)) { + strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0 || + strcmp(href, DISA_STIG_VIEWER_HREF[2]) == 0)) { const char *stig_rule_id = oscap_reference_get_title(ref); xccdf_test_result_type_t other_res = (xccdf_test_result_type_t)oscap_htable_detach(nodes_by_rule_id, stig_rule_id); @@ -1487,7 +1489,8 @@ void xccdf_rule_result_to_dom(struct xccdf_rule_result *result, xmlDoc *doc, xml struct oscap_reference *ref = oscap_reference_iterator_next(references); const char *href = oscap_reference_get_href(ref); if (href && (strcmp(href, DISA_STIG_VIEWER_HREF[0]) == 0 || - strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0)) { + strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0 || + strcmp(href, DISA_STIG_VIEWER_HREF[2]) == 0)) { const char *stig_rule_id = oscap_reference_get_title(ref); xccdf_test_result_type_t expected_res = (xccdf_test_result_type_t)oscap_htable_get(nodes_by_rule_id, stig_rule_id); diff --git a/xsl/xccdf-references.xsl b/xsl/xccdf-references.xsl index 47d59cac46..c91f033123 100644 --- a/xsl/xccdf-references.xsl +++ b/xsl/xccdf-references.xsl @@ -82,7 +82,9 @@ Authors: ISO 27001-2013 - + STIG Viewer