Libspdm implementation query #837
-
Hello , i wanted to implement spdm over mctp over smbus . As I am using libspdm , i have writen my own application that will interact between libspdm and mctp . I called spdm_client_init().
In libspdm_init_ connection , Can you pls tell me , why i am getting till error . Where I can get this error code description. And how can I run it successfully, if anything need to be added. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
It is unclear to me where the problem is, from your description. The libspdm consumer reference is at https://github.com/DMTF/spdm-emu. The requester is at https://github.com/DMTF/spdm-emu/tree/main/spdm_emu/spdm_requester_emu. The responder is at https://github.com/DMTF/spdm-emu/tree/main/spdm_emu/spdm_responder_emu. The status code definition is at https://github.com/DMTF/libspdm/blob/main/include/library/spdm_return_status.h @PoojaGaur1708 I am sorry, but it is almost impossible to know what happened based upon such little information. |
Beta Was this translation helpful? Give feedback.
-
Hello Pls find the code below. Getting return Error in spdm_client_init Returning error code 0xffffffff80010002 |
Beta Was this translation helpful? Give feedback.
-
At least one issue I found so far. The
See below definition. You should NOT use malloc here, and you should fill the data to *message and *message_size directly.
You may also see the implementation in spdm-emu at |
Beta Was this translation helpful? Give feedback.
-
Where is your dump for below
Can you show the full log? |
Beta Was this translation helpful? Give feedback.
-
I feel you should use However, why there is 0x7 in the middle?
@PoojaGaur1708 , you are NOT following https://www.dmtf.org/sites/default/files/standards/documents/DSP0275_1.0.0.pdf. Please read the spec. the length field should be absent. |
Beta Was this translation helpful? Give feedback.
-
Hello , Now i am getting this error status return libspdm_init_connection - 0x80010007 which is LIBSPDM_STATUS_NEGOTIATION_FAIL. As i check the code ,
libspdm_return_t libspdm_receive_spdm_response(libspdm_context_t *spdm_context,
} Output : |
Beta Was this translation helpful? Give feedback.
I feel you should use
*message = &m_send_receive_buffer[10];
, since your MCTP message starts at byte 10.However, why there is 0x7 in the middle?
@PoojaGaur1708 , you are NOT following https://www.dmtf.org/sites/default/files/standards/documents/DSP0275_1.0.0.pdf.
Please read the spec. the length field should be absent.