]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/EapManagement2.h
MdePkg/Include/Protocol/Tls.h: pack structures from the TLS RFC
[mirror_edk2.git] / MdePkg / Include / Protocol / EapManagement2.h
CommitLineData
94028105
HW
1/** @file\r
2 This file defines the EFI EAP Management2 protocol.\r
3\r
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 @par Revision Reference:\r
14 This Protocol is introduced in UEFI Specification 2.5\r
15\r
16**/\r
17\r
18#ifndef __EFI_EAP_MANAGEMENT2_PROTOCOL_H__\r
19#define __EFI_EAP_MANAGEMENT2_PROTOCOL_H__\r
20\r
21#include <Protocol/EapManagement.h>\r
22\r
23///\r
24/// This EFI EAP Management2 protocol provides the ability to configure and control EAPOL\r
25/// state machine, and retrieve the information, status and the statistics information of\r
26/// EAPOL state machine.\r
27///\r
28#define EFI_EAP_MANAGEMENT2_PROTOCOL_GUID \\r
29 { \\r
30 0x5e93c847, 0x456d, 0x40b3, {0xa6, 0xb4, 0x78, 0xb0, 0xc9, 0xcf, 0x7f, 0x20 } \\r
31 }\r
32\r
33typedef struct _EFI_EAP_MANAGEMENT2_PROTOCOL EFI_EAP_MANAGEMENT2_PROTOCOL;\r
34\r
35/**\r
36 Return key generated through EAP process.\r
37\r
38 The GetKey() function return the key generated through EAP process, so that the 802.11\r
39 MAC layer driver can use MSK to derive more keys, e.g. PMK (Pairwise Master Key).\r
40\r
41 @param[in] This Pointer to the EFI_EAP_MANAGEMENT2_PROTOCOL instance.\r
42 @param[in, out] Msk Pointer to MSK (Master Session Key) buffer.\r
43 @param[in, out] MskSize MSK buffer size.\r
44 @param[in, out] Emsk Pointer to EMSK (Extended Master Session Key) buffer.\r
45 @param[in, out] EmskSize EMSK buffer size.\r
46\r
47 @retval EFI_SUCCESS The operation completed successfully.\r
48 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
49 Msk is NULL.\r
50 MskSize is NULL.\r
51 Emsk is NULL.\r
52 EmskSize is NULL.\r
53 @retval EFI_NOT_READY MSK and EMSK are not generated in current session yet.\r
54\r
55**/\r
56typedef\r
57EFI_STATUS\r
58(EFIAPI *EFI_EAP_GET_KEY) (\r
59 IN EFI_EAP_MANAGEMENT2_PROTOCOL *This,\r
60 IN OUT UINT8 *Msk,\r
61 IN OUT UINTN *MskSize,\r
62 IN OUT UINT8 *Emsk,\r
63 IN OUT UINT8 *EmskSize\r
64 );\r
65\r
66///\r
67/// The EFI_EAP_MANAGEMENT2_PROTOCOL\r
68/// is used to control, configure and monitor EAPOL state machine on a Port, and return\r
69/// information of the Port. EAPOL state machine is built on a per-Port basis. Herein, a\r
70/// Port means a NIC. For the details of EAPOL, please refer to IEEE 802.1x\r
71/// specification.\r
72///\r
73struct _EFI_EAP_MANAGEMENT2_PROTOCOL {\r
74 EFI_EAP_GET_SYSTEM_CONFIGURATION GetSystemConfiguration;\r
75 EFI_EAP_SET_SYSTEM_CONFIGURATION SetSystemConfiguration;\r
76 EFI_EAP_INITIALIZE_PORT InitializePort;\r
77 EFI_EAP_USER_LOGON UserLogon;\r
78 EFI_EAP_USER_LOGOFF UserLogoff;\r
79 EFI_EAP_GET_SUPPLICANT_STATUS GetSupplicantStatus;\r
80 EFI_EAP_SET_SUPPLICANT_CONFIGURATION SetSupplicantConfiguration;\r
81 EFI_EAP_GET_SUPPLICANT_STATISTICS GetSupplicantStatistics;\r
82 EFI_EAP_GET_KEY GetKey;\r
83};\r
84\r
85extern EFI_GUID gEfiEapManagement2ProtocolGuid;\r
86\r
87#endif\r