DMTF / spdm-emu

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

How can responder know when it needs to reply "RESPOND_NOT_READY" respond? #311

Open owen126315 opened 10 months ago

owen126315 commented 10 months ago

I looked through the spdm_responder_lib source code, and didn't see any code which monitor the respond preparation time and change the respond state inside spdm contex to "LIBSPDM_RESPONSE_STATE_NOT_READY" to reply error with "RESPOND_NOT_READY". Is that placed somewhere else in responder_emu? Or, will that be implemented in the future?

steven-bellock commented 10 months ago

libspdm support for Responder issuing ResponseNotReady is not great, mainly because it's much easier to just provide the response within the advertised time. So that has been put on the back burner in favor of more useful features. Feel free to pick it up if you need it.