You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SessionRequired error code was introduced in SPDM 1.2. However libspdm will send this error if the version is 1.1 for the following messages
END_SESSION
FINISH
HEARTBEAT
KEY_UPDATE
PSK_FINISH
This error needs to be conditional based on the negotiated version. For 1.1 the error code should probably be Unspecified since none of the other errors fit in this situation. In addition SessionRequired is never exercised in the unit tests, and test cases should be added.
Keep the error code the same in libspdm_rsp_end_session.c but "downgrade" the error code in libspdm_generate_error_response()? That might be misleading.
The
SessionRequired
error code was introduced in SPDM 1.2. However libspdm will send this error if the version is 1.1 for the following messagesEND_SESSION
FINISH
HEARTBEAT
KEY_UPDATE
PSK_FINISH
This error needs to be conditional based on the negotiated version. For 1.1 the error code should probably be
Unspecified
since none of the other errors fit in this situation. In additionSessionRequired
is never exercised in the unit tests, and test cases should be added.Example
libspdm/library/spdm_responder_lib/libspdm_rsp_end_session.c
Lines 46 to 50 in abbb1a4
The text was updated successfully, but these errors were encountered: