Skip to content

Conversation

@Li-Aaron
Copy link
Contributor

@Li-Aaron Li-Aaron commented Dec 4, 2025

fix #1655

@jyao1
Copy link
Member

jyao1 commented Dec 5, 2025

See the definition in SPDM specification:

MaxSPDMmsgSize: If the Requester does not support the Large SPDM message transfer mechanism, this field shall be equal to the DataTransferSize of the Requester.

Any mismatch violates the spec.

@Li-Aaron Li-Aaron force-pushed the fix-1655 branch 3 times, most recently from c6ed609 to 2f230a2 Compare December 5, 2025 06:56
uint32_t req_msg_header_size;
uint32_t rsp_msg_header_size;
size_t cert_chain_size;
uint32_t max_cert_chain_block_size;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can move this declaration to line 127.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to move?

I think nothing wrong to define it here.

uint32_t req_msg_header_size;
uint32_t rsp_msg_header_size;
size_t cert_chain_size;
uint32_t max_cert_chain_block_size;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can move this declaration to line 166.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to move?

I think nothing wrong to define it here.

@Li-Aaron Li-Aaron marked this pull request as ready for review December 8, 2025 03:02
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.

Remove LIBSPDM_MAX_CERT_CHAIN_BLOCK_LEN

3 participants