Skip to content

Commit

Permalink
Delete duplicate version check
Browse files Browse the repository at this point in the history
Fix the issue: DMTF#2777

Signed-off-by: Wenxing Hou <[email protected]>
  • Loading branch information
Wenxing-hou authored and steven-bellock committed Aug 5, 2024
1 parent 8e1b6e5 commit 3a69c7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions library/spdm_requester_lib/libspdm_req_get_csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ static libspdm_return_t libspdm_try_get_csr(libspdm_context_t *spdm_context,
(uint8_t *)opaque_data, opaque_data_length);
}

LIBSPDM_ASSERT(spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_12);

spdm_request_size = sizeof(spdm_get_csr_request_t) + opaque_data_length
+ requester_info_length;

Expand Down
2 changes: 0 additions & 2 deletions library/spdm_requester_lib/libspdm_req_set_certificate.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ static libspdm_return_t libspdm_try_set_certificate(libspdm_context_t *spdm_cont
}
}

LIBSPDM_ASSERT(spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_12);

if ((libspdm_get_connection_version (spdm_context) < SPDM_MESSAGE_VERSION_13) ||
(cert_chain_size != 0)) {
if (cert_chain == NULL) {
Expand Down

0 comments on commit 3a69c7b

Please sign in to comment.