Skip to content

Commit

Permalink
Upgrate SPDM 1.3 Version Support
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
IntelCaisui committed Dec 17, 2024
1 parent 2cab412 commit ef5aeb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/spdmlib-test/src/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub fn req_create_info() -> (SpdmConfigInfo, SpdmProvisionInfo) {
Some(SpdmVersion::SpdmVersion10),
Some(SpdmVersion::SpdmVersion11),
Some(SpdmVersion::SpdmVersion12),
None,
Some(SpdmVersion::SpdmVersion13),
],
req_capabilities: req_capabilities,
req_ct_exponent: 0,
Expand Down
2 changes: 2 additions & 0 deletions test/spdmlib-test/src/responder_tests/version_rsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
assert_eq!(payload.versions[3].version, SpdmVersion::SpdmVersion13);
}
};
executor::block_on(future);
Expand Down

0 comments on commit ef5aeb1

Please sign in to comment.