DMTF / spdm-emu

BSD 3-Clause "New" or "Revised" License
31 stars 42 forks source link

should not use interface_id from requester in get_version #300

Open jyao1 opened 11 months ago

jyao1 commented 11 months ago

Current TDISP sample code uses interface_id in the get_version message. See https://github.com/DMTF/spdm-emu/blob/main/library/pci_tdisp_device_lib_sample/pci_tdisp_device_version.c#L41

It is wrong, because it assumes the first time interface_id is correct.

I think libtdisp_initialize_interface_context() should be called earlier, in device initialization phase. But not get_version.