libspdm icon indicating copy to clipboard operation
libspdm copied to clipboard

Add send/receive to `spdm_common_lib`

Open PrithviAPai opened this issue 2 years ago • 5 comments

Once secure session is established, in application phase both SPDM Requester and SPDM Responder can send/receive messages. Added patch which will enable SPDM Responders also to send message during Appication phase.

Resolves issue: https://github.com/DMTF/libspdm/issues/2571

PrithviAPai avatar Feb 29 '24 01:02 PrithviAPai

@PrithviAPai , please squash your commit. There is no need to create a patch to fix format issue.

jyao1 avatar Feb 29 '24 04:02 jyao1

@PrithviAPai , please squash your commit. There is no need to create a patch to fix format issue.

Addressed the comment. Squashed the commits. Thank You

PrithviAPai avatar Feb 29 '24 05:02 PrithviAPai

Thanks for your commit. And I compare the change: no code changes, only positional changes. LGTM. Please submit commit too in spdm-emu if the PR is merged.

Wenxing-hou avatar Feb 29 '24 06:02 Wenxing-hou

Would you please show an example on how responder uses those APIs?

jyao1 avatar Feb 29 '24 10:02 jyao1

Would you please show an example on how responder uses those APIs?

SPDM Responder(Integrator) daemon can expose APIs for applications to send encrypted data to SPDM EndPoint. The payload received by the applications can be sent to EID using libspdm_send_data

PrithviAPai avatar Feb 29 '24 12:02 PrithviAPai