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

Upgrate SPDM 1.3 Version Support #150

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

IntelCaisui
Copy link
Contributor

@IntelCaisui IntelCaisui commented Dec 15, 2024

Fix #135

This Patch adds spdm 1.3 version support

  1. Remains version configs of requester/responder as spdm 1.2 to avoid version negotiated to 1.3
    since spdm 1.3 required features are not ready.
  2. Remains UpdateVersionNumber of VersionNumberEntry for version 1.3 in Ger_Version Response as
    0. Will track the updating to 1.3.2 (most recent in other issuee).

spdmlib/src/message/mod.rs Outdated Show resolved Hide resolved
spdmlib/src/message/mod.rs Outdated Show resolved Hide resolved
@IntelCaisui
Copy link
Contributor Author

This patch includes many optional changes that should not be included to handle #135.
Will update this pr to provide simplest change, and raise optional changes on other issues.

@IntelCaisui IntelCaisui force-pushed the spdm13_version_support branch from 2f6fc74 to ef5aeb1 Compare December 17, 2024 03:46
@@ -80,6 +80,8 @@ fn test_case0_handle_spdm_version() {
assert_eq!(payload.versions[1].version, SpdmVersion::SpdmVersion11);
assert_eq!(payload.versions[2].update, 0);
assert_eq!(payload.versions[2].version, SpdmVersion::SpdmVersion12);
assert_eq!(payload.versions[3].update, 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add check for SpdmVersion13 entry generation in spdm_version_reponse unit test.

@@ -177,7 +177,7 @@ pub fn req_create_info() -> (SpdmConfigInfo, SpdmProvisionInfo) {
Some(SpdmVersion::SpdmVersion10),
Some(SpdmVersion::SpdmVersion11),
Some(SpdmVersion::SpdmVersion12),
None,
Some(SpdmVersion::SpdmVersion13),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add SpdmVersion13 config in spdmlib-test.

Fix ccc-spdm-tools#135

This Patch adds spdm 1.3 version support
1. Remains version configs of requester/responder as spdm 1.2 to avoid version negotiated to 1.3
  since spdm 1.3 required features are not ready.
2. Remains UpdateVersionNumber of VersionNumberEntry for version 1.3 in Ger_Version Response as
  0. Will track the updating to 1.3.2 (most recent) in another issue.
@IntelCaisui IntelCaisui force-pushed the spdm13_version_support branch from ef5aeb1 to dee2060 Compare December 18, 2024 05:08
@jyao1 jyao1 merged commit d3c16d3 into ccc-spdm-tools:main Dec 19, 2024
52 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.

SPDM 1.3 upgrade Version Support 1.3
2 participants