Comments (7)
@uvinrg, would you please submit a patch to enable spdm-emu?
from spdm-emu.
Hi @jyao1 I would like to update spdm-emu so it works as expected with the new patch. Can you provide me with a quick guide how to run the IDE_KM test, so I can verify afterwards the patch worked? Thank you.
from spdm-emu.
Sure, thank you!
Just run both spdm-emu, please. Originally, emu will send IDE_KM and get response. Now emu cannot because there is no code to register the new callback when LIBSPDM_ENABLE_VENDOR_DEFINED_MESSAGES is enabled.
from spdm-emu.
@Wenxing-hou , please investigate why CI did not catch this issue
from spdm-emu.
@Wenxing-hou , please investigate why CI did not catch this issue
Hi all. I have investigated the SPDM-emu. The current spdm-emu doesn't call the libspdm_try_vendor_send_request_receive_response
and libspdm_get_vendor_defined_response
.
The reason is:
When I added the dead loop in the submodule libspdm, such as:
libspdm_return_t libspdm_try_vendor_send_request_receive_response(
libspdm_context_t *spdm_context,
...
void *resp_data)
{
....
while(1);
libspdm_return_t libspdm_get_vendor_defined_response(libspdm_context_t *spdm_context,
size_t request_size,
const void *request,
size_t *response_size,
void *response)
{
...
while(1);
The spdm-emu run successfully without stop.
from spdm-emu.
The current spdm-emu doesn't call the libspdm_try_vendor_send_request_receive_response and libspdm_get_vendor_defined_response.
@Wenxing-hou , why it does not call?
The reason is:
When I added the dead loop in the submodule libspdm, such as:
This is NOT the reason. This is just the consequence of "not call".
from spdm-emu.
@jyao1 Running spdm_responder_emu and spdm_requester_emu without parameters works, though at some point responder return ERRRO 0xFE after a few messages.
I have created pull request DMTF/libspdm#2533 to fix Libspdm vendor commands backwards-compatibility with existing code. It should fix the problem.
from spdm-emu.
Related Issues (20)
- Please provide use case to test SPDM 1.2 commands
- need to update super-project-pointer of SPDM-Responder-Validator
- Spdm-emu should read corresponding cert according to alias_cert model the when set cert
- How can responder know when it needs to reply "RESPOND_NOT_READY" respond? HOT 1
- Connection error in SPDM_EMU when using SPDM over MCTP HOT 3
- remove MULTI_KEY_CAP if PUB_KEY_ID is used.
- Error when running ./spdm_responder_emu --cap CERT,MEAS_NO_SIG,CHAL on SPDM_NEGOTIATE_ALGORITHMS HOT 1
- clear GET_KEY_PAIR_INFO and SET_KEY_PAIR_INFO if PUB_KEY_ID is set
- spdm_responder_lib cannot identify capability conflict of DATA_TRANSFER_SIZE and MAX_SPDM_MSG_SIZE for SPDM version 1.0 & 1.1 HOT 4
- [Enhancement] Some hardcode should be updated
- Enquiry for ERROR Param 1 & 2 before GET_CAPABILITIES HOT 1
- spdm-emu contribution HOT 2
- Build error on aarch64 & GCC toolchain (maccumulate-outgoing-args, mno-red-zone) HOT 1
- need to have better way to demonstrate how to do 1-by-1 measurement calculation.
- libspdm_x509_verify_cert_chain fails for the certificate ecp384/bundle_responder.certchain.der HOT 4
- Need to support DOE version 2.0
- spdm_responder_emu/spdm_requester_emu fails if transport NONE is selected. HOT 1
- Need add version check before calling do_measurement_mel_via_spdm
- Need add version 1.3 for CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spdm-emu.