Skip to content

Conversation

@Li-Aaron
Copy link
Contributor

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

fix #3448

@Li-Aaron Li-Aaron marked this pull request as ready for review December 25, 2025 01:23
@Li-Aaron Li-Aaron marked this pull request as draft December 25, 2025 01:26
@Li-Aaron Li-Aaron marked this pull request as ready for review December 25, 2025 01:27
fix DMTF#3448

Signed-off-by: Aaron Li <aaron.li@intel.com>
* If session_id is NOT NULL, it is a secured message.
* @param request A pointer to the request data.
* @param request_size Size in bytes of the request data.
* @param response A pointer to the response data.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can request and response point to the same buffer? Ie, the request message would be overwritten by the response message when libspdm_send_receive_spdm_data returns?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, request and response can be same buffer.
The API copy the data from request buffer to sender_buffer before send request; and copy data from receiver_buffer to response buffer after recieve full response.

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.

provide libspdm_send_receive_spdm_data() API for chunking

2 participants