Closed twilfredo closed 1 year ago
The documentation (https://github.com/DMTF/SPDM-Responder-Validator/blob/main/doc/2.Capabilities.md) also says that the Requester's CHUNK_CAP
is set.
Requester -> GET_CAPABILITIES {SPDMVersion=0x12, Param1=0, Param2=0, CTExponent, Flags=CERT_CAP|CHAL_CAP|ENCRYPT_CAP|MAC_CAP|MUT_AUTH_CAP|KEY_EX_CAP|PSK_CAP=1|ENCAP_CAP|HBEAT_CAP|KEY_UPD_CAP|CHUNK_CAP, DataTransferSize, MaxSPDMmsgSize}
Problem
When running the test suite against a libspdm responder, I noticed a failure at:
I think the error is caught here: https://github.com/DMTF/libspdm/blob/1444a7863bd4bcd114f35904d56b6578bc9bc387/library/spdm_responder_lib/libspdm_rsp_capabilities.c#L186
But I'm not sure why the test does not see an error return status in from
libspdm_send_receive_data()
, instead it fails later at checking the response size. Any ideas?Fix
Alternatively, if chunk isn't preferred, I think we need to assert that
spdm_request.data_transfer_size == spdm_request.max_spdm_msg_size
With this change, the test will now pass.