Line data Source code
1 : /**
2 : * Copyright Notice:
3 : * Copyright 2024-2025 DMTF. All rights reserved.
4 : * License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
5 : **/
6 :
7 : #include "hal/base.h"
8 : #include "internal/libspdm_common_lib.h"
9 :
10 : uint8_t g_key_exchange_start_mut_auth = 0;
11 : bool g_mandatory_mut_auth = false;
12 :
13 : #if (LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP) && (LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP)
14 2 : extern uint8_t libspdm_key_exchange_start_mut_auth(
15 : void *spdm_context,
16 : uint32_t session_id,
17 : spdm_version_number_t spdm_version,
18 : uint8_t slot_id,
19 : uint8_t *req_slot_id,
20 : uint8_t session_policy,
21 : size_t opaque_data_length,
22 : const void *opaque_data,
23 : bool *mandatory_mut_auth
24 : )
25 : {
26 2 : *req_slot_id = 0;
27 2 : *mandatory_mut_auth = g_mandatory_mut_auth;
28 :
29 2 : return g_key_exchange_start_mut_auth;
30 : }
31 : #endif /* (LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP) && (LIBSPDM_ENABLE_CAPABILITY_MUT_AUTH_CAP) */
|