$ ./spdm_responder_emu --trans NONE
spdm_responder_emu version 0.1
trans - 0x0
context_size - 0x3048
max_spdm_msg_size (4608) must be greater than or equal to data_transfer_size (4736).
I believe the issue is due to macro LIBSPDM_SENDER_BUFFER_SIZE, LIBSPDM_RECEIVER_BUFFER_SIZE appending LIBSPDM_TRANSPORT_ADDITIONAL_SIZE. The transport header_size, tail_size is set during runtime based on the selected transport. For transport NONE these values are 0. But these macros LIBSPDM_SENDER_BUFFER_SIZE and LIBSPDM_RECEIVER_BUFFER_SIZE add LIBSPDM_TRANSPORT_ADDITIONAL_SIZE. I have a possible fix, shall raise a PR and we can discuss other options in code review. Please ack. Thanks.
$ ./spdm_responder_emu --trans NONE spdm_responder_emu version 0.1 trans - 0x0 context_size - 0x3048 max_spdm_msg_size (4608) must be greater than or equal to data_transfer_size (4736).
I believe the issue is due to macro LIBSPDM_SENDER_BUFFER_SIZE, LIBSPDM_RECEIVER_BUFFER_SIZE appending LIBSPDM_TRANSPORT_ADDITIONAL_SIZE. The transport header_size, tail_size is set during runtime based on the selected transport. For transport NONE these values are 0. But these macros LIBSPDM_SENDER_BUFFER_SIZE and LIBSPDM_RECEIVER_BUFFER_SIZE add LIBSPDM_TRANSPORT_ADDITIONAL_SIZE. I have a possible fix, shall raise a PR and we can discuss other options in code review. Please ack. Thanks.