From d4b06baf6a567a37a2d7b6b9394fe618684c6ae8 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Tue, 12 Dec 2023 01:58:38 +0800 Subject: [PATCH] clear multi_key_cap if pub_key_id_cap is set. Signed-off-by: Jiewen Yao --- spdm_emu/spdm_requester_emu/spdm_requester_spdm.c | 1 + spdm_emu/spdm_responder_emu/spdm_responder_spdm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c b/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c index e328188..3ca44d2 100644 --- a/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c +++ b/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c @@ -275,6 +275,7 @@ void *spdm_client_init(void) if (m_use_slot_id == 0xFF) { data32 |= SPDM_GET_CAPABILITIES_REQUEST_FLAGS_PUB_KEY_ID_CAP; data32 &= ~SPDM_GET_CAPABILITIES_REQUEST_FLAGS_CERT_CAP; + data32 &= ~SPDM_GET_CAPABILITIES_REQUEST_FLAGS_MULTI_KEY_CAP; } if (m_use_capability_flags != 0) { data32 = m_use_capability_flags; diff --git a/spdm_emu/spdm_responder_emu/spdm_responder_spdm.c b/spdm_emu/spdm_responder_emu/spdm_responder_spdm.c index 94b9825..6dc1ad9 100644 --- a/spdm_emu/spdm_responder_emu/spdm_responder_spdm.c +++ b/spdm_emu/spdm_responder_emu/spdm_responder_spdm.c @@ -250,6 +250,7 @@ void *spdm_server_init(void) data32 &= ~SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_SET_CERT_CAP; data32 &= ~SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_CSR_CAP; data32 &= ~SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_CERT_INSTALL_RESET_CAP; + data32 &= ~SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_MULTI_KEY_CAP; } if (m_use_capability_flags != 0) { data32 = m_use_capability_flags;