Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement xccdf_session_get_rule_results function in XCCDF session API #2021

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

0intro
Copy link
Contributor

@0intro 0intro commented Sep 4, 2023

This change adds a new public xccdf_session_get_rule_results function to the XCCDF session API.

This function returns rule results.

Results could be iterated using the xccdf_rule_result_iterator_has_more function from the XCCDF benchmark API.

@0intro 0intro changed the title Implement xccdf_session_get_rule_results function in session API Implement xccdf_session_get_rule_results function in XCCDF session API Sep 4, 2023
@0intro
Copy link
Contributor Author

0intro commented Sep 4, 2023

A use case of this API function is presented in the program example available in issue #1938.

Comment on lines 585 to 587
* @param session XCCDF Session
OSCAP_API struct xccdf_rule_result_iterator *xccdf_session_get_rule_results(const struct xccdf_session *session);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing end of comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks.

This change adds a new public xccdf_session_get_rule_results function
to the session API.

This function returns rule results.

Results could be iterated using the xccdf_rule_result_iterator_has_more
function from the XCCDF benchmark API.
@jan-cerny jan-cerny self-assigned this Sep 15, 2023
@jan-cerny jan-cerny added this to the 1.3.10 milestone Sep 15, 2023
@jan-cerny jan-cerny merged commit 73d957d into OpenSCAP:maint-1.3 Sep 15, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants