]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
Fix the comments to follow UEFI Spec regarding how to check an EFI_HANDLE is valid...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiCHAP.h
index 2bae18fc330b9e75592c7608eb170b76175f6202..4b407f82ef2e8abf3e79dc7027bd07482289c9bd 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   The header file of CHAP configuration.\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004 - 2009, 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,22 +37,21 @@ extern EFI_GUID mIScsiCHAPAuthInfoGuid;
 /// MD5_HASHSIZE\r
 ///\r
 #define ISCSI_CHAP_RSP_LEN        16  \r
-typedef enum {\r
-  ISCSI_CHAP_INITIAL,\r
-  ISCSI_CHAP_STEP_ONE,\r
-  ISCSI_CHAP_STEP_TWO,\r
-  ISCSI_CHAP_STEP_THREE,\r
-  ISCSI_CHAP_STEP_FOUR\r
-} ISCSI_CHAP_STEP;\r
+\r
+#define ISCSI_CHAP_INITIAL        0 \r
+#define ISCSI_CHAP_STEP_ONE       1\r
+#define ISCSI_CHAP_STEP_TWO       2\r
+#define ISCSI_CHAP_STEP_THREE     3\r
+#define ISCSI_CHAP_STEP_FOUR      4\r
 \r
 #pragma pack(1)\r
 \r
 typedef struct _ISCSI_CHAP_AUTH_CONFIG_NVDATA {\r
   UINT8 CHAPType;\r
   CHAR8 CHAPName[ISCSI_CHAP_NAME_MAX_LEN];\r
-  CHAR8 CHAPSecret[ISCSI_CHAP_SECRET_MAX_LEN];\r
+  CHAR8 CHAPSecret[ISCSI_CHAP_SECRET_STORAGE];\r
   CHAR8 ReverseCHAPName[ISCSI_CHAP_NAME_MAX_LEN];\r
-  CHAR8 ReverseCHAPSecret[ISCSI_CHAP_SECRET_MAX_LEN];\r
+  CHAR8 ReverseCHAPSecret[ISCSI_CHAP_SECRET_STORAGE];\r
 } ISCSI_CHAP_AUTH_CONFIG_NVDATA;\r
 \r
 #pragma pack()\r