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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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),
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.

],
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);
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.

assert_eq!(payload.versions[3].version, SpdmVersion::SpdmVersion13);
}
};
executor::block_on(future);
Expand Down
Loading