Skip to content

Commit 98ef964

Browse files
ShitalJumbadsteven-bellock
authored andcommitted
Update error code for unsupported RequesterInfo in CSR requests
Fix #2893 Signed-off-by: Shital Jumbad <[email protected]>
1 parent ca4854b commit 98ef964

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: library/spdm_responder_lib/libspdm_rsp_csr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ libspdm_return_t libspdm_get_response_csr(libspdm_context_t *spdm_context,
245245
} else {
246246
return libspdm_generate_error_response(
247247
spdm_context,
248-
SPDM_ERROR_CODE_UNEXPECTED_REQUEST, 0,
248+
SPDM_ERROR_CODE_INVALID_REQUEST, 0,
249249
response_size, response);
250250
}
251251
}

Diff for: unit_test/test_spdm_responder/csr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ void libspdm_test_responder_csr_case15(void **state)
17671767
assert_int_equal(spdm_response->header.request_response_code,
17681768
SPDM_ERROR);
17691769
assert_int_equal(spdm_response->header.param1,
1770-
SPDM_ERROR_CODE_UNEXPECTED_REQUEST);
1770+
SPDM_ERROR_CODE_INVALID_REQUEST);
17711771
assert_int_equal(spdm_response->header.param2, 0);
17721772

17731773
/*matched csr_tracking_tag without overwrite*/
@@ -1857,7 +1857,7 @@ void libspdm_test_responder_csr_case15(void **state)
18571857
assert_int_equal(spdm_response->header.request_response_code,
18581858
SPDM_ERROR);
18591859
assert_int_equal(spdm_response->header.param1,
1860-
SPDM_ERROR_CODE_UNEXPECTED_REQUEST);
1860+
SPDM_ERROR_CODE_INVALID_REQUEST);
18611861
assert_int_equal(spdm_response->header.param2, 0);
18621862

18631863
/*csr_tracking_tag 0 and overwrite*/

0 commit comments

Comments
 (0)