Skip to content

Handle "error" if no encapsulated request #3057

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steven-bellock
Copy link
Contributor

Fix #3031.

@steven-bellock steven-bellock marked this pull request as ready for review May 2, 2025 16:52
@steven-bellock steven-bellock requested a review from jyao1 as a code owner May 2, 2025 16:52
return LIBSPDM_STATUS_INVALID_MSG_SIZE;
}

if (mut_auth_requested == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Is that enough?

Should we also consider basic_mut_auth here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mut_auth_requested == 0 is also used for the basic mutual authentication flow. In particular only digests, certificates, and challenge should be allowed in the basic mutual authentication flow, but it does not look like libspdm explicitly enforces that. I will file a separate issue for that.

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.

Requester does not handle "encapsulated" errors from Responder
2 participants