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

validate_responder_capability() should print LIBSPDM_DEBUG_ERROR messages when validation fails #2920

Open
lordaule opened this issue Dec 2, 2024 · 1 comment
Assignees

Comments

@lordaule
Copy link

lordaule commented Dec 2, 2024

Enhancement request to add LIBSPDM_DEBUG print calls of class LIBSPDM_DEBUG_ERROR when the Capabilities response from an endpoint contains invalid bit combinations, as detected by validate_responder_capability()

Without this enhancement, when libspdm rejects an endpoint's Capabilities, the user has to manually decode the returned bytes verses the code (or spec) to determine the nature of the protocol violation.

@steven-bellock
Copy link
Contributor

steven-bellock commented Dec 2, 2024

Should also add this on the Responder side - libspdm_check_request_flag_compatibility().

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

No branches or pull requests

2 participants