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

Enquiry for ERROR Param 1 & 2 before GET_CAPABILITIES #335

Open
owen126315 opened this issue Feb 7, 2024 · 1 comment
Open

Enquiry for ERROR Param 1 & 2 before GET_CAPABILITIES #335

owen126315 opened this issue Feb 7, 2024 · 1 comment

Comments

@owen126315
Copy link

The original order of SPDM emu:

  1. GET_VERSION
  2. GET_CAPABILITIES
  3. NEGOTIATE_ALGORITHMS
  4. GET_DIGESTS
  5. GET_CERTIFICATE
  6. CHALLENGE
  7. GET_MEASUREMENTS

I tried to shuffle the SPDM requests order as below:

  1. GET_MEASUREMENTS
  2. CHALLENGE
  3. GET_CERTIFICATE
  4. GET_DIGESTS
  5. NEGOTIATE_ALGORITHMS
  6. GET_CAPABILITIES
  7. GET_VERSION

I expected to have ERROR(UnexpectedRequest), but turns out most of the responds were ERROR(VersionMismatch).

Is that a bug? Or just a misunderstanding of the SPDM spec?

@owen126315 owen126315 changed the title Enquiry for param 1 & 2 of ERROR respond before GET_CAPABILITIES Enquiry for ERROR Param 1 & 2 before GET_CAPABILITIES Feb 7, 2024
@steven-bellock
Copy link
Contributor

See DMTF/libspdm#2213. Note that the SPDM specification has normative language for error codes for only a few conditions / scenarios. The rest it leaves up to the endpoint implementer.

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