|
91 | 91 |
|
92 | 92 | // References containing STIG Rule IDs can be found by their href attribute, it must match the following url |
93 | 93 | static const char *DISA_STIG_VIEWER_HREF[] = { "http://iase.disa.mil/stigs/Pages/stig-viewing-guidance.aspx", |
94 | | - "https://public.cyber.mil/stigs/srg-stig-tools/" }; |
| 94 | + "https://public.cyber.mil/stigs/srg-stig-tools/", |
| 95 | + "https://www.cyber.mil/stigs/srg-stig-tools/" }; |
95 | 96 |
|
96 | 97 | // constants |
97 | 98 | 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 |
1278 | 1279 | struct oscap_reference *ref = oscap_reference_iterator_next(references); |
1279 | 1280 | const char *href = oscap_reference_get_href(ref); |
1280 | 1281 | if (href && (strcmp(href, DISA_STIG_VIEWER_HREF[0]) == 0 || |
1281 | | - strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0)) { |
| 1282 | + strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0 || |
| 1283 | + strcmp(href, DISA_STIG_VIEWER_HREF[2]) == 0)) { |
1282 | 1284 | const char *stig_rule_id = oscap_reference_get_title(ref); |
1283 | 1285 |
|
1284 | 1286 | 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 |
1487 | 1489 | struct oscap_reference *ref = oscap_reference_iterator_next(references); |
1488 | 1490 | const char *href = oscap_reference_get_href(ref); |
1489 | 1491 | if (href && (strcmp(href, DISA_STIG_VIEWER_HREF[0]) == 0 || |
1490 | | - strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0)) { |
| 1492 | + strcmp(href, DISA_STIG_VIEWER_HREF[1]) == 0 || |
| 1493 | + strcmp(href, DISA_STIG_VIEWER_HREF[2]) == 0)) { |
1491 | 1494 | const char *stig_rule_id = oscap_reference_get_title(ref); |
1492 | 1495 |
|
1493 | 1496 | xccdf_test_result_type_t expected_res = (xccdf_test_result_type_t)oscap_htable_get(nodes_by_rule_id, stig_rule_id); |
|
0 commit comments