diff --git a/include/industry_standard/spdm.h b/include/industry_standard/spdm.h index 90bd74f5d4f..2ed12d4b283 100644 --- a/include/industry_standard/spdm.h +++ b/include/industry_standard/spdm.h @@ -89,6 +89,7 @@ typedef struct { #define SPDM_MESSAGE_VERSION_10 0x10 #define SPDM_MESSAGE_VERSION_11 0x11 #define SPDM_MESSAGE_VERSION_12 0x12 +#define SPDM_MESSAGE_VERSION_13 0x13 #define SPDM_MESSAGE_VERSION SPDM_MESSAGE_VERSION_10 /* SPDM GET_VERSION request */ diff --git a/library/spdm_responder_lib/libspdm_rsp_capabilities.c b/library/spdm_responder_lib/libspdm_rsp_capabilities.c index 6f5dadd0aed..546bab7f100 100644 --- a/library/spdm_responder_lib/libspdm_rsp_capabilities.c +++ b/library/spdm_responder_lib/libspdm_rsp_capabilities.c @@ -186,6 +186,8 @@ libspdm_return_t libspdm_get_response_capabilities(libspdm_context_t *spdm_conte SPDM_ERROR_CODE_INVALID_REQUEST, 0, response_size, response); } + } + if (spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_13) { if (((spdm_request->flags & SPDM_GET_CAPABILITIES_REQUEST_FLAGS_CHUNK_CAP) == 0) && (spdm_request->data_transfer_size != spdm_request->max_spdm_msg_size)) { return libspdm_generate_error_response(spdm_context,