File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,18 @@ OSCAP_API unsigned int xccdf_session_get_cpe_oval_agents_count(const struct xccd
574
574
*/
575
575
OSCAP_API bool xccdf_session_contains_fail_result (const struct xccdf_session * session );
576
576
577
+ /**
578
+ * @struct xccdf_rule_result_iterator
579
+ */
580
+ struct xccdf_rule_result_iterator ;
581
+
582
+ /**
583
+ * Get rule results.
584
+ * @memberof xccdf_session
585
+ * @param session XCCDF Session
586
+ */
587
+ OSCAP_API struct xccdf_rule_result_iterator * xccdf_session_get_rule_results (const struct xccdf_session * session );
588
+
577
589
/**
578
590
* Run XCCDF Remediation. It uses XCCDF Policy and XCCDF TestResult from the session
579
591
* and modifies the TestResult. This also drops and recreate OVAL Agent Session, thus
Original file line number Diff line number Diff line change @@ -1863,6 +1863,11 @@ bool xccdf_session_contains_fail_result(const struct xccdf_session *session)
1863
1863
return false;
1864
1864
}
1865
1865
1866
+ struct xccdf_rule_result_iterator * xccdf_session_get_rule_results (const struct xccdf_session * session )
1867
+ {
1868
+ return xccdf_result_get_rule_results (session -> xccdf .result );
1869
+ }
1870
+
1866
1871
int xccdf_session_remediate (struct xccdf_session * session )
1867
1872
{
1868
1873
int res = 0 ;
You can’t perform that action at this time.
0 commit comments