Requester state transitions #720
steven-bellock
started this conversation in
General
Replies: 1 comment
-
3/21/2022 - we agree this is an issue. Need give a full list of improper state change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently if the Requester receives an error response
SPDM_ERROR_CODE_REQUEST_RESYNCH
from the Responder libspdm automatically changes the connection state toLIBSPDM_CONNECTION_STATE_NOT_STARTED
libspdm/library/spdm_requester_lib/libspdm_req_handle_error_response.c
Lines 99 to 102 in 57ac200
This violates a library pattern where state changes need to be initiated by the integrator. So in this specific case we could have it so that
libspdm_init_connection
.There may be use cases (TBD) where the integrator doesn't want libspdm to automatically change state.
Beta Was this translation helpful? Give feedback.
All reactions