]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Eap.h
MdePkg/ProcessorBind: add defines for page allocation granularity
[mirror_edk2.git] / MdePkg / Include / Protocol / Eap.h
index cf775d527428132ac2600a05745887a7ad5fde29..eac2d5e5642a601039336fee8f9714dadb3d760d 100644 (file)
@@ -2,11 +2,11 @@
   EFI EAP(Extended Authenticaton Protocol) Protocol Definition\r
   The EFI EAP Protocol is used to abstract the ability to configure and extend the\r
   EAP framework. \r
-  The definitions in this file are defined in UEFI Specification 2.3, which have\r
+  The definitions in this file are defined in UEFI Specification 2.3.1B, which have\r
   not been verified by one implementation yet.\r
 \r
-  Copyright (c) 2009, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
@@ -37,13 +37,18 @@ typedef struct _EFI_EAP_PROTOCOL EFI_EAP_PROTOCOL;
 typedef VOID *  EFI_PORT_HANDLE;\r
 \r
 ///\r
-/// EAP Authentication Method Type (RFC 2284 Section 3)\r
+/// EAP Authentication Method Type (RFC 3748)\r
 ///@{\r
-#define EFI_EAP_TYPE_MD5                0x4   ///< REQUIRED\r
-#define EFI_EAP_TYPE_OTP                0x5   ///< OPTIONAL\r
-#define EFI_EAP_TYPE_TOKEN_CARD         0x6   ///< OPTIONAL\r
+#define EFI_EAP_TYPE_TLS 13 ///< REQUIRED - RFC 5216\r
 ///@}\r
 \r
+//\r
+// EAP_TYPE MD5, OTP and TOEKN_CARD has been removed from UEFI2.3.1B.\r
+// Definitions are kept for backward compatibility.\r
+//\r
+#define EFI_EAP_TYPE_MD5                4\r
+#define EFI_EAP_TYPE_OTP                5\r
+#define EFI_EAP_TYPE_TOKEN_CARD         6\r
 \r
 /**\r
   One user provided EAP authentication method.\r
@@ -83,9 +88,11 @@ EFI_STATUS
   \r
   If EapAuthType is an invalid EAP authentication type, then EFI_INVALID_PARAMETER is \r
   returned.\r
-  If the EAP authentication method of EapAuthType is unsupported by the Ports, then this\r
-  function will return EFI_UNSUPPORTED.\r
-\r
+  If the EAP authentication method of EapAuthType is unsupported by the Ports, then it will\r
+  return EFI_UNSUPPORTED.\r
+  The cryptographic strength of EFI_EAP_TYPE_TLS shall be at least of hash strength \r
+  SHA-256 and RSA key length of at least 2048 bits.\r
+  \r
   @param[in] This                A pointer to the EFI_EAP_PROTOCOL instance that indicates \r
                                  the calling context.\r
   @param[in] EapAuthType         The type of the EAP authentication method to register. It should \r
@@ -95,13 +102,14 @@ EFI_STATUS
   @retval EFI_SUCCESS            The EAP authentication method of EapAuthType is \r
                                  registered successfully.\r
   @retval EFI_INVALID_PARAMETER  EapAuthType is an invalid EAP authentication type.\r
-  @retval EFI_OUT_OF_RESOURCES   There is not enough system memory to perform the registration.\r
+  @retval EFI_UNSUPPORTED        The EAP authentication method of EapAuthType is\r
+                                 unsupported by the Port.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_EAP_SET_DESIRED_AUTHENTICATION_METHOD)(\r
-  IN struct _EFI_EAP_PROTOCOL    *This, \r
+  IN EFI_EAP_PROTOCOL            *This, \r
   IN UINT8                       EapAuthType\r
   );\r
 \r
@@ -131,7 +139,7 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_EAP_REGISTER_AUTHENTICATION_METHOD)(\r
-  IN struct _EFI_EAP_PROTOCOL             *This, \r
+  IN EFI_EAP_PROTOCOL                     *This, \r
   IN UINT8                                EapAuthType, \r
   IN EFI_EAP_BUILD_RESPONSE_PACKET        Handler\r
   );\r